|
| MeshReader (std::string fileName) |
|
virtual void | detectMesh ()=0 |
| Main method responsible for reading the mesh file.
|
|
void | forceGlobalIndexType (std::string globalIndexType) |
|
void | forceLocalIndexType (std::string localIndexType) |
|
void | forceRealType (std::string realType) |
|
VTK::EntityShape | getCellShape () const |
|
std::string | getGlobalIndexType () const |
|
std::string | getLocalIndexType () const |
|
int | getMeshDimension () const |
|
std::string | getMeshType () const |
|
std::string | getRealType () const |
|
int | getSpaceDimension () const |
|
template<typename MeshType > |
std::enable_if_t< isGrid< MeshType >::value > | loadMesh (MeshType &mesh) |
| Method which loads the intermediate mesh representation into a mesh object.
|
|
template<typename MeshType > |
std::enable_if_t< ! isGrid< MeshType >::value > | loadMesh (MeshType &mesh) |
| Method which loads the intermediate mesh representation into a mesh object.
|
|
virtual VariantVector | readCellData (const std::string &arrayName) const |
|
virtual VariantVector | readPointData (const std::string &arrayName) const |
|
virtual void | reset () |
| This method resets the reader to an empty state.
|
|
void | setFileName (const std::string &fileName) |
|
◆ VariantVector
using TNL::Meshes::Readers::MeshReader::VariantVector |
Initial value: std::variant< std::vector< std::int8_t >,
◆ detectMesh()
virtual void TNL::Meshes::Readers::MeshReader::detectMesh |
( |
| ) |
|
|
pure virtual |
◆ loadMesh() [1/2]
template<typename MeshType >
std::enable_if_t< isGrid< MeshType >::value > TNL::Meshes::Readers::MeshReader::loadMesh |
( |
MeshType & | mesh | ) |
|
|
inline |
Method which loads the intermediate mesh representation into a mesh object.
This overload applies to structured grids, i.e. TNL::Meshes::Grid.
When the method exits, the intermediate mesh representation is destroyed to save memory. However, depending on the specific file format, the mesh file may remain open so that the user can load additional data.
◆ loadMesh() [2/2]
template<typename MeshType >
std::enable_if_t< ! isGrid< MeshType >::value > TNL::Meshes::Readers::MeshReader::loadMesh |
( |
MeshType & | mesh | ) |
|
|
inline |
Method which loads the intermediate mesh representation into a mesh object.
This overload applies to unstructured meshes, i.e. TNL::Meshes::Mesh.
When the method exits, the intermediate mesh representation is destroyed to save memory. However, depending on the specific file format, the mesh file may remain open so that the user can load additional data.
◆ reset()
virtual void TNL::Meshes::Readers::MeshReader::reset |
( |
| ) |
|
|
inlinevirtual |
◆ resetBase()
void TNL::Meshes::Readers::MeshReader::resetBase |
( |
| ) |
|
|
inlineprotected |
Resets the base class MeshReader to the empty state.
Subclasses should call this method from their reset method.
The documentation for this class was generated from the following file:
- src/TNL/Meshes/Readers/MeshReader.h