26 const std::filesystem::path& filename,
27 const std::string& vertices_name,
28 const Eigen::MatrixXi& elements,
32 const std::string& name,
34 const std::vector<double>& val,
35 const bool is_cell_field);
55 const std::filesystem::path& filename,
56 const std::string& vertices_name,
58 bool write_points =
true,
59 bool write_edges =
true,
60 bool write_faces =
true,
61 bool write_tetrahedra =
true);
76 const std::string& name,
79 const std::vector<char>& val,
80 const char default_val)
override;
83 const std::string& name,
86 const std::vector<int64_t>& val,
87 const int64_t default_val)
override;
90 const std::string& name,
93 const std::vector<double>& val,
94 const double default_val)
override;
97 const std::string& name,
100 const std::vector<Rational>& val,
101 const Rational& default_val)
override;
111 const std::string& name,
113 const int64_t stride,
114 const std::vector<double>& val);
std::string m_vertices_name
std::filesystem::path m_filename
std::shared_ptr< paraviewo::ParaviewWriter > m_paraview_file
void write(const std::string &name, const int64_t stride, const std::vector< double > &val, const bool is_cell_field)
Eigen::MatrixXd & vertices()
Eigen::MatrixXd m_vertices
Eigen::MatrixXi m_elements
void init(const std::filesystem::path &filename, const std::string &vertices_name, const Eigen::MatrixXi &elements, const bool enabled)
~ParaviewInternalWriter()
void write_top_simplex_type(const PrimitiveType) override
void write_absolute_id(const std::vector< int64_t > &id) override
ParaviewWriter(const std::filesystem::path &filename, const std::string &vertices_name, const Mesh &mesh, bool write_points=true, bool write_edges=true, bool write_faces=true, bool write_tetrahedra=true)
std::array< ParaviewInternalWriter, 4 > m_writers
bool write(const int dim) override
std::array< bool, 4 > m_enabled
void write_internal(const std::string &name, const int64_t type, const int64_t stride, const std::vector< double > &val)
std::string m_vertices_name
void write_capacities(const std::vector< int64_t > &capacities) override
io::ParaviewWriter ParaviewWriter