]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/QT/SimpleMPRWidget.cxx
...
[cpPlugins.git] / lib / cpExtensions / QT / SimpleMPRWidget.cxx
index fa0214c47c9d304a98ce52a1bc9342341182e431..ee2196e8ff4bd57ec7f801acae738a694e5479ec 100644 (file)
@@ -58,8 +58,7 @@ SimpleMPRWidget( QWidget* parent )
 cpExtensions::QT::SimpleMPRWidget::
 ~SimpleMPRWidget( )
 {
-  // TODO: this causes a segfault (?)
-  // delete this->m_UI;
+  delete this->m_UI;
 }
 
 // -------------------------------------------------------------------------
@@ -300,6 +299,27 @@ HideData( const std::string& name )
 {
 }
 
+// -------------------------------------------------------------------------
+void cpExtensions::QT::SimpleMPRWidget::
+SetWindowLevel( const double& w, const double& l )
+{
+  this->m_MPRObjects->SetWindowLevel( w, l );
+}
+
+// -------------------------------------------------------------------------
+double cpExtensions::QT::SimpleMPRWidget::
+GetWindow( ) const
+{
+  return( this->m_MPRObjects->GetWindow( ) );
+}
+
+// -------------------------------------------------------------------------
+double cpExtensions::QT::SimpleMPRWidget::
+GetLevel( ) const
+{
+  return( this->m_MPRObjects->GetLevel( ) );
+}
+
 // -------------------------------------------------------------------------
 vtkRenderWindowInteractor* cpExtensions::QT::SimpleMPRWidget::
 GetInteractor( unsigned int i )
@@ -542,6 +562,7 @@ Configure( vtkPolyData* pd )
     range[ 0 ], ( ( range[ 1 ] - range[ 0 ] ) * 0.75 ) + range[ 0 ]
     );
   this->Actor->SetMapper( this->Mapper );
+  this->Actor->GetProperty( )->SetPointSize( 10 );
   this->Actor->DeferLODConstructionOff( );
 }