19 #ifndef LIBMESH_VTK_IO_H 20 #define LIBMESH_VTK_IO_H 27 #ifdef LIBMESH_HAVE_VTK 31 #include "vtkSmartPointer.h" 40 class vtkUnstructuredGrid;
92 const std::vector<Number> &,
93 const std::vector<std::string> &)
override;
103 virtual void read (
const std::string &)
override;
112 virtual void write (
const std::string &)
override;
114 #ifdef LIBMESH_HAVE_VTK 180 std::map<ElemType, vtkIdType>::iterator it =
writing_map.find(libmesh_type);
183 libmesh_error_msg(
"Element type " << libmesh_type <<
" not available in VTK.");
191 std::map<vtkIdType, ElemType>::iterator it =
reading_map.find(vtk_type);
194 libmesh_error_msg(
"Element type " << vtk_type <<
" not available in libMesh.");
222 #endif // LIBMESH_VTK_IO_H void set_compression(bool b)
std::map< dof_id_type, dof_id_type > _local_node_map
vtkIdType find(ElemType libmesh_type)
vtkSmartPointer< vtkUnstructuredGrid > _vtk_grid
virtual void write(const std::string &) override
static ElementMaps _element_maps
virtual void read(const std::string &) override
ElemType find(vtkIdType vtk_type)
virtual void write_nodal_data(const std::string &, const std::vector< Number > &, const std::vector< std::string > &) override
static ElementMaps build_element_maps()
vtkUnstructuredGrid * get_vtk_grid()
std::map< ElemType, vtkIdType > writing_map
std::map< vtkIdType, ElemType > reading_map
void associate(ElemType libmesh_type, vtkIdType vtk_type)