libMesh
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
libMesh::VTKIO::ElementMaps Struct Reference

Helper object that holds a map from VTK to libMesh element types and vice-versa. More...

Public Member Functions

void associate (ElemType libmesh_type, vtkIdType vtk_type)
 
vtkIdType find (ElemType libmesh_type)
 
ElemType find (vtkIdType vtk_type)
 

Public Attributes

std::map< ElemType, vtkIdType > writing_map
 
std::map< vtkIdType, ElemTypereading_map
 

Detailed Description

Helper object that holds a map from VTK to libMesh element types and vice-versa.

Definition at line 186 of file vtk_io.h.

Member Function Documentation

◆ associate()

void libMesh::VTKIO::ElementMaps::associate ( ElemType  libmesh_type,
vtkIdType  vtk_type 
)
inline

Definition at line 189 of file vtk_io.h.

190 {
191 writing_map[libmesh_type] = vtk_type;
192 reading_map[vtk_type] = libmesh_type;
193 }
std::map< vtkIdType, ElemType > reading_map
Definition vtk_io.h:208
std::map< ElemType, vtkIdType > writing_map
Definition vtk_io.h:207

References reading_map, and writing_map.

Referenced by libMesh::VTKIO::build_element_maps().

◆ find() [1/2]

vtkIdType libMesh::VTKIO::ElementMaps::find ( ElemType  libmesh_type)
inline

Definition at line 196 of file vtk_io.h.

197 {
198 return libmesh_map_find(writing_map, libmesh_type);
199 }

References writing_map.

◆ find() [2/2]

ElemType libMesh::VTKIO::ElementMaps::find ( vtkIdType  vtk_type)
inline

Definition at line 202 of file vtk_io.h.

203 {
204 return libmesh_map_find(reading_map, vtk_type);
205 }

References reading_map.

Member Data Documentation

◆ reading_map

std::map<vtkIdType, ElemType> libMesh::VTKIO::ElementMaps::reading_map

Definition at line 208 of file vtk_io.h.

Referenced by associate(), and find().

◆ writing_map

std::map<ElemType, vtkIdType> libMesh::VTKIO::ElementMaps::writing_map

Definition at line 207 of file vtk_io.h.

Referenced by associate(), libMesh::VTKIO::build_element_maps(), and find().


The documentation for this struct was generated from the following file: