]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/MPR3DActors.cxx
Start contour tracer widget debugging: change interactor style.
[cpPlugins.git] / lib / cpExtensions / Visualization / MPR3DActors.cxx
index a63e272990cfade8cdb488a5eae13b85f2bf5df0..03778b453728beccec2aefa9fdcf25b2cb286c6d 100644 (file)
@@ -132,24 +132,18 @@ AddMesh( vtkPolyData* mesh )
 void cpExtensions::Visualization::MPR3DActors::
 SetScalarRange( double r[ 2 ] )
 {
-  this->m_Slices[ 0 ]->
-    GetWindowLevelImageActor( )->ConfigureWindowLevel( r[ 0 ], r[ 1 ] );
-  this->m_Slices[ 1 ]->
-    GetWindowLevelImageActor( )->ConfigureWindowLevel( r[ 0 ], r[ 1 ] );
-  this->m_Slices[ 2 ]->
-    GetWindowLevelImageActor( )->ConfigureWindowLevel( r[ 0 ], r[ 1 ] );
+  this->m_Slices[ 0 ]->GetWindowLevelImageActor( )->SetRange( r );
+  this->m_Slices[ 1 ]->GetWindowLevelImageActor( )->SetRange( r );
+  this->m_Slices[ 2 ]->GetWindowLevelImageActor( )->SetRange( r );
 }
 
 // -------------------------------------------------------------------------
 void cpExtensions::Visualization::MPR3DActors::
 SetWindowLevel( double wl[ 2 ] )
 {
-  this->m_Slices[ 0 ]->
-    GetWindowLevelImageActor( )->SetWindowLevel( wl[ 0 ], wl[ 1 ] );
-  this->m_Slices[ 1 ]->
-    GetWindowLevelImageActor( )->SetWindowLevel( wl[ 0 ], wl[ 1 ] );
-  this->m_Slices[ 2 ]->
-    GetWindowLevelImageActor( )->SetWindowLevel( wl[ 0 ], wl[ 1 ] );
+  this->m_Slices[ 0 ]->GetWindowLevelImageActor( )->SetWindowLevel( wl );
+  this->m_Slices[ 1 ]->GetWindowLevelImageActor( )->SetWindowLevel( wl );
+  this->m_Slices[ 2 ]->GetWindowLevelImageActor( )->SetWindowLevel( wl );
 }
 
 // -------------------------------------------------------------------------