Go to the source code of this file.
Classes | |
class | vtkMesh |
Functions | |
template<class TReader > | |
vtkDataSet * | ReadAnXMLOrSTLFile (const std::string &fileName) |
vtkSmartPointer< vtkUnstructuredGrid > | ReadALegacyVTKFile (const std::string &fileName) |
vtkSmartPointer< vtkUnstructuredGrid > | ReadDegenerateVTKFile (const std::string &fileName) |
bool | readLegacyVTKHeader (const std::string &line) |
bool | readLegacyVTKFieldData (const std::istream &meshStream, const std::string &line, vtkSmartPointer< vtkUnstructuredGrid > dataSet_tmp) |
bool | readLegacyVTKPoints (const std::istream &meshStream, const std::string &line, nemId_t &numPoints, vtkSmartPointer< vtkPoints > points, vtkSmartPointer< vtkUnstructuredGrid > dataSet_tmp) |
bool | readLegacyVTKCells (const std::istream &meshStream, const std::string &line, nemId_t &numCells, const std::vector< vtkSmartPointer< vtkIdList >> &vtkCellIds, vtkSmartPointer< vtkUnstructuredGrid > dataSet_tmp) |
bool | readLegacyVTKData (const std::ifstream &meshStream, const std::string &line, nemId_t numTuple, bool pointOrCell, bool &hasPointOrCell, vtkSmartPointer< vtkUnstructuredGrid > dataSet_tmp) |
void | addLegacyVTKData (vtkDataArray *arr, const std::string &type, bool pointOrCell, vtkSmartPointer< vtkUnstructuredGrid > dataSet_tmp) |
template<class TWriter > | |
void | writeVTFile (const std::string &fname, vtkSmartPointer< vtkDataSet > dataSet) |
void addLegacyVTKData | ( | vtkDataArray * | arr, |
const std::string & | type, | ||
bool | pointOrCell, | ||
vtkSmartPointer< vtkUnstructuredGrid > | dataSet_tmp | ||
) |
Referenced by ReadAnXMLOrSTLFile().
vtkSmartPointer<vtkUnstructuredGrid> ReadALegacyVTKFile | ( | const std::string & | fileName | ) |
Definition at line 502 of file vtkMesh.C.
References NEM::MSH::New(), meshBase::numCells, meshBase::numPoints, points, readLegacyVTKCells(), readLegacyVTKData(), readLegacyVTKFieldData(), readLegacyVTKHeader(), and readLegacyVTKPoints().
Referenced by ReadAnXMLOrSTLFile(), and vtkMesh::vtkMesh().
vtkDataSet* ReadAnXMLOrSTLFile | ( | const std::string & | fileName | ) |
Definition at line 40 of file vtkMesh.H.
References addLegacyVTKData(), NEM::MSH::New(), points, ReadALegacyVTKFile(), ReadDegenerateVTKFile(), readLegacyVTKCells(), readLegacyVTKData(), readLegacyVTKFieldData(), readLegacyVTKHeader(), and readLegacyVTKPoints().
vtkSmartPointer<vtkUnstructuredGrid> ReadDegenerateVTKFile | ( | const std::string & | fileName | ) |
Definition at line 581 of file vtkMesh.C.
References cellType, nemAux::flip_map(), id, NEM::MSH::New(), meshBase::numCells, meshBase::numPoints, and points.
Referenced by ReadAnXMLOrSTLFile(), and vtkMesh::vtkMesh().
bool readLegacyVTKCells | ( | const std::istream & | meshStream, |
const std::string & | line, | ||
nemId_t & | numCells, | ||
const std::vector< vtkSmartPointer< vtkIdList >> & | vtkCellIds, | ||
vtkSmartPointer< vtkUnstructuredGrid > | dataSet_tmp | ||
) |
Referenced by ReadAnXMLOrSTLFile().
bool readLegacyVTKData | ( | const std::ifstream & | meshStream, |
const std::string & | line, | ||
nemId_t | numTuple, | ||
bool | pointOrCell, | ||
bool & | hasPointOrCell, | ||
vtkSmartPointer< vtkUnstructuredGrid > | dataSet_tmp | ||
) |
Referenced by ReadAnXMLOrSTLFile().
bool readLegacyVTKFieldData | ( | const std::istream & | meshStream, |
const std::string & | line, | ||
vtkSmartPointer< vtkUnstructuredGrid > | dataSet_tmp | ||
) |
Referenced by ReadAnXMLOrSTLFile().
bool readLegacyVTKHeader | ( | const std::string & | line | ) |
Definition at line 294 of file vtkMesh.C.
Referenced by ReadALegacyVTKFile(), and ReadAnXMLOrSTLFile().
bool readLegacyVTKPoints | ( | const std::istream & | meshStream, |
const std::string & | line, | ||
nemId_t & | numPoints, | ||
vtkSmartPointer< vtkPoints > | points, | ||
vtkSmartPointer< vtkUnstructuredGrid > | dataSet_tmp | ||
) |
Referenced by ReadAnXMLOrSTLFile().
void writeVTFile | ( | const std::string & | fname, |
vtkSmartPointer< vtkDataSet > | dataSet | ||
) |
Definition at line 87 of file vtkMesh.H.
References NEM::MSH::New().