]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Mesh.cxx
0f7468199ef2770928b68ae8b202ec34a03a9002
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.cxx
1 #include <cpPlugins/Interface/Mesh.h>
2
3 #include <vtkPolyData.h>
4
5 // -------------------------------------------------------------------------
6 void cpPlugins::Interface::Mesh::
7 SetVTKMesh( vtkPolyData* mesh )
8 {
9   this->m_VTKObject = mesh;
10   this->Modified( );
11 }
12
13 // -------------------------------------------------------------------------
14 vtkPolyData* cpPlugins::Interface::Mesh::
15 GetVTKMesh( )
16 {
17   return( dynamic_cast< vtkPolyData* >( this->m_VTKObject.GetPointer( ) ) );
18 }
19
20 // -------------------------------------------------------------------------
21 const vtkPolyData* cpPlugins::Interface::Mesh::
22 GetVTKMesh( ) const
23 {
24   return(
25     dynamic_cast< const vtkPolyData* >( this->m_VTKObject.GetPointer( ) )
26     );
27 }
28
29 // -------------------------------------------------------------------------
30 cpPlugins::Interface::Mesh::
31 Mesh( )
32   : Superclass( )
33 {
34   this->m_ClassName = "cpPlugins::Interface::Mesh";
35   this->m_ClassCategory = "BasicObject";
36 }
37
38 // -------------------------------------------------------------------------
39 cpPlugins::Interface::Mesh::
40 ~Mesh( )
41 {
42 }
43
44 // eof - $RCSfile$