#include // ------------------------------------------------------------------------- const cpPlugins::BaseWidget::TMPRWidget* cpPlugins::BaseWidget:: GetMPRViewer( ) const { return( this->m_MPRViewer ); } // ------------------------------------------------------------------------- const vtkRenderWindowInteractor* cpPlugins::BaseWidget:: GetSingleInteractor( ) const { return( this->m_SingleInteractor ); } // ------------------------------------------------------------------------- void cpPlugins::BaseWidget:: SetMPRViewer( cpPlugins::BaseWidget::TMPRWidget* v ) { if( this->m_MPRViewer != v ) { this->m_MPRViewer = v; this->Modified( ); } // fi } // ------------------------------------------------------------------------- void cpPlugins::BaseWidget:: SetSingleInteractor( vtkRenderWindowInteractor* i ) { if( this->m_SingleInteractor != i ) { this->m_SingleInteractor = i; this->Modified( ); } // fi } // ------------------------------------------------------------------------- cpPlugins::BaseWidget:: BaseWidget( ) : Superclass( ), m_MPRViewer( NULL ), m_SingleInteractor( NULL ) { } // ------------------------------------------------------------------------- cpPlugins::BaseWidget:: ~BaseWidget( ) { // Warning: Qt's smartpointers require this to avoid segfaults this->m_MPRViewer = NULL; this->m_SingleInteractor = NULL; } // eof - $RCSfile$