17 #ifndef __deal2__grid_out_h 18 #define __deal2__grid_out_h 22 #include <deal.II/base/config.h> 24 #include <deal.II/base/point.h> 25 #include <deal.II/grid/tria.h> 26 #include <deal.II/fe/mapping.h> 34 template <
int dim,
int spacedim>
class Mapping;
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);
141 Msh (
const bool write_faces =
false,
142 const bool write_lines =
false);
207 Ucd (
const bool write_preamble =
false,
208 const bool write_faces =
false,
209 const bool write_lines =
false);
260 Gnuplot (
const bool write_cell_number =
false,
261 const unsigned int n_boundary_face_points = 2,
262 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);
389 const unsigned int size = 300,
390 const double line_width = 0.5,
391 const bool color_lines_on_user_flag =
false,
392 const unsigned int n_boundary_face_points = 2);
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,
447 const bool write_cell_numbers =
false,
448 const bool write_cell_number_level =
true,
449 const bool write_vertex_numbers =
false,
450 const bool color_lines_level =
false);
491 const unsigned int size = 300,
492 const double line_width = 0.5,
493 const bool color_lines_on_user_flag =
false,
494 const unsigned int n_boundary_face_points = 2,
495 const double azimut_angle = 60,
496 const double turn_angle = 30);
682 bool label_cell_index;
683 bool label_material_id;
684 bool label_subdomain_id;
685 bool label_level_subdomain_id;
695 Svg(
const unsigned int line_thickness = 2,
696 const unsigned int boundary_line_thickness = 4,
699 const int azimuth_angle = 0,
700 const int polar_angle = 0,
701 const Coloring coloring = level_number,
702 const bool convert_level_number_to_height =
false,
703 const bool label_level_number =
true,
704 const bool label_cell_index =
true,
705 const bool label_material_id =
false,
706 const bool label_subdomain_id =
false,
707 const bool draw_colorbar =
true,
708 const bool draw_legend =
true);
881 std::ostream &out)
const;
945 template <
int dim,
int spacedim>
969 template <
int dim,
int spacedim>
971 std::ostream &out)
const;
993 template <
int dim,
int spacedim>
995 std::ostream &out)
const;
1079 template <
int dim,
int spacedim>
1081 std::ostream &out)
const;
1084 std::ostream &out)
const;
1103 std::ostream &out)
const;
1109 template <
int dim,
int spacedim>
1118 template <
int dim,
int spacedim>
1191 static std::string default_suffix (
const OutputFormat output_format);
1197 std::string default_suffix ()
const;
1214 static OutputFormat parse_output_format (
const std::string &format_name);
1221 static std::string get_output_format_names ();
1237 std::size_t memory_consumption ()
const;
1329 template <
int dim,
int spacedim>
1331 const unsigned int starting_index,
1332 std::ostream &out)
const;
1340 const unsigned int starting_index,
1341 std::ostream &out)
const;
1348 const unsigned int starting_index,
1349 std::ostream &out)
const;
1351 const unsigned int starting_index,
1352 std::ostream &out)
const;
1373 template <
int dim,
int spacedim>
1375 const unsigned int starting_index,
1376 std::ostream &out)
const;
1383 const unsigned int starting_index,
1384 std::ostream &out)
const;
1391 const unsigned int starting_index,
1392 std::ostream &out)
const;
1394 const unsigned int starting_index,
1395 std::ostream &out)
const;
1401 const unsigned int starting_index,
1402 std::ostream &out)
const;
1408 const unsigned int starting_index,
1409 std::ostream &out)
const;
1430 template <
int dim,
int spacedim>
1432 const unsigned int starting_index,
1433 std::ostream &out)
const;
1440 const unsigned int starting_index,
1441 std::ostream &out)
const;
1448 const unsigned int starting_index,
1449 std::ostream &out)
const;
1451 const unsigned int starting_index,
1452 std::ostream &out)
const;
1474 template <
int dim,
int spacedim>
1476 const unsigned int starting_index,
1477 std::ostream &out)
const;
1484 const unsigned int starting_index,
1485 std::ostream &out)
const;
1491 const unsigned int starting_index,
1492 std::ostream &out)
const;
1494 const unsigned int starting_index,
1495 std::ostream &out)
const;
1503 const unsigned int starting_index,
1504 std::ostream &out)
const;
1510 const unsigned int starting_index,
1511 std::ostream &out)
const;
1528 float camera_focus);
1544 template <
int dim,
int spacedim>
1572 template <
int dim,
int spacedim>
1602 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
bool draw_legend
Draw a legend next to the plotted grid, explaining the label of the cells.
Use transparent value of SVG.
bool level_color DEAL_II_DEPRECATED
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 perpspective vi...
static void declare_parameters(ParameterHandler ¶m)
unsigned int boundary_line_thickness
Thickness of lines at the boundary.
void parse_parameters(ParameterHandler ¶m)
::ExceptionBase & ExcInvalidState()
write() calls write_ucd()
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
GridOutFlags::DX dx_flags
GridOutFlags::Msh msh_flags
GridOutFlags::Eps< 1 > eps_flags_1
write() calls write_gnuplot()
bool write_cell_number_level
GridOutFlags::XFig xfig_flags
#define DeclException0(Exception0)
Convert the subdomain id into the cell color.
GridOutFlags::Ucd ucd_flags
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)
GridOutFlags::Eps< 3 > eps_flags_3
bool draw_colorbar
Draw a colorbar next to the plotted grid with respect to the chosen coloring of the cells...