26 const std::filesystem::path& filename,
27 const std::string& vertices_name,
28 const Eigen::MatrixXi& elements,
31 void write(
const std::string& name,
const int64_t stride,
const std::vector<double>& val);
51 const std::filesystem::path& filename,
52 const std::string& vertices_name,
54 bool write_points =
true,
55 bool write_edges =
true,
56 bool write_faces =
true,
57 bool write_tetrahedra =
true);
72 const std::string& name,
75 const std::vector<char>& val,
76 const char default_val)
override;
79 const std::string& name,
82 const std::vector<int64_t>& val,
83 const int64_t default_val)
override;
86 const std::string& name,
89 const std::vector<double>& val,
90 const double default_val)
override;
93 const std::string& name,
96 const std::vector<Rational>& val,
97 const Rational& default_val)
override;
107 const std::string& name,
109 const int64_t stride,
110 const std::vector<double>& val);
std::string m_vertices_name
std::filesystem::path m_filename
void write(const std::string &name, const int64_t stride, const std::vector< double > &val)
std::shared_ptr< paraviewo::ParaviewWriter > m_paraview_file
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