NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | List of all members
niftk::MeditMeshParser Class Reference

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[])
 

Detailed Description

Parses a Medit mesh (.mesh) file.

Constructor & Destructor Documentation

MeditMeshParser::MeditMeshParser ( void  )

Member Function Documentation

template<class t_vtkCellType >
vtkSmartPointer<vtkMultiBlockDataSet> niftk::MeditMeshParser::_ReadAsVTKMesh ( void  ) const
throw (niftk::IOException
)
template<class t_vtkCellType >
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.

void niftk::MeditMeshParser::SetInputFileName ( const std::string filename)
inline

Setter for input mesh file.

void MeditMeshParser::SetTranslation ( const double  tVec[])

Setter for a translation vector


The documentation for this class was generated from the following files: