 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
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:165
A 3D representation of a vtkPointSet to be displayed in a InteractiveViewer, this class implements th...
Definition: Geometry.h:125
#define VTK_COMPONENT_API
Definition: VtkMeshComponentAPI.h:53
static void saveUnstructuredGridToFile(vtkSmartPointer< vtkUnstructuredGrid > uGrid, std::string fname, std::string oname="")
save a given vtkUnstructuredGrid into a given file
Definition: VtkMeshUtil.cpp:154
VtkPointSetType
constant for the vtk point set type
Definition: VtkMeshUtil.h:50
the surface is visible
Definition: InterfaceGeometry.h:66
Definition: VtkMeshUtil.h:52
static bool savePointSetToFile(vtkSmartPointer< vtkPointSet > ps, std::string fname, std::string oname="")
save a vtkDataset into a given file.
Definition: VtkMeshUtil.cpp:135
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:68
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:44
This class helps to transform, export and import vtk point sets.
Definition: VtkMeshUtil.h:45
static vtkSmartPointer< vtkPolyData > vtkPointSetToVtkPolyData(vtkSmartPointer< vtkPointSet > aPointSet)
static method that transform any vtkPointSet to a vtkPolyData.
Definition: VtkMeshUtil.cpp:275
Definition: VtkMeshUtil.h:53
Definition: VtkMeshUtil.h:51
vtkSmartPointer< vtkPointSet > getPointSet()
Definition: Geometry.h:161
static VtkPointSetType typeOf(std::string vtkFileName)
static method that tells you what kind of vtk file it is.
Definition: VtkMeshUtil.cpp:235
Definition: VtkMeshUtil.h:54
const QString getLabel() const
get the label of this Geometry instance
Definition: Geometry.h:145
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:187
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:130
static void saveStructuredGridToFile(vtkSmartPointer< vtkStructuredGrid > sGrid, std::string fname, std::string oname="")
save a given vtkStructuredGrid into a given file
Definition: VtkMeshUtil.cpp:176
Definition: Action.cpp:36