#include <vtkInteractorStyleMPRView.h>
Public Member Functions | |
vtkInteractorStyleMPRView () | |
~vtkInteractorStyleMPRView () | |
virtual bool | OnMouseMove () |
virtual bool | OnLeftButtonDown () |
virtual bool | OnLeftButtonUp () |
virtual bool | OnLeftDClick () |
virtual InteractorStyleMaracas * | Clone () |
void | CopyAttributesTo (InteractorStyleMaracas *cloneObject) |
virtual bool | OnChar () |
virtual bool | OnMiddleButtonDown () |
virtual bool | OnMiddleButtonUp () |
virtual bool | OnRightButtonDown () |
virtual bool | OnRightButtonUp () |
virtual bool | OnRightDClick () |
virtual bool | OnMiddleDClick () |
virtual bool | OnMouseWheel () |
void | SetVtkInteractorStyleBaseView (vtkInteractorStyleBaseView *_vtkInteractorStyleBaseView) |
void | RemoveVtkInteractorStyleBaseView () |
void | SetActive (bool active) |
bool | GetActive () |
Protected Attributes | |
bool | _stateMoveAxisX |
bool | _stateMoveAxisY |
bool | _stateMoveAxisZ |
vtkInteractorStyleBaseView * | _vtkInteractorStyleBaseView |
Definition at line 6 of file vtkInteractorStyleMPRView.h.
vtkInteractorStyleMPRView::vtkInteractorStyleMPRView | ( | ) |
Definition at line 5 of file vtkInteractorStyleMPRView.cxx.
References _stateMoveAxisX, _stateMoveAxisY, and _stateMoveAxisZ.
00006 { 00007 _stateMoveAxisX = false; 00008 _stateMoveAxisY = false; 00009 _stateMoveAxisZ = false; 00010 }
vtkInteractorStyleMPRView::~vtkInteractorStyleMPRView | ( | ) |
Definition at line 12 of file vtkInteractorStyleMPRView.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 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 vtkInteractorStyleMPRView::OnLeftButtonDown | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 36 of file vtkInteractorStyleMPRView.cxx.
References _stateMoveAxisX, _stateMoveAxisY, _stateMoveAxisZ, InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkMPR2DView::IfMouseTouchX(), wxVtkMPR2DView::IfMouseTouchY(), wxVtkMPR2DView::IfMouseTouchZ(), and vtkInteractorStyleBaseView::TransformCoordinate().
00037 { 00038 wxVtkMPR2DView *wxvtkmpr2Dview = (wxVtkMPR2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); 00039 double x = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; 00040 double y = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1]; 00041 double z = 1; 00042 //double xx = x; // JPRx 00043 //double yy = y; // JPRx 00044 _vtkInteractorStyleBaseView->TransformCoordinate(x,y,z); 00045 00046 /*EED Borrame 00047 if ((_xBack==xx) && (_yBack==yy)) 00048 { 00049 wxvtkmpr2Dview->MoveX(x,y,z); 00050 wxvtkmpr2Dview->MoveY(x,y,z); 00051 wxvtkmpr2Dview->MoveZ(x,y,z); 00052 wxCommandEvent newevent1(wxEVT_COMMAND_MENU_SELECTED,12121); // Refresh 00053 wxvtkmpr2Dview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent1); 00054 wxCommandEvent newevent2(wxEVT_COMMAND_MENU_SELECTED,12122); // Doble click 00055 wxvtkmpr2Dview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent2); 00056 } 00057 00058 _xBack=xx; 00059 _yBack=yy; 00060 */ 00061 00062 _stateMoveAxisX = wxvtkmpr2Dview->IfMouseTouchX(x,y,z); 00063 _stateMoveAxisY = wxvtkmpr2Dview->IfMouseTouchY(x,y,z); 00064 _stateMoveAxisZ = wxvtkmpr2Dview->IfMouseTouchZ(x,y,z); 00065 00066 return true; 00067 }
bool vtkInteractorStyleMPRView::OnLeftButtonUp | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 69 of file vtkInteractorStyleMPRView.cxx.
References _stateMoveAxisX, _stateMoveAxisY, and _stateMoveAxisZ.
00070 { 00071 if (_stateMoveAxisX==true) 00072 { 00073 _stateMoveAxisX=false; 00074 } 00075 if (_stateMoveAxisY==true) 00076 { 00077 _stateMoveAxisY=false; 00078 } 00079 if (_stateMoveAxisZ==true) 00080 { 00081 _stateMoveAxisZ=false; 00082 } 00083 return true; 00084 }
bool vtkInteractorStyleMPRView::OnLeftDClick | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 18 of file vtkInteractorStyleMPRView.cxx.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), wxVtkMPR2DView::MoveX(), wxVtkMPR2DView::MoveY(), wxVtkMPR2DView::MoveZ(), and vtkInteractorStyleBaseView::TransformCoordinate().
00019 { 00020 wxVtkMPR2DView *wxvtkmpr2Dview = (wxVtkMPR2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); 00021 double x = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; 00022 double y = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1]; 00023 double z = 1; 00024 _vtkInteractorStyleBaseView->TransformCoordinate(x,y,z); 00025 wxvtkmpr2Dview->MoveX(x,y,z); 00026 wxvtkmpr2Dview->MoveY(x,y,z); 00027 wxvtkmpr2Dview->MoveZ(x,y,z); 00028 wxCommandEvent newevent1(wxEVT_COMMAND_MENU_SELECTED,12121); // Refresh 00029 wxvtkmpr2Dview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent1); 00030 wxCommandEvent newevent2(wxEVT_COMMAND_MENU_SELECTED,12122); // Doble click 00031 wxvtkmpr2Dview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent2); 00032 00033 return true; 00034 }
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 vtkInteractorStyleMPRView::OnMouseMove | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 86 of file vtkInteractorStyleMPRView.cxx.
References _stateMoveAxisX, _stateMoveAxisY, _stateMoveAxisZ, InteractorStyleMaracas::_vtkInteractorStyleBaseView, wxVtkMPR2DView::ChangeAxisColor(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkMPR2DView::MoveY(), wxVtkMPR2DView::MoveZ(), vtkInteractorStyleBaseView::SetParent_refresh_waiting(), and vtkInteractorStyleBaseView::TransformCoordinate().
00087 { 00088 double x = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; 00089 double y = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1]; 00090 00091 double z=1; 00092 _vtkInteractorStyleBaseView->TransformCoordinate(x,y,z); 00093 wxVtkMPR2DView *wxvtkmpr2Dview = (wxVtkMPR2DView*)(_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()); 00094 // wxvtkmpr2Dview->TransfromCoordViewWorld(x,y,z); 00095 00096 wxvtkmpr2Dview->ChangeAxisColor(x,y,z); 00097 00098 if ((_stateMoveAxisX==true) || (_stateMoveAxisY==true) || (_stateMoveAxisZ==true) ) 00099 { 00100 if (_stateMoveAxisX==true) 00101 { 00102 wxvtkmpr2Dview-> MoveX(x,y,z); 00103 } 00104 if (_stateMoveAxisY==true) 00105 { 00106 wxvtkmpr2Dview->MoveY(x,y,z); 00107 } 00108 if (_stateMoveAxisZ==true) 00109 { 00110 wxvtkmpr2Dview->MoveZ(x,y,z); 00111 } 00112 00113 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00114 } 00115 return true; 00116 }
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 InteractorStyleMaracas::OnRightButtonUp | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, vtkInteractorScrollZ, vtkInteractorStylePlane2D, and vtkInteractorStyleSphere.
Definition at line 82 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
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 }
bool vtkInteractorStyleMPRView::_stateMoveAxisX [protected] |
Definition at line 22 of file vtkInteractorStyleMPRView.h.
Referenced by OnLeftButtonDown(), OnLeftButtonUp(), OnMouseMove(), and vtkInteractorStyleMPRView().
bool vtkInteractorStyleMPRView::_stateMoveAxisY [protected] |
Definition at line 23 of file vtkInteractorStyleMPRView.h.
Referenced by OnLeftButtonDown(), OnLeftButtonUp(), OnMouseMove(), and vtkInteractorStyleMPRView().
bool vtkInteractorStyleMPRView::_stateMoveAxisZ [protected] |
Definition at line 24 of file vtkInteractorStyleMPRView.h.
Referenced by OnLeftButtonDown(), OnLeftButtonUp(), OnMouseMove(), and vtkInteractorStyleMPRView().
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(), vtkInteractorStylePlane2D::OnLeftButtonDown(), OnLeftButtonDown(), manualContourBaseControler::OnLeftButtonDown(), manualContour3DControler::OnLeftButtonDown(), vtkInteractorStyleSphere::OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftButtonUp(), manualContourBaseControler::OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftDClick(), OnLeftDClick(), manualContourBaseControler::OnLeftDClick(), manualInteractorWindowLevel::OnMiddleButtonDown(), manualContourBaseControler::OnMiddleButtonDown(), vtkInteractorStyleSphere::OnMouseMove(), vtkInteractorStylePlane2D::OnMouseMove(), 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().