]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Image.cxx
Cleaning...
[cpPlugins.git] / lib / cpPlugins / Image.cxx
diff --git a/lib/cpPlugins/Image.cxx b/lib/cpPlugins/Image.cxx
deleted file mode 100644 (file)
index 261d966..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-#include <cpPlugins/Image.h>
-
-#include <vtkImageActor.h>
-#include <vtkImageProperty.h>
-#include <vtkImageSliceMapper.h>
-
-// -------------------------------------------------------------------------
-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$