]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/SimpleMPRWidget.cxx
...
[cpPlugins.git] / lib / cpExtensions / QT / SimpleMPRWidget.cxx
index fe67abcb5e93d1669956b969186bb1e99b33ad8d..abe5bcb2ed2cce999bb34f9c50d10f742fa8896b 100644 (file)
@@ -3,6 +3,7 @@
 #ifdef cpExtensions_QT4
 
 #include <cpExtensions/ui_SimpleMPRWidget.h>
+#include <vtkImageProperty.h>
 #include <vtkRenderer.h>
 #include <vtkRenderWindow.h>
 
@@ -130,6 +131,7 @@ SetMainActor( vtkImageActor* actor, const std::string& name )
 {
   this->Clear( );
   vtkImageData* image = NULL;
+  int interp = actor->GetProperty( )->GetInterpolationType( );
   for( unsigned int i = 0; i < 3; ++i )
   {
     this->m_2DSlices[ i ] = vtkSmartPointer< TSliceActors >::New( );
@@ -160,6 +162,10 @@ SetMainActor( vtkImageActor* actor, const std::string& name )
     this->m_NamedActors[ name ].insert(
       this->m_3DSlices[ i ]->GetImageActor( )
       );
+    this->m_2DSlices[ i ]->GetImageActor( )->
+      GetProperty( )->SetInterpolationType( interp );
+    this->m_3DSlices[ i ]->GetImageActor( )->
+      GetProperty( )->SetInterpolationType( interp );
 
   } // rof
   this->_AssociateSlices( );