16 #ifndef dealii_grid_out_h 17 #define dealii_grid_out_h 21 #include <deal.II/base/config.h> 23 #include <deal.II/base/data_out_base.h> 24 #include <deal.II/base/exceptions.h> 25 #include <deal.II/base/point.h> 29 DEAL_II_NAMESPACE_OPEN
32 template <
int dim,
int spacedim>
34 template <
int dim,
int spacedim>
84 DX(
const bool write_cells =
true,
85 const bool write_faces =
false,
86 const bool write_diameter =
false,
87 const bool write_measure =
false,
88 const bool write_all_faces =
true);
142 Msh(
const bool write_faces =
false,
const bool write_lines =
false);
208 Ucd(
const bool write_preamble =
false,
209 const bool write_faces =
false,
210 const bool write_lines =
false);
286 Gnuplot(
const bool write_cell_number =
false,
287 const unsigned int n_extra_curved_line_points = 2,
288 const bool curved_inner_cells =
false,
289 const bool write_additional_boundary_lines =
true);
302 operator=(
const Gnuplot &flags);
398 const unsigned int size = 300,
399 const double line_width = 0.5,
400 const bool color_lines_on_user_flag =
false,
401 const unsigned int n_boundary_face_points = 2,
402 const bool color_lines_level =
false);
443 const unsigned int size = 300,
444 const double line_width = 0.5,
445 const bool color_lines_on_user_flag =
false,
446 const unsigned int n_boundary_face_points = 2);
497 const unsigned int size = 300,
498 const double line_width = 0.5,
499 const bool color_lines_on_user_flag =
false,
500 const unsigned int n_boundary_face_points = 2,
501 const bool write_cell_numbers =
false,
502 const bool write_cell_number_level =
true,
503 const bool write_vertex_numbers =
false,
504 const bool color_lines_level =
false);
547 const unsigned int size = 300,
548 const double line_width = 0.5,
549 const bool color_lines_on_user_flag =
false,
550 const unsigned int n_boundary_face_points = 2,
551 const double azimut_angle = 60,
552 const double turn_angle = 30);
763 Svg(
const unsigned int line_thickness = 2,
764 const unsigned int boundary_line_thickness = 4,
767 const int azimuth_angle = 0,
768 const int polar_angle = 0,
769 const Coloring coloring = level_number,
770 const bool convert_level_number_to_height =
false,
771 const bool label_level_number =
true,
772 const bool label_cell_index =
true,
773 const bool label_material_id =
false,
774 const bool label_subdomain_id =
false,
775 const bool draw_colorbar =
true,
776 const bool draw_legend =
true);
954 template <
int dim,
int spacedim>
988 template <
int dim,
int spacedim>
1012 template <
int dim,
int spacedim>
1035 template <
int dim,
int spacedim>
1068 template <
int dim,
int spacedim>
1092 template <
int dim,
int spacedim>
1124 template <
int dim,
int spacedim>
1143 template <
int dim,
int spacedim>
1146 std::ostream & out)
const;
1165 template <
int dim,
int spacedim>
1186 template <
int dim,
int spacedim>
1220 template <
int dim,
int spacedim>
1223 const std::string &filename_without_extension,
1224 const bool view_levels =
false,
1225 const bool include_artificial =
false)
const;
1231 template <
int dim,
int spacedim>
1241 template <
int dim,
int spacedim>
1341 default_suffix()
const;
1357 parse_output_format(
const std::string &format_name);
1365 get_output_format_names();
1384 memory_consumption()
const;
1488 template <
int dim,
int spacedim>
1491 const unsigned int next_element_index,
1492 std::ostream & out)
const;
1499 const unsigned int next_element_index,
1500 std::ostream & out)
const;
1507 const unsigned int next_element_index,
1508 std::ostream & out)
const;
1511 const unsigned int next_element_index,
1512 std::ostream & out)
const;
1541 template <
int dim,
int spacedim>
1544 const unsigned int next_element_index,
1545 std::ostream & out)
const;
1552 const unsigned int next_element_index,
1553 std::ostream & out)
const;
1561 const unsigned int next_element_index,
1562 std::ostream & out)
const;
1565 const unsigned int next_element_index,
1566 std::ostream & out)
const;
1572 const unsigned int next_element_index,
1573 std::ostream & out)
const;
1580 const unsigned int next_element_index,
1581 std::ostream & out)
const;
1608 template <
int dim,
int spacedim>
1611 const unsigned int next_element_index,
1612 std::ostream & out)
const;
1619 const unsigned int next_element_index,
1620 std::ostream & out)
const;
1628 const unsigned int next_element_index,
1629 std::ostream & out)
const;
1632 const unsigned int next_element_index,
1633 std::ostream & out)
const;
1661 template <
int dim,
int spacedim>
1664 const unsigned int next_element_index,
1665 std::ostream & out)
const;
1672 const unsigned int next_element_index,
1673 std::ostream & out)
const;
1680 const unsigned int next_element_index,
1681 std::ostream & out)
const;
1684 const unsigned int next_element_index,
1685 std::ostream & out)
const;
1693 const unsigned int next_element_index,
1694 std::ostream & out)
const;
1701 const unsigned int next_element_index,
1702 std::ostream & out)
const;
1719 float camera_focus);
1733 template <
int dim,
int spacedim>
1765 template <
int dim,
int spacedim>
1801 DEAL_II_NAMESPACE_CLOSE
OutputFormat default_format
DX(const bool write_cells=true, const bool write_faces=false, const bool write_diameter=false, const bool write_measure=false, const bool write_all_faces=true)
bool margin
Margin around the plotted area.
bool write_additional_boundary_lines
unsigned int n_boundary_face_points
GridOutFlags::Eps< 2 > eps_flags_2
Use transparent value of SVG.
Convert the level number into the cell color.
write() calls write_eps()
unsigned int line_thickness
Thickness of the lines between cells.
bool convert_level_number_to_height
unsigned int boundary_line_thickness
Thickness of lines at the boundary.
void parse_parameters(ParameterHandler ¶m)
unsigned int n_extra_curved_line_points
write() calls write_ucd()
GridOutFlags::Vtk vtk_flags
bool label_cell_index
Write cell index into each cell. Defaults to true.
GridOutFlags::Gnuplot gnuplot_flags
static::ExceptionBase & ExcInvalidState()
Convert the global subdomain id into the cell color.
unsigned int & n_boundary_face_points
Convert the material id into the cell color.
GridOutFlags::MathGL mathgl_flags
write() calls write_mathgl()
GridOutFlags::DX dx_flags
GridOutFlags::Msh msh_flags
GridOutFlags::Eps< 1 > eps_flags_1
write() calls write_gnuplot()
bool write_cell_number_level
bool label_material_id
Write material id of each cell. Defaults to false.
Abstract base class for mapping classes.
GridOutFlags::XFig xfig_flags
bool label_subdomain_id
Write subdomain id of each cell. Defaults to false.
#define DeclException0(Exception0)
bool label_level_subdomain_id
Write level subdomain id of each cell. Defaults to false.
Convert the subdomain id into the cell color.
GridOutFlags::Ucd ucd_flags
float cell_font_scaling
Scaling of the font for cell annotations. Defaults to 1.
write() calls write_xfig()
bool write_vertex_numbers
Convert the level into the cell color.
unsigned int n_boundary_face_points
write() calls write_msh()
write() calls write_svg()
GridOutFlags::Svg svg_flags
bool color_lines_on_user_flag
Convert the material id into the cell color (default)
float level_height_factor
GridOutFlags::Eps< 3 > eps_flags_3
static void declare_parameters(ParameterHandler ¶m)
bool label_level_number
Write level number into each cell. Defaults to true.
GridOutFlags::Vtu vtu_flags
write() calls write_vtk()