|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
34 class vtkUnstructuredGrid;
36 class vtkStructuredGrid;
72 static vtkSmartPointer<vtkPointSet> buildVtkPointSet(std::string vtkFileName, VtkPointSetType whatIsIt = UNKNOWN);
79 static bool saveGeometryToFile(
camitk::Geometry* g, std::string vtkFileName);
86 static bool savePointSetToFile(vtkSmartPointer<vtkPointSet> ps, std::string fname, std::string oname =
"");
93 static void saveUnstructuredGridToFile(vtkSmartPointer<vtkUnstructuredGrid> uGrid, std::string fname, std::string oname =
"");
100 static void saveStructuredGridToFile(vtkSmartPointer<vtkStructuredGrid> sGrid, std::string fname, std::string oname =
"");
107 static void savePolyDataToFile(vtkSmartPointer<vtkPolyData> pData, std::string fname, std::string oname =
"");
114 static std::string getVtkPointSetHeaderString(std::string vtkFileName, VtkPointSetType whatIsIt = UNKNOWN);
121 static VtkPointSetType typeOf(std::string vtkFileName);
138 static vtkSmartPointer<vtkPolyData> vtkPointSetToVtkPolyData(vtkSmartPointer<vtkPointSet> aPointSet);
static void savePolyDataToFile(vtkSmartPointer< vtkPolyData > pData, std::string fname, std::string oname="")
save a given vtkPolyData into a given file
Definition: VtkMeshUtil.cpp:171
A 3D representation of a vtkPointSet to be displayed in a InteractiveViewer, this class implements th...
Definition: Geometry.h:126
#define VTK_COMPONENT_API
Definition: VtkMeshComponentAPI.h:54
static void saveUnstructuredGridToFile(vtkSmartPointer< vtkUnstructuredGrid > uGrid, std::string fname, std::string oname="")
save a given vtkUnstructuredGrid into a given file
Definition: VtkMeshUtil.cpp:160
VtkPointSetType
constant for the vtk point set type
Definition: VtkMeshUtil.h:51
@ Surface
the surface is visible
Definition: InterfaceGeometry.h:67
@ UNSTRUCTURED_GRID
Definition: VtkMeshUtil.h:53
static bool savePointSetToFile(vtkSmartPointer< vtkPointSet > ps, std::string fname, std::string oname="")
save a vtkDataset into a given file.
Definition: VtkMeshUtil.cpp:141
static vtkSmartPointer< vtkPointSet > buildVtkPointSet(std::string vtkFileName, VtkPointSetType whatIsIt=UNKNOWN)
Static method that could be used from anywhere to build a vtkPointSet from a vtk file.
Definition: VtkMeshUtil.cpp:74
static camitk::Geometry * vtkToGeometry(std::string vtkFileName)
Static method that could be used from anywhere to translate a vtk file to a Geometry instance.
Definition: VtkMeshUtil.cpp:50
This class helps to transform, export and import vtk point sets.
Definition: VtkMeshUtil.h:46
vtkSmartPointer< vtkPointSet > getPointSet() override
Definition: Geometry.h:162
static vtkSmartPointer< vtkPolyData > vtkPointSetToVtkPolyData(vtkSmartPointer< vtkPointSet > aPointSet)
static method that transform any vtkPointSet to a vtkPolyData.
Definition: VtkMeshUtil.cpp:281
@ STRUCTURED_GRID
Definition: VtkMeshUtil.h:54
@ UNKNOWN
Definition: VtkMeshUtil.h:52
static VtkPointSetType typeOf(std::string vtkFileName)
static method that tells you what kind of vtk file it is.
Definition: VtkMeshUtil.cpp:241
@ POLY_DATA
Definition: VtkMeshUtil.h:55
const QString getLabel() const override
get the label of this Geometry instance
Definition: Geometry.h:146
static std::string getVtkPointSetHeaderString(std::string vtkFileName, VtkPointSetType whatIsIt=UNKNOWN)
static method to get the vtk header string from a vtk file
Definition: VtkMeshUtil.cpp:193
static bool saveGeometryToFile(camitk::Geometry *g, std::string vtkFileName)
Static method that could be use to store any Geometry instance in a vtk file.
Definition: VtkMeshUtil.cpp:136
static void saveStructuredGridToFile(vtkSmartPointer< vtkStructuredGrid > sGrid, std::string fname, std::string oname="")
save a given vtkStructuredGrid into a given file
Definition: VtkMeshUtil.cpp:182
Definition: Action.cpp:35