X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FImage.cxx;h=b1f18f89c7aa3d2115c7ea9d84b77e0ba0740d83;hb=a89305e04527ebe2e81d0d1a62bbe34e0d35a141;hp=ad7b3ad19f02a8e053d01cba32e41bcd08387893;hpb=d1d816d1eaf980d5cd266798b8f7a0bbb089a383;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Image.cxx b/lib/cpPlugins/Interface/Image.cxx index ad7b3ad..b1f18f8 100644 --- a/lib/cpPlugins/Interface/Image.cxx +++ b/lib/cpPlugins/Interface/Image.cxx @@ -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"; } // -------------------------------------------------------------------------