1 #include <cpPlugins/BaseWidget.h>
3 // -------------------------------------------------------------------------
4 const cpPlugins::BaseWidget::TMPRWidget* cpPlugins::BaseWidget::
7 return( this->m_MPRViewer );
10 // -------------------------------------------------------------------------
11 const vtkRenderWindowInteractor* cpPlugins::BaseWidget::
12 GetSingleInteractor( ) const
14 return( this->m_SingleInteractor );
17 // -------------------------------------------------------------------------
18 void cpPlugins::BaseWidget::
19 SetMPRViewer( cpPlugins::BaseWidget::TMPRWidget* v )
21 if( this->m_MPRViewer != v )
23 this->m_MPRViewer = v;
29 // -------------------------------------------------------------------------
30 void cpPlugins::BaseWidget::
31 SetSingleInteractor( vtkRenderWindowInteractor* i )
33 if( this->m_SingleInteractor != i )
35 this->m_SingleInteractor = i;
41 // -------------------------------------------------------------------------
42 cpPlugins::BaseWidget::
46 m_SingleInteractor( NULL )
50 // -------------------------------------------------------------------------
51 cpPlugins::BaseWidget::
54 // Warning: Qt's smartpointers require this to avoid segfaults
55 this->m_MPRViewer = NULL;
56 this->m_SingleInteractor = NULL;