16 #ifndef dealii__grid_out_h 17 #define dealii__grid_out_h 21 #include <deal.II/base/config.h> 22 #include <deal.II/base/exceptions.h> 23 #include <deal.II/base/point.h> 24 #include <deal.II/base/data_out_base.h> 25 #include <deal.II/grid/tria.h> 26 #include <deal.II/fe/mapping.h> 30 DEAL_II_NAMESPACE_OPEN
34 template <
int dim,
int spacedim>
class Mapping;
83 DX (
const bool write_cells =
true,
84 const bool write_faces =
false,
85 const bool write_diameter =
false,
86 const bool write_measure =
false,
87 const bool write_all_faces =
true);
139 Msh (
const bool write_faces =
false,
140 const bool write_lines =
false);
204 Ucd (
const bool write_preamble =
false,
205 const bool write_faces =
false,
206 const bool write_lines =
false);
256 Gnuplot (
const bool write_cell_number =
false,
257 const unsigned int n_boundary_face_points = 2,
258 const bool curved_inner_cells =
false);
344 const unsigned int size = 300,
345 const double line_width = 0.5,
346 const bool color_lines_on_user_flag =
false,
347 const unsigned int n_boundary_face_points = 2,
348 const bool color_lines_level =
false);
387 const unsigned int size = 300,
388 const double line_width = 0.5,
389 const bool color_lines_on_user_flag =
false,
390 const unsigned int n_boundary_face_points = 2);
439 const unsigned int size = 300,
440 const double line_width = 0.5,
441 const bool color_lines_on_user_flag =
false,
442 const unsigned int n_boundary_face_points = 2,
443 const bool write_cell_numbers =
false,
444 const bool write_cell_number_level =
true,
445 const bool write_vertex_numbers =
false,
446 const bool color_lines_level =
false);
487 const unsigned int size = 300,
488 const double line_width = 0.5,
489 const bool color_lines_on_user_flag =
false,
490 const unsigned int n_boundary_face_points = 2,
491 const double azimut_angle = 60,
492 const double turn_angle = 30);
691 Svg(
const unsigned int line_thickness = 2,
692 const unsigned int boundary_line_thickness = 4,
695 const int azimuth_angle = 0,
696 const int polar_angle = 0,
697 const Coloring coloring = level_number,
698 const bool convert_level_number_to_height =
false,
699 const bool label_level_number =
true,
700 const bool label_cell_index =
true,
701 const bool label_material_id =
false,
702 const bool label_subdomain_id =
false,
703 const bool draw_colorbar =
true,
704 const bool draw_legend =
true);
879 template <
int dim,
int spacedim>
881 std::ostream &out)
const;
914 template <
int dim,
int spacedim>
937 template <
int dim,
int spacedim>
939 std::ostream &out)
const;
960 template <
int dim,
int spacedim>
962 std::ostream &out)
const;
993 template <
int dim,
int spacedim>
1016 template <
int dim,
int spacedim>
1040 std::ostream &out)
const;
1047 template <
int dim,
int spacedim>
1049 std::ostream &out)
const;
1066 template <
int dim,
int spacedim>
1068 std::ostream &out)
const;
1073 template <
int dim,
int spacedim>
1075 std::ostream &out)
const;
1080 template <
int dim,
int spacedim>
1082 std::ostream &out)
const;
1088 template <
int dim,
int spacedim>
1097 template <
int dim,
int spacedim>
1176 static std::string default_suffix (
const OutputFormat output_format);
1182 std::string default_suffix ()
const;
1197 static OutputFormat parse_output_format (
const std::string &format_name);
1204 static std::string get_output_format_names ();
1220 std::size_t memory_consumption ()
const;
1324 template <
int dim,
int spacedim>
1327 const unsigned int next_element_index,
1328 std::ostream &out)
const;
1335 const unsigned int next_element_index,
1336 std::ostream &out)
const;
1343 const unsigned int next_element_index,
1344 std::ostream &out)
const;
1347 const unsigned int next_element_index,
1348 std::ostream &out)
const;
1377 template <
int dim,
int spacedim>
1380 const unsigned int next_element_index,
1381 std::ostream &out)
const;
1388 const unsigned int next_element_index,
1389 std::ostream &out)
const;
1397 const unsigned int next_element_index,
1398 std::ostream &out)
const;
1401 const unsigned int next_element_index,
1402 std::ostream &out)
const;
1408 const unsigned int next_element_index,
1409 std::ostream &out)
const;
1416 const unsigned int next_element_index,
1417 std::ostream &out)
const;
1444 template <
int dim,
int spacedim>
1447 const unsigned int next_element_index,
1448 std::ostream &out)
const;
1455 const unsigned int next_element_index,
1456 std::ostream &out)
const;
1464 const unsigned int next_element_index,
1465 std::ostream &out)
const;
1468 const unsigned int next_element_index,
1469 std::ostream &out)
const;
1497 template <
int dim,
int spacedim>
1500 const unsigned int next_element_index,
1501 std::ostream &out)
const;
1508 const unsigned int next_element_index,
1509 std::ostream &out)
const;
1516 const unsigned int next_element_index,
1517 std::ostream &out)
const;
1520 const unsigned int next_element_index,
1521 std::ostream &out)
const;
1529 const unsigned int next_element_index,
1530 std::ostream &out)
const;
1537 const unsigned int next_element_index,
1538 std::ostream &out)
const;
1555 float camera_focus);
1569 template <
int dim,
int spacedim>
1597 template <
int dim,
int spacedim>
1627 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.
unsigned int n_boundary_face_points
GridOutFlags::Eps< 2 > eps_flags_2
unsigned int height
Height of the plot in SVG units, computed from width if zero. Defaults to 1000.
bool draw_legend
Draw a legend next to the plotted grid, explaining the label of the cells.
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.
unsigned int n_boundary_face_points
bool convert_level_number_to_height
Interpret the level number of the cells as altitude over the x-y-plane (useful in the perspective vie...
unsigned int boundary_line_thickness
Thickness of lines at the boundary.
void parse_parameters(ParameterHandler ¶m)
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
Convert the global subdomain id into the cell color.
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
The factor determining the vertical distance between levels (default = 0.3)
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.
bool draw_colorbar
Draw a colorbar next to the plotted grid with respect to the chosen coloring of the cells...
GridOutFlags::Vtu vtu_flags
unsigned int width
The width of the plot. Computed automatically from height if zero (default)
write() calls write_vtk()