NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Parses a Medit mesh (.mesh) file. More...
Public Member Functions | |
MeditMeshParser (void) | |
template<class t_vtkCellType > | |
vector< int > | _ReadCellLabelsAsVector (void) const throw (niftk::IOException) |
template<class t_vtkCellType > | |
vtkSmartPointer < vtkMultiBlockDataSet > | _ReadAsVTKMesh (void) const throw (niftk::IOException) |
FS I/O | |
void | SetInputFileName (const std::string &filename) |
Setter for input mesh file. More... | |
Mesh conversion | |
vtkSmartPointer < vtkMultiBlockDataSet > | ReadAsVTKSurfaceMeshes (void) const throw (IOException) |
Reads the mesh description from the file set with SetInputFileName and outputs a set of VTK grids. More... | |
vtkSmartPointer < vtkMultiBlockDataSet > | ReadAsVTKVolumeMeshes (void) const throw (IOException) |
Reads the mesh description from the file set with SetInputFileName and outputs a set of VTK grids. More... | |
void | SetTranslation (const double tVec[]) |
Parses a Medit mesh (.mesh) file.
MeditMeshParser::MeditMeshParser | ( | void | ) |
vtkSmartPointer<vtkMultiBlockDataSet> niftk::MeditMeshParser::_ReadAsVTKMesh | ( | void | ) | const | |
throw | ( | niftk::IOException | |||
) |
vector<int> niftk::MeditMeshParser::_ReadCellLabelsAsVector | ( | void | ) | const | |
throw | ( | niftk::IOException | |||
) |
vtkSmartPointer< vtkMultiBlockDataSet > MeditMeshParser::ReadAsVTKSurfaceMeshes | ( | void | ) | const | |
throw | ( | IOException | |||
) |
Reads the mesh description from the file set with SetInputFileName and outputs a set of VTK grids.
Contains one vtkUnstructuredGrid for each label of in the input data.
This routine returns the surface triangulation.
vtkSmartPointer< vtkMultiBlockDataSet > MeditMeshParser::ReadAsVTKVolumeMeshes | ( | void | ) | const | |
throw | ( | IOException | |||
) |
Reads the mesh description from the file set with SetInputFileName and outputs a set of VTK grids.
Contains one vtkUnstructuredGrid for each label of in the input data.
This routine returns the tetrahedral volume mesh.
|
inline |
Setter for input mesh file.
void MeditMeshParser::SetTranslation | ( | const double | tVec[] | ) |
Setter for a translation vector