#include <cpPlugins/Image.h>
#include <vtkImageActor.h>
+#include <vtkImageProperty.h>
#include <vtkImageSliceMapper.h>
// -------------------------------------------------------------------------
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 );
+ bool s = this->_ITK_2_VTK_0_Scalar< 2 >( o );
+ if( !s ) s = this->_ITK_2_VTK_0_Scalar< 3 >( o );
+ if( !s ) s = this->_ITK_2_VTK_0_Color< 2 >( o );
+ if( !s ) s = this->_ITK_2_VTK_0_Color< 3 >( o );
if( !s )
{
this->m_VTKObject = NULL;
vtkImageActor* actor = vtkImageActor::New( );
mapper->SetInputData( image );
actor->SetMapper( mapper );
+ actor->GetProperty( )->SetInterpolationTypeToNearest( );
this->m_Actor = actor;
- // TODO: mapper->Delete( );
+ mapper->Delete( );
} // fi
}