#include <vtkInteractorScrollZ.h>
Public Member Functions | |
vtkInteractorScrollZ () | |
virtual | ~vtkInteractorScrollZ () |
virtual bool | OnMouseMove () |
virtual bool | OnRightButtonDown () |
virtual bool | OnRightButtonUp () |
virtual InteractorStyleMaracas * | Clone () |
void | CopyAttributesTo (InteractorStyleMaracas *cloneObject) |
virtual bool | OnChar () |
virtual bool | OnLeftButtonDown () |
virtual bool | OnLeftButtonUp () |
virtual bool | OnMiddleButtonDown () |
virtual bool | OnMiddleButtonUp () |
virtual bool | OnLeftDClick () |
virtual bool | OnRightDClick () |
virtual bool | OnMiddleDClick () |
virtual bool | OnMouseWheel () |
void | SetVtkInteractorStyleBaseView (vtkInteractorStyleBaseView *_vtkInteractorStyleBaseView) |
void | RemoveVtkInteractorStyleBaseView () |
void | SetActive (bool active) |
bool | GetActive () |
Protected Attributes | |
bool | _stateFordware |
int | _fordwareX |
int | _fordwareY |
int | _sliceZ |
vtkInteractorStyleBaseView * | _vtkInteractorStyleBaseView |
Definition at line 6 of file vtkInteractorScrollZ.h.
vtkInteractorScrollZ::vtkInteractorScrollZ | ( | ) |
Definition at line 8 of file vtkInteractorScrollZ.cxx.
References _stateFordware.
00009 { 00010 _stateFordware=false; 00011 }
vtkInteractorScrollZ::~vtkInteractorScrollZ | ( | ) | [virtual] |
Definition at line 13 of file vtkInteractorScrollZ.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 InteractorStyleMaracas::OnLeftButtonDown | ( | ) | [virtual, inherited] |
Reimplemented in manualContour3DControler, manualContourBaseControler, vtkInteractorStyleMPRView, vtkInteractorStylePlane2D, and vtkInteractorStyleSphere.
Definition at line 47 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnLeftButtonUp | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, vtkInteractorStyleMPRView, vtkInteractorStylePlane2D, and vtkInteractorStyleSphere.
Definition at line 52 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnLeftDClick | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, manualContourPerpPlaneControler, vtkInteractorStyle3DView, vtkInteractorStyleMPRView, and vtkInteractorStylePlane2D.
Definition at line 57 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(), and manualContourPerpPlaneControler::MouseDLeft().
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 vtkInteractorScrollZ::OnMouseMove | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 38 of file vtkInteractorScrollZ.cxx.
References _fordwareY, _sliceZ, _stateFordware, InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), and vtkInteractorStyleBaseView::SetParent_refresh_waiting().
00039 { 00040 if (_stateFordware==true){ 00041 //int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; // JPRx 00042 int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1]; 00043 int delta = (_fordwareY - fy)/3; 00044 /*JCP 14/05/2009 00045 _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->SetActualSlice( _sliceZ + delta); 00046 */ 00047 ((wxVtk2DBaseView*)_vtkInteractorStyleBaseView->GetWxVtk2DBaseView())->SetActualSlice( _sliceZ + delta); 00048 00049 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00050 00051 // wxCommandEvent newevent(wxEVT_COMMAND_MENU_SELECTED,12121); 00052 // _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent); 00053 00054 //_wxvtk2Dbaseview->Refresh(); 00055 } 00056 return true; 00057 }
bool InteractorStyleMaracas::OnMouseWheel | ( | ) | [virtual, inherited] |
Definition at line 92 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool vtkInteractorScrollZ::OnRightButtonDown | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 17 of file vtkInteractorScrollZ.cxx.
References _fordwareX, _fordwareY, _sliceZ, _stateFordware, InteractorStyleMaracas::_vtkInteractorStyleBaseView, and vtkInteractorStyleBaseView::GetWxVtk2DBaseView().
00018 { 00019 vtkRenderWindowInteractor *interactor = _vtkInteractorStyleBaseView->GetInteractor(); 00020 if ((interactor->GetControlKey()==0) && (interactor->GetShiftKey()==0) ){ 00021 _stateFordware = true; 00022 _fordwareX = interactor->GetEventPosition()[0]; 00023 _fordwareY = interactor->GetEventPosition()[1]; 00024 /*JCP 14/05/2009 00025 _sliceZ = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetActualSlice(); 00026 */ 00027 _sliceZ = ((wxVtk2DBaseView*)_vtkInteractorStyleBaseView->GetWxVtk2DBaseView())->GetActualSlice(); 00028 } 00029 return true; 00030 }
bool vtkInteractorScrollZ::OnRightButtonUp | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 32 of file vtkInteractorScrollZ.cxx.
References _stateFordware.
00033 { 00034 _stateFordware=false; 00035 return true; 00036 }
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 vtkInteractorScrollZ::_fordwareX [protected] |
Definition at line 19 of file vtkInteractorScrollZ.h.
Referenced by OnRightButtonDown().
int vtkInteractorScrollZ::_fordwareY [protected] |
Definition at line 20 of file vtkInteractorScrollZ.h.
Referenced by OnMouseMove(), and OnRightButtonDown().
int vtkInteractorScrollZ::_sliceZ [protected] |
Definition at line 21 of file vtkInteractorScrollZ.h.
Referenced by OnMouseMove(), and OnRightButtonDown().
bool vtkInteractorScrollZ::_stateFordware [protected] |
Definition at line 18 of file vtkInteractorScrollZ.h.
Referenced by OnMouseMove(), OnRightButtonDown(), OnRightButtonUp(), and vtkInteractorScrollZ().
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(), vtkInteractorStyleMPRView::OnLeftButtonDown(), manualContourBaseControler::OnLeftButtonDown(), manualContour3DControler::OnLeftButtonDown(), vtkInteractorStyleSphere::OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftButtonUp(), manualContourBaseControler::OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftDClick(), vtkInteractorStyleMPRView::OnLeftDClick(), manualContourBaseControler::OnLeftDClick(), manualInteractorWindowLevel::OnMiddleButtonDown(), manualContourBaseControler::OnMiddleButtonDown(), vtkInteractorStyleSphere::OnMouseMove(), vtkInteractorStylePlane2D::OnMouseMove(), vtkInteractorStyleMPRView::OnMouseMove(), OnMouseMove(), vtkInfoTextImageInteractorPlane2D::OnMouseMove(), vtkInfoTextImageInteractor::OnMouseMove(), manualInteractorWindowLevel::OnMouseMove(), manualContourBaseControler::OnMouseMove(), vtkInteractorStyleSphere::OnRightButtonDown(), OnRightButtonDown(), manualContourBaseControler::OnRightButtonDown(), vtkInteractorStyleSphere::OnRightButtonUp(), InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), and InteractorStyleMaracas::SetVtkInteractorStyleBaseView().