9 #include "fwVtkIO/config.hpp" 11 #include <fwData/Mesh.hpp> 13 #include <vtkPolyData.h> 14 #include <vtkSmartPointer.h> 15 #include <vtkUnstructuredGrid.h> 26 class FWVTKIO_CLASS_API
Mesh 37 FWVTKIO_API
static void fromVTKMesh( vtkSmartPointer<vtkPolyData> _polyData, ::fwData::Mesh::sptr _mesh );
45 FWVTKIO_API
static void fromVTKGrid(vtkSmartPointer<vtkUnstructuredGrid> grid, ::fwData::Mesh::sptr mesh);
53 FWVTKIO_API
static void toVTKGrid( const ::fwData::Mesh::csptr& mesh, vtkSmartPointer<vtkUnstructuredGrid> grid);
61 FWVTKIO_API
static void toVTKMesh( const ::fwData::Mesh::csptr& _mesh, vtkSmartPointer<vtkPolyData> _polyData);
74 FWVTKIO_API
static void updatePolyDataPoints(vtkSmartPointer<vtkPolyData> polyDataDst,
75 const ::fwData::Mesh::csptr& meshSrc );
86 FWVTKIO_API
static void updatePolyDataPointColor(vtkSmartPointer<vtkPolyData> polyDataDst,
87 const ::fwData::Mesh::csptr& meshSrc);
98 FWVTKIO_API
static void updatePolyDataCellColor(vtkSmartPointer<vtkPolyData> polyDataDst,
99 const ::fwData::Mesh::csptr& meshSrc );
110 FWVTKIO_API
static void updatePolyDataPointNormals(vtkSmartPointer<vtkPolyData> polyDataDst,
111 const ::fwData::Mesh::csptr& meshSrc);
122 FWVTKIO_API
static void updatePolyDataCellNormals(vtkSmartPointer<vtkPolyData> polyDataDst,
123 const ::fwData::Mesh::csptr& meshSrc);
132 FWVTKIO_API
static void updatePolyDataPointTexCoords(
133 vtkSmartPointer<vtkPolyData> polyDataDst, const ::fwData::Mesh::csptr& meshSrc);
142 FWVTKIO_API
static void updatePolyDataCellTexCoords(
143 vtkSmartPointer<vtkPolyData> polyDataDst, const ::fwData::Mesh::csptr& meshSrc);
156 FWVTKIO_API
static void updateGridPoints(
157 vtkSmartPointer<vtkUnstructuredGrid> gridDst,
158 const ::fwData::Mesh::csptr& meshSrc );
169 FWVTKIO_API
static void updateGridPointColor(
170 vtkSmartPointer<vtkUnstructuredGrid> gridDst,
171 const ::fwData::Mesh::csptr& meshSrc);
182 FWVTKIO_API
static void updateGridCellColor(
183 vtkSmartPointer<vtkUnstructuredGrid> gridDst,
184 const ::fwData::Mesh::csptr& meshSrc );
195 FWVTKIO_API
static void updateGridPointNormals(
196 vtkSmartPointer<vtkUnstructuredGrid> gridDst,
197 const ::fwData::Mesh::csptr& meshSrc);
208 FWVTKIO_API
static void updateGridCellNormals(
209 vtkSmartPointer<vtkUnstructuredGrid> gridDst,
210 const ::fwData::Mesh::csptr& meshSrc);
221 FWVTKIO_API
static void updateGridPointTexCoords(
222 vtkSmartPointer<vtkUnstructuredGrid> gridDst, const ::fwData::Mesh::csptr& meshSrc);
233 FWVTKIO_API
static void updateGridCellTexCoords(
234 vtkSmartPointer<vtkUnstructuredGrid> gridDst, const ::fwData::Mesh::csptr& meshSrc);
241 FWVTKIO_API
static double computeVolume( const ::fwData::Mesh::csptr& mesh );
Helper to manage vtkPolyData and fwData::Mesh.