]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/SimpleMPRWidget.cxx
...
[cpPlugins.git] / lib / cpExtensions / QT / SimpleMPRWidget.cxx
index d8c68223c8c6f6b7f109ffca07b2ae619d2a75aa..5ea88d0f6b71ddb2191ee331ebeb23e100e97d95 100644 (file)
@@ -287,6 +287,34 @@ GetActors( const std::string& name ) const
     return( empty );
 }
 
+// -------------------------------------------------------------------------
+void cpExtensions::QT::SimpleMPRWidget::
+SetWindowLevel( double win, double lev )
+{
+  for( unsigned int i = 0; i < 3; ++i )
+  {
+    if( this->m_2DSlices[ i ].GetPointer( ) != NULL )
+    {
+      this->m_2DSlices[ i ]->SetWindowLevel( win, lev );
+      this->m_2DSlices[ i ]->Render( );
+
+    } // fi
+    if( this->m_3DSlices[ i ].GetPointer( ) != NULL )
+    {
+      this->m_3DSlices[ i ]->SetWindowLevel( win, lev );
+      this->m_3DSlices[ i ]->Render( );
+
+    } // fi
+
+  } // rof
+}
+
+// -------------------------------------------------------------------------
+void cpExtensions::QT::SimpleMPRWidget::
+ResetWindowLevel( )
+{
+}
+
 // -------------------------------------------------------------------------
 vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
 GetInteractor( unsigned int i )