#include <vtkInteractorStylePlane2D.h>
Public Member Functions | |
vtkInteractorStylePlane2D () | |
~vtkInteractorStylePlane2D () | |
virtual bool | OnLeftButtonDown () |
virtual bool | OnLeftButtonUp () |
virtual bool | OnMouseMove () |
virtual bool | OnRightButtonUp () |
virtual bool | OnLeftDClick () |
bool | GetStateRotate () |
virtual InteractorStyleMaracas * | Clone () |
void | CopyAttributesTo (InteractorStyleMaracas *cloneObject) |
virtual bool | OnChar () |
virtual bool | OnMiddleButtonDown () |
virtual bool | OnMiddleButtonUp () |
virtual bool | OnRightButtonDown () |
virtual bool | OnRightDClick () |
virtual bool | OnMiddleDClick () |
virtual bool | OnMouseWheel () |
void | SetVtkInteractorStyleBaseView (vtkInteractorStyleBaseView *_vtkInteractorStyleBaseView) |
void | RemoveVtkInteractorStyleBaseView () |
void | SetActive (bool active) |
bool | GetActive () |
Protected Attributes | |
vtkInteractorStyleBaseView * | _vtkInteractorStyleBaseView |
Private Attributes | |
bool | _stateRotate |
int | _fordwareX |
int | _fordwareY |
Definition at line 6 of file vtkInteractorStylePlane2D.h.
vtkInteractorStylePlane2D::vtkInteractorStylePlane2D | ( | ) |
Definition at line 6 of file vtkInteractorStylePlane2D.cxx.
References _stateRotate.
00007 { 00008 _stateRotate=false; 00009 }
vtkInteractorStylePlane2D::~vtkInteractorStylePlane2D | ( | ) |
Definition at line 11 of file vtkInteractorStylePlane2D.cxx.
InteractorStyleMaracas * InteractorStyleMaracas::Clone | ( | ) | [virtual, inherited] |
Reimplemented in manualCircleControler, manualContour3DControler, manualContour3V3DControler, manualContour3VControler, manualContourBaseControler, manualContourControler, manualContourPerpPlaneControler, manualLineControler, manualRoiControler, and manualRotationToolControler.
Definition at line 18 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::CopyAttributesTo(), and InteractorStyleMaracas::InteractorStyleMaracas().
00019 { 00020 InteractorStyleMaracas * clone = new InteractorStyleMaracas(); 00021 CopyAttributesTo(clone); 00022 return clone; 00023 }
void InteractorStyleMaracas::CopyAttributesTo | ( | InteractorStyleMaracas * | cloneObject | ) | [inherited] |
Reimplemented in manualCircleControler, manualContour3DControler, manualContour3V3DControler, manualContour3VControler, manualContourBaseControler, manualContourControler, manualContourPerpPlaneControler, manualLineControler, manualRoiControler, and manualRotationToolControler.
Definition at line 27 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::GetActive(), and InteractorStyleMaracas::SetActive().
Referenced by InteractorStyleMaracas::Clone().
00028 { 00029 // Fathers object 00030 //<FATHERCLASS>::CopyAttributesTo(cloneObject); 00031 00032 cloneObject->SetActive( this->GetActive() ); 00033 }
bool InteractorStyleMaracas::GetActive | ( | ) | [inherited] |
Definition at line 116 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::_active.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(), and InteractorStyleMaracas::CopyAttributesTo().
00117 { 00118 return _active; 00119 }
bool vtkInteractorStylePlane2D::GetStateRotate | ( | ) |
Definition at line 16 of file vtkInteractorStylePlane2D.cxx.
References _stateRotate.
Referenced by vtkPlane2DView::ExtractPlane().
00017 { 00018 return _stateRotate; 00019 }
bool InteractorStyleMaracas::OnChar | ( | ) | [virtual, inherited] |
Reimplemented in manualContour3DControler, manualContour3V3DControler, manualContour3VControler, manualContourBaseControler, and manualContourPerpPlaneControler.
Definition at line 37 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool vtkInteractorStylePlane2D::OnLeftButtonDown | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 22 of file vtkInteractorStylePlane2D.cxx.
References _fordwareX, _fordwareY, _stateRotate, InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), and vtkPlane2DView::RotationStart().
00023 { 00024 _stateRotate = true; 00025 _fordwareX = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; 00026 _fordwareY = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1]; 00027 vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); 00028 vtkplane2Dview->RotationStart(); 00029 00030 return true; 00031 }
bool vtkInteractorStylePlane2D::OnLeftButtonUp | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 34 of file vtkInteractorStylePlane2D.cxx.
References _stateRotate, InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), and vtkPlane2DView::ResetBack().
00035 { 00036 if (_stateRotate==true) 00037 { 00038 _stateRotate = false; 00039 vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); 00040 vtkplane2Dview->ResetBack(); 00041 // this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00042 } 00043 00044 return true; 00045 }
bool vtkInteractorStylePlane2D::OnLeftDClick | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 85 of file vtkInteractorStylePlane2D.cxx.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkPlane2DView::GetVtkmprbasedata(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), vtkInteractorStyleBaseView::SetParent_refresh_waiting(), vtkMPRBaseData::SetX(), vtkMPRBaseData::SetY(), vtkBaseData::SetZ(), and vtkPlane2DView::TransfromCoordViewWorld2().
00086 { 00087 int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; 00088 int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1]; 00089 double xx=fx; 00090 double yy=fy; 00091 double zz=0; 00092 00093 vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); 00094 vtkMPRBaseData *vtkmprbasedata = vtkplane2Dview->GetVtkmprbasedata(); 00095 00096 vtkplane2Dview->TransfromCoordViewWorld2(xx,yy,zz); 00097 00098 vtkmprbasedata->SetX( xx ); 00099 vtkmprbasedata->SetY( yy ); 00100 vtkmprbasedata->SetZ( zz ); 00101 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00102 00103 return true; 00104 }
bool InteractorStyleMaracas::OnMiddleButtonDown | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, and manualInteractorWindowLevel.
Definition at line 62 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnMiddleButtonUp | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, and manualInteractorWindowLevel.
Definition at line 67 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnMiddleDClick | ( | ) | [virtual, inherited] |
Definition at line 72 of file InteractorStyleMaracas.cxx.
bool vtkInteractorStylePlane2D::OnMouseMove | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 62 of file vtkInteractorStylePlane2D.cxx.
References _fordwareX, _fordwareY, _stateRotate, InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), vtkPlane2DView::RotationDrag(), and vtkInteractorStyleBaseView::SetParent_refresh_waiting().
00063 { 00064 bool ok_v, ok_ang; 00065 if (_stateRotate==true){ 00066 ok_v=false; 00067 ok_ang=false; 00068 if (_vtkInteractorStyleBaseView->GetInteractor()->GetControlKey()==1) 00069 { 00070 ok_v=true; 00071 } 00072 if (_vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey()==1) 00073 { 00074 ok_ang=true; 00075 } 00076 int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; 00077 int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1]; 00078 vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); 00079 vtkplane2Dview->RotationDrag( fx - _fordwareX , fy - _fordwareY , ok_v , ok_ang); 00080 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00081 } 00082 return true; 00083 }
bool InteractorStyleMaracas::OnMouseWheel | ( | ) | [virtual, inherited] |
Definition at line 92 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnRightButtonDown | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, vtkInteractorScrollZ, and vtkInteractorStyleSphere.
Definition at line 77 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool vtkInteractorStylePlane2D::OnRightButtonUp | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 48 of file vtkInteractorStylePlane2D.cxx.
References _stateRotate.
00049 { 00050 if (_stateRotate==true){ 00051 //vtkPlane2DView *vtkplane2Dview = (vtkPlane2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); // JPRx 00052 00053 // EED Borrame 00054 // vtkplane2Dview->RotationEnd(); 00055 00056 _stateRotate = false; 00057 } 00058 00059 return true; 00060 }
bool InteractorStyleMaracas::OnRightDClick | ( | ) | [virtual, inherited] |
Definition at line 87 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
void InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView | ( | ) | [inherited] |
Definition at line 106 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView.
Referenced by vtkInteractorStyleBaseView::RemoveInteractorStyleMaracas().
00107 { 00108 _vtkInteractorStyleBaseView = NULL; 00109 }
void InteractorStyleMaracas::SetActive | ( | bool | active | ) | [inherited] |
Definition at line 111 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::_active.
Referenced by wxWidgetMesure2D::ActiveMessureTool(), wxWidgetMesure2D::ConfigureA(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), InteractorStyleMaracas::CopyAttributesTo(), manualContourContainer::createLumenContour(), wxImageViewerWidget::CreateNewManualContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), wxMaracasImageBrowser02::OnBtnResetRoi(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourContainer::restartLumenContour(), manualContourContainer::restartWallContour(), vtkInteractorStyleBaseView::SetActiveAllInteractors(), and wxMaracasImageBrowser02::SetROI().
00112 { 00113 _active = active; 00114 }
void InteractorStyleMaracas::SetVtkInteractorStyleBaseView | ( | vtkInteractorStyleBaseView * | _vtkInteractorStyleBaseView | ) | [inherited] |
Definition at line 99 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView.
Referenced by vtkInteractorStyleBaseView::AddInteractorStyleMaracas(), and vtkInteractorStyleBaseView::InsertInteractorStyleMaracas().
00100 { 00101 _vtkInteractorStyleBaseView = vtkInteractorStyleBaseView; 00102 }
int vtkInteractorStylePlane2D::_fordwareX [private] |
Definition at line 21 of file vtkInteractorStylePlane2D.h.
Referenced by OnLeftButtonDown(), and OnMouseMove().
int vtkInteractorStylePlane2D::_fordwareY [private] |
Definition at line 22 of file vtkInteractorStylePlane2D.h.
Referenced by OnLeftButtonDown(), and OnMouseMove().
bool vtkInteractorStylePlane2D::_stateRotate [private] |
Definition at line 19 of file vtkInteractorStylePlane2D.h.
Referenced by GetStateRotate(), OnLeftButtonDown(), OnLeftButtonUp(), OnMouseMove(), OnRightButtonUp(), and vtkInteractorStylePlane2D().
vtkInteractorStyleBaseView* InteractorStyleMaracas::_vtkInteractorStyleBaseView [protected, inherited] |
Definition at line 45 of file InteractorStyleMaracas.h.
Referenced by manualContour3VControler::AddPoint_Others(), manualContour3VControler::DeleteActualMousePoint_Others(), manualContour3VControler::InsertPoint_Others(), InteractorStyleMaracas::InteractorStyleMaracas(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualContourPerpPlaneControler::MouseDLeft(), manualContourControler::MouseDLeft(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualContour3VControler::MouseMove_Others(), manualContourBaseControler::OnChar(), manualContour3DControler::OnChar(), manualContour3VControler::OnChar_Others(), vtkInteractorStyleSphere::OnLeftButtonDown(), OnLeftButtonDown(), vtkInteractorStyleMPRView::OnLeftButtonDown(), manualContourBaseControler::OnLeftButtonDown(), manualContour3DControler::OnLeftButtonDown(), vtkInteractorStyleSphere::OnLeftButtonUp(), OnLeftButtonUp(), manualContourBaseControler::OnLeftButtonUp(), OnLeftDClick(), vtkInteractorStyleMPRView::OnLeftDClick(), manualContourBaseControler::OnLeftDClick(), manualInteractorWindowLevel::OnMiddleButtonDown(), manualContourBaseControler::OnMiddleButtonDown(), vtkInteractorStyleSphere::OnMouseMove(), OnMouseMove(), vtkInteractorStyleMPRView::OnMouseMove(), vtkInteractorScrollZ::OnMouseMove(), vtkInfoTextImageInteractorPlane2D::OnMouseMove(), vtkInfoTextImageInteractor::OnMouseMove(), manualInteractorWindowLevel::OnMouseMove(), manualContourBaseControler::OnMouseMove(), vtkInteractorStyleSphere::OnRightButtonDown(), vtkInteractorScrollZ::OnRightButtonDown(), manualContourBaseControler::OnRightButtonDown(), vtkInteractorStyleSphere::OnRightButtonUp(), InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), and InteractorStyleMaracas::SetVtkInteractorStyleBaseView().