*
* The format of the cell
* number written is
- * @p{level.index}.
+ * @p{level.index}, or simply
+ * @p{index}, depending on the
+ * value of the following flag.
*/
bool write_cell_numbers;
+ /**
+ * If the cell numbers shall be
+ * written, using the above
+ * flag, then the value of this
+ * flag determines whether the
+ * format shall be
+ * @p{level.index}, or simply
+ * @p{index}. If @p{true}, the
+ * first format is
+ * taken. Default is @p{true}.
+ */
+ bool write_cell_number_level;
+
/**
* Constructor.
const double line_width = 0.5,
const bool color_lines_on_user_flag = false,
const unsigned int n_boundary_face_points = 2,
- const bool write_cell_numbers = false);
+ const bool write_cell_numbers = false,
+ const bool write_cell_number_level = true);
};
/**
const double line_width,
const bool color_lines_on_user_flag,
const unsigned int n_boundary_face_points,
- const bool write_cell_numbers)
+ const bool write_cell_numbers,
+ const bool write_cell_number_level)
:
EpsFlagsBase(size_type, size, line_width,
color_lines_on_user_flag,
n_boundary_face_points),
- write_cell_numbers (write_cell_numbers)
+ write_cell_numbers (write_cell_numbers),
+ write_cell_number_level (write_cell_number_level)
{};
cell = tria.begin_active (),
endc = tria.end ();
for (; cell!=endc; ++cell)
- out << (cell->center()(0)-offset(0))*scale << ' '
- << (cell->center()(1)-offset(1))*scale
- << " m" << std::endl
- << "[ [(Helvetica) 12.0 0.0 true true (" << cell << " )] "
- << "] -6 MCshow"
- << std::endl;
+ {
+ out << (cell->center()(0)-offset(0))*scale << ' '
+ << (cell->center()(1)-offset(1))*scale
+ << " m" << std::endl
+ << "[ [(Helvetica) 12.0 0.0 true true (";
+ if (eps_flags_2.write_cell_number_level)
+ out << cell;
+ else
+ out << cell->index();
+
+ out << " )] "
+ << "] -6 MCshow"
+ << std::endl;
+ };
};
out << "showpage" << std::endl;