X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FImage.cxx;fp=lib%2FcpPlugins%2FImage.cxx;h=0000000000000000000000000000000000000000;hb=aa77db36cc1d87ba014c982a235239c3c87224f3;hp=261d966674fc7f54e6dca307acc58174d4d8fc53;hpb=733108d258a27799df875ceda2d84c3cafea64d3;p=cpPlugins.git diff --git a/lib/cpPlugins/Image.cxx b/lib/cpPlugins/Image.cxx deleted file mode 100644 index 261d966..0000000 --- a/lib/cpPlugins/Image.cxx +++ /dev/null @@ -1,64 +0,0 @@ -#include - -#include -#include -#include - -// ------------------------------------------------------------------------- -void cpPlugins::Image:: -SetITK( itk::LightObject* o ) -{ - this->Superclass::SetITK( o ); - bool s = this->_ITK_2_VTK_0< 2 >( o ); - if( !s ) s = this->_ITK_2_VTK_0< 3 >( o ); - if( !s ) - { - this->m_VTKObject = NULL; - this->m_ITKvVTK = NULL; - - } // fi - this->Modified( ); -} - -// ------------------------------------------------------------------------- -void cpPlugins::Image:: -SetVTK( vtkObjectBase* o ) -{ - this->Superclass::SetVTK( o ); - std::cerr << "Image: TODO this!!!!" << std::endl; - std::exit( 1 ); -} - -// ------------------------------------------------------------------------- -cpPlugins::Image:: -Image( ) - : Superclass( ) -{ -} - -// ------------------------------------------------------------------------- -cpPlugins::Image:: -~Image( ) -{ -} - -// ------------------------------------------------------------------------- -void cpPlugins::Image:: -_CreateVTKActor( ) const -{ - vtkImageData* image = - const_cast< vtkImageData* >( this->GetVTK< vtkImageData >( ) ); - if( image != NULL ) - { - vtkImageSliceMapper* mapper = vtkImageSliceMapper::New( ); - vtkImageActor* actor = vtkImageActor::New( ); - mapper->SetInputData( image ); - actor->SetMapper( mapper ); - actor->GetProperty( )->SetInterpolationTypeToNearest( ); - this->m_Actor = actor; - mapper->Delete( ); - - } // fi -} - -// eof - $RCSfile$