]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Image.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / Image.cxx
index ad7b3ad19f02a8e053d01cba32e41bcd08387893..b1f18f89c7aa3d2115c7ea9d84b77e0ba0740d83 100644 (file)
@@ -2,9 +2,26 @@
 
 // -------------------------------------------------------------------------
 void cpPlugins::Interface::Image::
-SetVTK( vtkObject* image )
+SetITK( itk::LightObject* o )
 {
-  // this->m_VTKObject = image;
+  this->Superclass::SetITK( o );
+  bool success = false;
+  success |= this->_ITK_2_VTK_0< 2 >( o );
+  success |= this->_ITK_2_VTK_0< 3 >( o );
+  if( !success )
+  {
+    this->m_VTKObject = NULL;
+    this->m_ITKvVTK = NULL;
+
+  } // fi
+  this->Modified( );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::Image::
+SetVTK( vtkObjectBase* o )
+{
+  this->Superclass::SetVTK( o );
   std::cerr << "Image: TODO this!!!!" << std::endl;
   std::exit( 1 );
 }
@@ -14,8 +31,6 @@ cpPlugins::Interface::Image::
 Image( )
   : Superclass( )
 {
-  this->m_ClassName = "cpPlugins::Interface::Image";
-  this->m_ClassCategory = "BasicObject";
 }
 
 // -------------------------------------------------------------------------