#include <wxVTKRenderWindowInteractorEditContour.h>
Public Member Functions | |
vtkInteractorStyle2DMaracas () | |
~vtkInteractorStyle2DMaracas () | |
virtual char const * | GetClassName () const |
virtual void | OnMouseMove () |
virtual void | OnLeftButtonDown () |
virtual void | OnLeftButtonUp () |
virtual void | OnMiddleButtonDown () |
virtual void | OnMiddleButtonUp () |
virtual void | OnRightButtonDown () |
virtual void | OnRightButtonUp () |
void | SetObserver (vtkCommand *obs) |
Static Public Member Functions | |
static vtkInteractorStyle2DMaracas * | New () |
Private Attributes | |
vtkCommand * | _obs |
Definition at line 169 of file wxVTKRenderWindowInteractorEditContour.h.
vtkInteractorStyle2DMaracas::vtkInteractorStyle2DMaracas | ( | ) |
Definition at line 180 of file wxVTKRenderWindowInteractorEditContour.cxx.
References _obs.
Referenced by New().
00180 { 00181 _obs=NULL; 00182 }
vtkInteractorStyle2DMaracas::~vtkInteractorStyle2DMaracas | ( | ) |
Definition at line 184 of file wxVTKRenderWindowInteractorEditContour.cxx.
virtual char const* vtkInteractorStyle2DMaracas::GetClassName | ( | ) | const [inline, virtual] |
Definition at line 174 of file wxVTKRenderWindowInteractorEditContour.h.
static vtkInteractorStyle2DMaracas* vtkInteractorStyle2DMaracas::New | ( | ) | [inline, static] |
Definition at line 175 of file wxVTKRenderWindowInteractorEditContour.h.
References vtkInteractorStyle2DMaracas().
Referenced by wxImageViewerWidget::ConstructVTK().
00175 { 00176 return new vtkInteractorStyle2DMaracas(); 00177 }
void vtkInteractorStyle2DMaracas::OnLeftButtonDown | ( | ) | [virtual] |
Definition at line 203 of file wxVTKRenderWindowInteractorEditContour.cxx.
References _obs, and OnMiddleButtonDown().
00203 { 00204 if ((GetInteractor()->GetControlKey()==1) && (GetInteractor()->GetShiftKey()==0) ){ 00205 this->vtkInteractorStyleImage::OnMiddleButtonDown(); 00206 } else if ((GetInteractor()->GetControlKey()==0) && (GetInteractor()->GetShiftKey()==1) ){ 00207 if (_obs){ 00208 _obs->Execute( NULL , vtkCommand::LeftButtonPressEvent , NULL ) ; 00209 } 00210 } else { 00211 this->vtkInteractorStyleImage::OnLeftButtonDown(); 00212 } 00213 }
void vtkInteractorStyle2DMaracas::OnLeftButtonUp | ( | ) | [virtual] |
Definition at line 216 of file wxVTKRenderWindowInteractorEditContour.cxx.
References _obs, and OnMiddleButtonUp().
00216 { 00217 if ((GetInteractor()->GetControlKey()==1) && (GetInteractor()->GetShiftKey()==0) ){ 00218 this->vtkInteractorStyleImage::OnMiddleButtonUp(); 00219 } else if ((GetInteractor()->GetControlKey()==0) && (GetInteractor()->GetShiftKey()==1) ){ 00220 if (_obs) { 00221 _obs->Execute( NULL , vtkCommand::LeftButtonReleaseEvent , NULL ); 00222 } 00223 } else { 00224 this->vtkInteractorStyleImage::OnLeftButtonUp(); 00225 } 00226 }
void vtkInteractorStyle2DMaracas::OnMiddleButtonDown | ( | ) | [virtual] |
Definition at line 228 of file wxVTKRenderWindowInteractorEditContour.cxx.
Referenced by OnLeftButtonDown().
void vtkInteractorStyle2DMaracas::OnMiddleButtonUp | ( | ) | [virtual] |
Definition at line 231 of file wxVTKRenderWindowInteractorEditContour.cxx.
Referenced by OnLeftButtonUp().
void vtkInteractorStyle2DMaracas::OnMouseMove | ( | ) | [virtual] |
Definition at line 199 of file wxVTKRenderWindowInteractorEditContour.cxx.
00199 { 00200 this->vtkInteractorStyleImage::OnMouseMove(); 00201 }
void vtkInteractorStyle2DMaracas::OnRightButtonDown | ( | ) | [virtual] |
Definition at line 187 of file wxVTKRenderWindowInteractorEditContour.cxx.
00187 { 00188 if (GetInteractor()->GetControlKey()==1 ){ 00189 this->vtkInteractorStyleImage::OnRightButtonDown(); 00190 } 00191 }
void vtkInteractorStyle2DMaracas::OnRightButtonUp | ( | ) | [virtual] |
Definition at line 193 of file wxVTKRenderWindowInteractorEditContour.cxx.
00193 { 00194 if (GetInteractor()->GetControlKey()==1 ){ 00195 this->vtkInteractorStyleImage::OnRightButtonUp(); 00196 } 00197 }
void vtkInteractorStyle2DMaracas::SetObserver | ( | vtkCommand * | obs | ) |
Definition at line 235 of file wxVTKRenderWindowInteractorEditContour.cxx.
References _obs.
Referenced by wxImageViewerWidgetRoi::ConstructVTK().
00235 { 00236 this->_obs=obs; 00237 }
vtkCommand* vtkInteractorStyle2DMaracas::_obs [private] |
Definition at line 189 of file wxVTKRenderWindowInteractorEditContour.h.
Referenced by OnLeftButtonDown(), OnLeftButtonUp(), SetObserver(), and vtkInteractorStyle2DMaracas().