iMSTK
Interactive Medical Simulation Toolkit
|
Implements VTK read and write functions. More...
#include <imstkVTKMeshIO.h>
Static Public Member Functions | |
static std::shared_ptr< PointSet > | read (const std::string &filePath, MeshFileType meshType) |
static bool | write (const std::shared_ptr< PointSet > imstkMesh, const std::string &filePath, const MeshFileType meshType) |
Writes the given mesh to the specified file path. | |
Static Protected Member Functions | |
template<typename ReaderType > | |
static std::shared_ptr< PointSet > | readVtkGenericFormatData (const std::string &filePath) |
template<typename ReaderType > | |
static std::shared_ptr< SurfaceMesh > | readVtkPolyData (const std::string &filePath) |
template<typename WriterType > | |
static bool | writeVtkImageData (const std::shared_ptr< ImageData > imstkMesh, const std::string &filePath) |
Writes the given image data to given file path using the provided writer type. | |
template<typename WriterType > | |
static bool | writeVtkPolyData (const std::shared_ptr< SurfaceMesh > imstkMesh, const std::string &filePath) |
Writes the given surface mesh to given file path using the provided writer type. | |
template<typename WriterType > | |
static bool | writeVtkPolyData (const std::shared_ptr< LineMesh > imstkMesh, const std::string &filePath) |
Writes the given line mesh to given file path using the provided writer type. | |
template<typename WriterType > | |
static bool | writeVtkPointSet (const std::shared_ptr< PointSet > imstkMesh, const std::string &filePath) |
Writes the given point set to given file path using the provided writer type. | |
template<typename WriterType > | |
static bool | writeVtkUnstructuredGrid (const std::shared_ptr< TetrahedralMesh > tetMesh, const std::string &filePath) |
Writes the given volumetric mesh to given file path. | |
template<typename WriterType > | |
static bool | writeVtkUnstructuredGrid (const std::shared_ptr< HexahedralMesh > hMesh, const std::string &filePath) |
template<typename ReaderType > | |
static std::shared_ptr< AbstractCellMesh > | readVtkUnstructuredGrid (const std::string &filePath) |
Reads vtk unstructured grid. Drops cells that aren't of the last cell type. More... | |
template<typename ReaderType > | |
static std::shared_ptr< ImageData > | readVtkImageData (const std::string &filePath) |
Reads vtk image data. | |
static std::shared_ptr< ImageData > | readVtkImageDataDICOM (const std::string &filePath) |
TODO. | |
static std::shared_ptr< ImageData > | readVtkImageDataNIFTI (const std::string &filePath) |
Reads nifti/nii format image data. | |
static bool | writeVtkImageDataNIFTI (std::shared_ptr< ImageData > imageData, const std::string &filePath) |
Write nifti/nii format image data. | |
static bool | writeMetaImageData (std::shared_ptr< ImageData > imageData, const std::string &filePath) |
Write meta/mhd format image data. | |
Implements VTK read and write functions.
Definition at line 25 of file imstkVTKMeshIO.h.
|
staticprotected |
Reads vtk unstructured grid. Drops cells that aren't of the last cell type.
Definition at line 341 of file imstkVTKMeshIO.cpp.