libMesh
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.

References reading_map, and writing_map.

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

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

◆ find() [1/2]

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

Definition at line 196 of file vtk_io.h.

References writing_map.

197  {
198  return libmesh_map_find(writing_map, libmesh_type);
199  }
std::map< ElemType, vtkIdType > writing_map
Definition: vtk_io.h:207

◆ find() [2/2]

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

Definition at line 202 of file vtk_io.h.

References reading_map.

203  {
204  return libmesh_map_find(reading_map, vtk_type);
205  }
std::map< vtkIdType, ElemType > reading_map
Definition: vtk_io.h:208

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: