#include <wxVTKRenderWindowInteractorEditContour.h>
Public Member Functions | |
vtkInteractorStyle3DMaracas () | |
~vtkInteractorStyle3DMaracas () | |
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 () |
Static Public Member Functions | |
static vtkInteractorStyle3DMaracas * | New () |
Definition at line 21 of file wxVTKRenderWindowInteractorEditContour.h.
vtkInteractorStyle3DMaracas::vtkInteractorStyle3DMaracas | ( | ) |
Definition at line 4 of file wxVTKRenderWindowInteractorEditContour.cxx.
Referenced by New().
vtkInteractorStyle3DMaracas::~vtkInteractorStyle3DMaracas | ( | ) |
Definition at line 7 of file wxVTKRenderWindowInteractorEditContour.cxx.
virtual char const* vtkInteractorStyle3DMaracas::GetClassName | ( | ) | const [inline, virtual] |
Definition at line 26 of file wxVTKRenderWindowInteractorEditContour.h.
static vtkInteractorStyle3DMaracas* vtkInteractorStyle3DMaracas::New | ( | ) | [inline, static] |
Definition at line 27 of file wxVTKRenderWindowInteractorEditContour.h.
References vtkInteractorStyle3DMaracas().
Referenced by vtk3DSurfaceSTLWidget::vtk3DSurfaceSTLWidget(), and vtk3DSurfaceWidget::vtk3DSurfaceWidget().
00027 { 00028 return new vtkInteractorStyle3DMaracas(); 00029 }
void vtkInteractorStyle3DMaracas::OnLeftButtonDown | ( | ) | [virtual] |
Definition at line 93 of file wxVTKRenderWindowInteractorEditContour.cxx.
00093 { 00094 /* 00095 if (GetInteractor()->GetControlKey()==1 ){ 00096 this->vtkInteractorStyleTrackballCamera::OnMiddleButtonDown(); 00097 } else { 00098 this->vtkInteractorStyleTrackballCamera::OnLeftButtonDown(); 00099 } 00100 */ 00101 00102 00103 this->FindPokedRenderer(this->Interactor->GetEventPosition()[0], 00104 this->Interactor->GetEventPosition()[1]); 00105 if (this->CurrentRenderer == NULL) 00106 { 00107 return; 00108 } 00109 00110 if (this->Interactor->GetControlKey()) { 00111 this->StartPan(); 00112 } else { 00113 this->StartRotate(); 00114 } 00115 00116 /* 00117 if (this->Interactor->GetShiftKey()) 00118 { 00119 if (this->Interactor->GetControlKey()) 00120 { 00121 this->StartDolly(); 00122 } 00123 else 00124 { 00125 this->StartPan(); 00126 } 00127 } 00128 else 00129 { 00130 if (this->Interactor->GetControlKey()) 00131 { 00132 this->StartSpin(); 00133 } 00134 else 00135 { 00136 this->StartRotate(); 00137 } 00138 } 00139 */ 00140 00141 00142 }
void vtkInteractorStyle3DMaracas::OnLeftButtonUp | ( | ) | [virtual] |
Definition at line 144 of file wxVTKRenderWindowInteractorEditContour.cxx.
00144 { 00145 /* 00146 if (GetInteractor()->GetControlKey()==1 ){ 00147 this->vtkInteractorStyleTrackballCamera::OnMiddleButtonUp(); 00148 } else { 00149 this->vtkInteractorStyleTrackballCamera::OnLeftButtonUp(); 00150 } 00151 */ 00152 switch (this->State) 00153 { 00154 00155 case VTKIS_PAN: 00156 this->EndPan(); 00157 break; 00158 00159 case VTKIS_ROTATE: 00160 this->EndRotate(); 00161 break; 00162 } 00163 }
void vtkInteractorStyle3DMaracas::OnMiddleButtonDown | ( | ) | [virtual] |
Definition at line 165 of file wxVTKRenderWindowInteractorEditContour.cxx.
void vtkInteractorStyle3DMaracas::OnMiddleButtonUp | ( | ) | [virtual] |
Definition at line 169 of file wxVTKRenderWindowInteractorEditContour.cxx.
void vtkInteractorStyle3DMaracas::OnMouseMove | ( | ) | [virtual] |
Definition at line 46 of file wxVTKRenderWindowInteractorEditContour.cxx.
00046 { 00047 00048 // this->vtkInteractorStyleTrackballCamera::OnMouseMove(); 00049 00050 /* int x = */ this->Interactor->GetEventPosition()[0]; // JPRx (unused) 00051 /* int y = */ this->Interactor->GetEventPosition()[1]; // JPRx (unused) 00052 00053 00054 vtkRenderWindowInteractor *rwi = this->Interactor; 00055 00056 /* int lx = */ rwi->GetLastEventPosition()[0]; // JPRx (unused) 00057 /* int ly = */ rwi->GetLastEventPosition()[1]; // JPRx (unused) 00058 /* int dx = */ rwi->GetEventPosition()[0] ; // JPRx (unused) 00059 /* int dy = */ rwi->GetEventPosition()[1] ; // JPRx (unused) 00060 00061 00062 switch (this->State) 00063 { 00064 case VTKIS_ROTATE: 00065 // this->FindPokedRenderer(x, y); 00066 this->Rotate(); 00067 // this->InvokeEvent(vtkCommand::InteractionEvent, NULL); 00068 break; 00069 00070 case VTKIS_PAN: 00071 // this->FindPokedRenderer(x, y); 00072 this->Pan(); 00073 // this->InvokeEvent(vtkCommand::InteractionEvent, NULL); 00074 break; 00075 00076 case VTKIS_DOLLY: 00077 // this->FindPokedRenderer(x, y); 00078 this->Dolly(); 00079 // this->InvokeEvent(vtkCommand::InteractionEvent, NULL); 00080 break; 00081 00082 case VTKIS_SPIN: 00083 // this->FindPokedRenderer(x, y); 00084 this->Spin(); 00085 // this->InvokeEvent(vtkCommand::InteractionEvent, NULL); 00086 break; 00087 } 00088 00089 00090 00091 }
void vtkInteractorStyle3DMaracas::OnRightButtonDown | ( | ) | [virtual] |
Definition at line 10 of file wxVTKRenderWindowInteractorEditContour.cxx.
00010 { 00011 /* 00012 if (GetInteractor()->GetControlKey()==1 ){ 00013 this->vtkInteractorStyleTrackballCamera::OnRightButtonDown(); 00014 } 00015 */ 00016 this->FindPokedRenderer(this->Interactor->GetEventPosition()[0], 00017 this->Interactor->GetEventPosition()[1]); 00018 00019 if (this->CurrentRenderer == NULL) 00020 { 00021 return; 00022 } 00023 00024 if (this->Interactor->GetControlKey()) { 00025 this->StartDolly(); 00026 } 00027 00028 }
void vtkInteractorStyle3DMaracas::OnRightButtonUp | ( | ) | [virtual] |
Definition at line 30 of file wxVTKRenderWindowInteractorEditContour.cxx.