Exposing print_plot through C. Using in input_xml now.

This commit is contained in:
Patrick Shriwise 2018-10-13 21:24:25 -05:00
parent d11b90aa47
commit 41b58e0b9b
4 changed files with 26 additions and 74 deletions

View file

@ -59,6 +59,7 @@ std::string time_stamp()
//===============================================================================
void print_plot() {
header("PLOTTING SUMMARY", 5);
for (auto pl : plots) {
@ -80,6 +81,25 @@ void print_plot() {
std::cout << "Origin: " << pl->origin[0] << " "
<< pl->origin[1] << " "
<< pl->origin[2] << std::endl;
if (PLOT_TYPE::SLICE == pl->type) {
std::cout << std::setprecision(4)
<< "Width: "
<< pl->width[0] << " "
<< pl->width[1] << std::endl;
} else if (PLOT_TYPE::VOXEL == pl->type) {
std::cout << std::setprecision(4)
<< "Width: "
<< pl->width[0] << " "
<< pl->width[1] << " "
<< pl->width[2] << std::endl;
}
if (PLOT_COLOR_BY::CELLS == pl->color_by) {
std::cout << "Coloring: Cells" << std::endl;
} else if (PLOT_COLOR_BY::MATS == pl->color_by) {
std::cout << "Coloring: Materials" << std::endl;
}
if (PLOT_TYPE::SLICE == pl->type) {
switch(pl->basis) {