]> Creatis software - cpPlugins.git/commitdiff
Almost there...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Thu, 26 May 2016 22:48:48 +0000 (17:48 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Thu, 26 May 2016 22:48:48 +0000 (17:48 -0500)
lib/cpPlugins/Image.cxx
lib/cpPlugins/Mesh.cxx
lib/cpPlugins/Mesh.h

index b3ff5d2976eeea96a786ceb7546b2afb4db2579e..4d9cbd83f1bb43c79f3ddffd8d8331fd54935c62 100644 (file)
@@ -54,7 +54,7 @@ _CreateVTKActor( ) const
     mapper->SetInputData( image );
     actor->SetMapper( mapper );
     this->m_Actor = actor;
-    // TODO: mapper->Delete( );
+    mapper->Delete( );
 
   } // fi
 }
index 071a51d631f9aa488b17492a3b53ec86a1dcde52..2854840d33f8eeb5158f2cec010214e79302bd82 100644 (file)
@@ -121,4 +121,24 @@ cpPlugins::Mesh::
 {
 }
 
+// -------------------------------------------------------------------------
+void cpPlugins::Mesh::
+_CreateVTKActor( ) const
+{
+  vtkPolyData* mesh =
+    const_cast< vtkPolyData* >( this->GetVTK< vtkPolyData >( ) );
+  if( mesh != NULL )
+  {
+    std::cout << "Mesh: " << mesh << std::endl;
+    /* TODO
+       vtkImageSliceMapper* mapper = vtkImageSliceMapper::New( );
+       vtkImageActor* actor = vtkImageActor::New( );
+       mapper->SetInputData( image );
+       actor->SetMapper( mapper );
+       this->m_Actor = actor;
+    */
+
+  } // fi
+}
+
 // eof - $RCSfile$
index 6155f46c35da8dcc80818799d1e00776d29ef4ac..1c70abac75e1ab6786937ebfa28b239458c1c544 100644 (file)
@@ -32,6 +32,8 @@ namespace cpPlugins
     Mesh( );
     virtual ~Mesh( );
 
+    virtual void _CreateVTKActor( ) const ITK_OVERRIDE;
+
     template< class M >
       inline bool _ITK_2_VTK( itk::LightObject* o );