]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/MPRActors.cxx
...
[cpPlugins.git] / lib / cpExtensions / Visualization / MPRActors.cxx
index 47f1251bf214cd8bc4ea64a6df68e2e9d13898e1..e26651b4dd24098b7df304e741041789419694b0 100644 (file)
@@ -350,6 +350,14 @@ SetSlice( const int& axis, double* pos )
   } // fi
 }
 
+// -------------------------------------------------------------------------
+void cpExtensions::Visualization::MPRActors::
+SetAxesCursor( const int& axis, double* pos )
+{
+  if( axis < 3 )
+    this->Slices[ 0 ][ axis ]->SetAxesCursor( pos );
+}
+
 // -------------------------------------------------------------------------
 void cpExtensions::Visualization::MPRActors::
 Render( const int& axis )
@@ -460,6 +468,7 @@ _SlicesCommand( double* pos, int axis, void* data )
     if( actors->Slices[ 0 ][ j ]->GetAxis( ) != axis )
     {
       actors->SetSlice( j, pos );
+      actors->SetAxesCursor( j, pos );
       actors->Render( j );
 
     } // fi