Wildmeshing Toolkit
|
#include <EigenMatrixWriter.hpp>
Public Member Functions | |
EigenMatrixWriter ()=default | |
~EigenMatrixWriter ()=default | |
void | get_position_matrix (MatrixX< double > &matrix) |
void | get_position_matrix (MatrixX< Rational > &matrix) |
void | get_TV_matrix (MatrixX< int64_t > &matrix) |
void | get_FV_matrix (MatrixX< int64_t > &matrix) |
void | get_EV_matrix (MatrixX< int64_t > &matrix) |
void | get_double_matrix (const std::string &name, const PrimitiveType type, MatrixX< double > &matrix) |
void | get_int64_t_matrix (const std::string &name, const PrimitiveType type, MatrixX< int64_t > &matrix) |
void | get_char_matrix (const std::string &name, const PrimitiveType type, MatrixX< char > &matrix) |
void | get_Rational_matrix (const std::string &name, const PrimitiveType type, MatrixX< Rational > &matrix) |
void | write_top_simplex_type (const PrimitiveType type) override |
void | write_absolute_id (const std::vector< int64_t > &id) override |
void | write_capacities (const std::vector< int64_t > &capacities) override |
bool | write (const int dim) override |
void | write (const std::string &name, const int64_t type, const int64_t stride, const std::vector< char > &val, const char default_val) override |
void | write (const std::string &name, const int64_t type, const int64_t stride, const std::vector< int64_t > &val, const int64_t default_val) override |
void | write (const std::string &name, const int64_t type, const int64_t stride, const std::vector< double > &val, const double default_val) override |
void | write (const std::string &name, const int64_t type, const int64_t stride, const std::vector< Rational > &val, const Rational &default_val) override |
Public Member Functions inherited from wmtk::MeshWriter | |
virtual | ~MeshWriter () |
Private Member Functions | |
template<typename T > | |
void | write_internal (std::map< std::pair< std::string, PrimitiveType >, MatrixX< T >> &Ts, const std::string &name, const int64_t type, const int64_t stride, const std::vector< T > &val, const T &default_val) |
Private Attributes | |
std::map< std::pair< std::string, PrimitiveType >, MatrixX< double > > | doubles |
std::map< std::pair< std::string, PrimitiveType >, MatrixX< int64_t > > | int64_ts |
std::map< std::pair< std::string, PrimitiveType >, MatrixX< char > > | chars |
std::map< std::pair< std::string, PrimitiveType >, MatrixX< Rational > > | Rationals |
Additional Inherited Members | |
Protected Attributes inherited from wmtk::MeshWriter | |
int64_t | m_mm_level = 0 |
Definition at line 9 of file EigenMatrixWriter.hpp.
|
default |
|
default |
void wmtk::utils::EigenMatrixWriter::get_char_matrix | ( | const std::string & | name, |
const PrimitiveType | type, | ||
MatrixX< char > & | matrix | ||
) |
Definition at line 55 of file EigenMatrixWriter.cpp.
References chars.
void wmtk::utils::EigenMatrixWriter::get_double_matrix | ( | const std::string & | name, |
const PrimitiveType | type, | ||
MatrixX< double > & | matrix | ||
) |
Definition at line 31 of file EigenMatrixWriter.cpp.
References doubles.
Referenced by get_position_matrix(), wmtk::components::tetwild_simplification(), and wmtk::components::triangle_insertion::triangle_insertion().
void wmtk::utils::EigenMatrixWriter::get_EV_matrix | ( | MatrixX< int64_t > & | matrix | ) |
Definition at line 26 of file EigenMatrixWriter.cpp.
References wmtk::Edge, and get_int64_t_matrix().
Referenced by wmtk::components::internal::edge_insertion(), and wmtk::components::internal::winding_number().
void wmtk::utils::EigenMatrixWriter::get_FV_matrix | ( | MatrixX< int64_t > & | matrix | ) |
Definition at line 21 of file EigenMatrixWriter.cpp.
References get_int64_t_matrix(), and wmtk::Triangle.
Referenced by wmtk::components::multimesh::axis_aligned_fusion(), wmtk::components::internal::edge_insertion(), wmtk::components::internal::get_vf(), TEST_CASE(), wmtk::components::tetwild_simplification(), wmtk::components::triangle_insertion::triangle_insertion(), and wmtk::components::internal::winding_number().
void wmtk::utils::EigenMatrixWriter::get_int64_t_matrix | ( | const std::string & | name, |
const PrimitiveType | type, | ||
MatrixX< int64_t > & | matrix | ||
) |
Definition at line 43 of file EigenMatrixWriter.cpp.
References int64_ts.
Referenced by get_EV_matrix(), get_FV_matrix(), and get_TV_matrix().
void wmtk::utils::EigenMatrixWriter::get_position_matrix | ( | MatrixX< double > & | matrix | ) |
Definition at line 5 of file EigenMatrixWriter.cpp.
References get_double_matrix(), and wmtk::Vertex.
Referenced by wmtk::components::multimesh::axis_aligned_fusion(), wmtk::components::internal::edge_insertion(), wmtk::components::internal::get_vf(), TEST_CASE(), and wmtk::components::internal::winding_number().
Definition at line 10 of file EigenMatrixWriter.cpp.
References get_Rational_matrix(), and wmtk::Vertex.
void wmtk::utils::EigenMatrixWriter::get_Rational_matrix | ( | const std::string & | name, |
const PrimitiveType | type, | ||
MatrixX< Rational > & | matrix | ||
) |
Definition at line 67 of file EigenMatrixWriter.cpp.
References Rationals.
Referenced by get_position_matrix().
void wmtk::utils::EigenMatrixWriter::get_TV_matrix | ( | MatrixX< int64_t > & | matrix | ) |
Definition at line 16 of file EigenMatrixWriter.cpp.
References get_int64_t_matrix(), and wmtk::Tetrahedron.
Referenced by wmtk::components::multimesh::axis_aligned_fusion(), wmtk::components::triangle_insertion::triangle_insertion(), and wmtk::components::internal::winding_number().
|
inlineoverridevirtual |
Implements wmtk::MeshWriter.
Definition at line 35 of file EigenMatrixWriter.hpp.
|
overridevirtual |
Implements wmtk::MeshWriter.
Definition at line 94 of file EigenMatrixWriter.cpp.
References chars, and write_internal().
|
overridevirtual |
Implements wmtk::MeshWriter.
Definition at line 114 of file EigenMatrixWriter.cpp.
References doubles, and write_internal().
|
overridevirtual |
Implements wmtk::MeshWriter.
Definition at line 104 of file EigenMatrixWriter.cpp.
References int64_ts, and write_internal().
|
overridevirtual |
Implements wmtk::MeshWriter.
Definition at line 124 of file EigenMatrixWriter.cpp.
References Rationals, and write_internal().
|
overridevirtual |
Implements wmtk::MeshWriter.
Definition at line 140 of file EigenMatrixWriter.cpp.
References wmtk::MeshWriter::m_mm_level.
|
overridevirtual |
Implements wmtk::MeshWriter.
Definition at line 144 of file EigenMatrixWriter.cpp.
|
private |
Definition at line 80 of file EigenMatrixWriter.cpp.
References wmtk::MeshWriter::m_mm_level.
Referenced by write().
|
overridevirtual |
Implements wmtk::MeshWriter.
Definition at line 136 of file EigenMatrixWriter.cpp.
|
private |
Definition at line 69 of file EigenMatrixWriter.hpp.
Referenced by get_char_matrix(), and write().
|
private |
Definition at line 67 of file EigenMatrixWriter.hpp.
Referenced by get_double_matrix(), and write().
|
private |
Definition at line 68 of file EigenMatrixWriter.hpp.
Referenced by get_int64_t_matrix(), and write().
|
private |
Definition at line 70 of file EigenMatrixWriter.hpp.
Referenced by get_Rational_matrix(), and write().