43 #ifndef VTKMESHREADER_HPP_
44 #define VTKMESHREADER_HPP_
54 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the strstream deprecated warning for now (gcc4.3)
55 #include <vtkDataArray.h>
56 #include <vtkDoubleArray.h>
57 #include <vtkCellData.h>
58 #include <vtkPointData.h>
60 #include <vtkUnstructuredGrid.h>
61 #include <vtkUnstructuredGridReader.h>
62 #include <vtkXMLUnstructuredGridReader.h>
63 #include <vtkGeometryFilter.h>
64 #include <vtkGenericGeometryFilter.h>
65 #include <vtkDataCompressor.h>
66 #include <vtkFeatureEdges.h>
67 #include <vtkDataSetSurfaceFilter.h>
68 #include <vtkSmartPointer.h>
72 #include "AbstractMeshReader.hpp"
79 template <
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
223 void GetCellData(std::string dataName, std::vector<double>& dataPayload);
232 void GetPointData(std::string dataName, std::vector<double>& dataPayload);
240 void GetCellData(std::string dataName, std::vector<c_vector<double,SPACE_DIM> >& dataPayload);
249 void GetPointData(std::string dataName, std::vector<c_vector<double,SPACE_DIM> >& dataPayload);
unsigned GetNumCableElementAttributes() const
unsigned mBoundaryFacesSkipped
unsigned mMaxNodeBdyMarker
unsigned GetNumEdges() const
unsigned mNumFaceAttributes
void GetPointData(std::string dataName, std::vector< double > &dataPayload)
unsigned GetNumFaceAttributes() const
unsigned mOrderOfElements
vtkGeometryFilter * mpVtkGeometryFilter
ElementData GetNextFaceData()
unsigned GetNumElementAttributes() const
ElementData GetNextElementData()
unsigned mNumElementAttributes
unsigned mNumCableElements
unsigned GetNumElements() const
unsigned mNodesPerElement
ElementData GetNextCableElementData()
unsigned mCableElementsRead
unsigned GetNumCableElements() const
unsigned mBoundaryFacesRead
vtkFeatureEdges * mpVtkFilterEdges
void GetCellData(std::string dataName, std::vector< double > &dataPayload)
unsigned mNumCableElementAttributes
unsigned GetNumFaces() const
unsigned GetNumNodes() const
unsigned mNumNodeAttributes
vtkUnstructuredGrid * OutputMeshAsVtkUnstructuredGrid()
std::vector< double > GetNextNode()
vtkSmartPointer< vtkUnstructuredGrid > mpVtkUnstructuredGrid
VtkMeshReader(std::string pathBaseName)