]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/ImageInteractorStyle.cxx
...
[cpPlugins.git] / lib / cpExtensions / Visualization / ImageInteractorStyle.cxx
index 236fb43144f92da41dce1a664bb67e7578edd9d1..9dec0321ce99ff83cbd02a1a5756a9473326f27b 100644 (file)
@@ -315,6 +315,10 @@ OnMouseWheelForward( )
   int s = this->m_SliceActors->GetSliceNumber( ) + off;
   int maxs = this->m_SliceActors->GetSliceNumberMaxValue( );
   this->m_SliceActors->SetSliceNumber( ( s < maxs )? s: maxs );
+  this->m_MPRActors->SetSlice(
+    this->m_SliceActors->GetAxis( ),
+    this->m_SliceActors->GetSliceNumber( )
+    );
   this->Interactor->Render( );
   this->_RenderAssociateInteractors( );
 }
@@ -331,6 +335,10 @@ OnMouseWheelBackward( )
   int s = this->m_SliceActors->GetSliceNumber( ) - off;
   int mins = this->m_SliceActors->GetSliceNumberMinValue( );
   this->m_SliceActors->SetSliceNumber( ( mins < s )? s: mins );
+  this->m_MPRActors->SetSlice(
+    this->m_SliceActors->GetAxis( ),
+    this->m_SliceActors->GetSliceNumber( )
+    );
   this->Interactor->Render( );
   this->_RenderAssociateInteractors( );
 }