iMSTK
Interactive Medical Simulation Toolkit
Static Public Member Functions | Static Protected Member Functions | List of all members
imstk::VTKMeshIO Class Reference

Implements VTK read and write functions. More...

#include <imstkVTKMeshIO.h>

Static Public Member Functions

static std::shared_ptr< PointSetread (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< PointSetreadVtkGenericFormatData (const std::string &filePath)
 
template<typename ReaderType >
static std::shared_ptr< SurfaceMeshreadVtkPolyData (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< AbstractCellMeshreadVtkUnstructuredGrid (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< ImageDatareadVtkImageData (const std::string &filePath)
 Reads vtk image data.
 
static std::shared_ptr< ImageDatareadVtkImageDataDICOM (const std::string &filePath)
 TODO.
 
static std::shared_ptr< ImageDatareadVtkImageDataNIFTI (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.
 

Detailed Description

Implements VTK read and write functions.

Definition at line 25 of file imstkVTKMeshIO.h.

Member Function Documentation

◆ readVtkUnstructuredGrid()

template<typename ReaderType >
std::shared_ptr< AbstractCellMesh > imstk::VTKMeshIO::readVtkUnstructuredGrid ( const std::string &  filePath)
staticprotected

Reads vtk unstructured grid. Drops cells that aren't of the last cell type.

Returns
Returns TetrahedralMesh or HexahedralMesh

Definition at line 341 of file imstkVTKMeshIO.cpp.

Here is the call graph for this function:

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