X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FQT%2FSimpleMPRWidget.cxx;h=ee2196e8ff4bd57ec7f801acae738a694e5479ec;hb=e2fb8817731f6231d34941a208e46b36dad425b2;hp=fa0214c47c9d304a98ce52a1bc9342341182e431;hpb=3d5417d682ae768bf6393f1b0d1f6b1a1755e0bd;p=cpPlugins.git diff --git a/lib/cpExtensions/QT/SimpleMPRWidget.cxx b/lib/cpExtensions/QT/SimpleMPRWidget.cxx index fa0214c..ee2196e 100644 --- a/lib/cpExtensions/QT/SimpleMPRWidget.cxx +++ b/lib/cpExtensions/QT/SimpleMPRWidget.cxx @@ -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( ); }