]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Mesh.cxx
median filter added
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.cxx
index 0f7468199ef2770928b68ae8b202ec34a03a9002..8507a4b52a2e0f385b3b60c306a0d4428e1afc5a 100644 (file)
@@ -7,6 +7,13 @@ void cpPlugins::Interface::Mesh::
 SetVTKMesh( vtkPolyData* mesh )
 {
   this->m_VTKObject = mesh;
+
+  this->m_Mapper = vtkSmartPointer< vtkPolyDataMapper >::New( );
+  this->m_Actor = vtkSmartPointer< vtkActor >::New( );
+
+  this->m_Mapper->SetInputData( mesh );
+  this->m_Actor->SetMapper( this->m_Mapper );
+
   this->Modified( );
 }
 
@@ -26,6 +33,20 @@ GetVTKMesh( ) const
     );
 }
 
+// -------------------------------------------------------------------------
+vtkActor* cpPlugins::Interface::Mesh::
+GetVTKActor( )
+{
+  return( this->m_Actor );
+}
+
+// -------------------------------------------------------------------------
+const vtkActor* cpPlugins::Interface::Mesh::
+GetVTKActor( ) const
+{
+  return( this->m_Actor );
+}
+
 // -------------------------------------------------------------------------
 cpPlugins::Interface::Mesh::
 Mesh( )