3 #include "vtkInteractorStyleBaseView2D.h"
4 #include <vtkObjectFactory.h>
6 vtkStandardNewMacro(vtkInteractorStyleBaseView2D);
8 //---------------------------------------------------------------------------
9 vtkInteractorStyleBaseView2D::vtkInteractorStyleBaseView2D()
11 _manualinteractorwindowlevel= new manualInteractorWindowLevel();
12 AddInteractorStyleMaracas( _manualinteractorwindowlevel );
14 _vtkInteractorScrollZ = new vtkInteractorScrollZ();
15 AddInteractorStyleMaracas(_vtkInteractorScrollZ);
18 //---------------------------------------------------------------------------
19 vtkInteractorStyleBaseView2D::~vtkInteractorStyleBaseView2D()
23 //---------------------------------------------------------------------------
24 void vtkInteractorStyleBaseView2D::OnRightButtonDown() // virtual
26 vtkInteractorStyleBaseView::OnRightButtonDown();
28 if ((GetInteractor()->GetControlKey()==1) && (GetInteractor()->GetShiftKey()==0) ){
29 this->vtkInteractorStyleImage::OnRightButtonDown();
34 //---------------------------------------------------------------------------
35 void vtkInteractorStyleBaseView2D::OnRightButtonUp() // virtual
37 vtkInteractorStyleBaseView::OnRightButtonUp();
38 this->vtkInteractorStyleImage::OnRightButtonUp();
40 //---------------------------------------------------------------------------
41 void vtkInteractorStyleBaseView2D::OnMouseMove () // virtual
43 vtkInteractorStyleBaseView::OnMouseMove();
44 this->vtkInteractorStyleImage::OnMouseMove();
46 //---------------------------------------------------------------------------
47 void vtkInteractorStyleBaseView2D::OnLeftButtonDown() // virtual
49 vtkInteractorStyleBaseView::OnLeftButtonDown();
51 if ((GetInteractor()->GetControlKey()==0) && (GetInteractor()->GetShiftKey()==1) )
53 this->vtkInteractorStyleImage::OnLeftButtonDown();
56 //---------------------------------------------------------------------------
57 void vtkInteractorStyleBaseView2D::OnLeftButtonUp () // virtual
59 vtkInteractorStyleBaseView::OnLeftButtonUp();
61 this->vtkInteractorStyleImage::OnLeftButtonUp();
63 //---------------------------------------------------------------------------
64 void vtkInteractorStyleBaseView2D::OnMiddleButtonDown () // virtual
66 vtkInteractorStyleBaseView::OnMiddleButtonDown();
68 if ((GetInteractor()->GetControlKey()==1) || (GetInteractor()->GetShiftKey()==1) )
70 this->vtkInteractorStyleImage::OnLeftButtonDown();
73 //---------------------------------------------------------------------------
74 void vtkInteractorStyleBaseView2D::OnMiddleButtonUp () // virtual
76 vtkInteractorStyleBaseView::OnMiddleButtonUp();
78 if ((GetInteractor()->GetControlKey()==1) || (GetInteractor()->GetShiftKey()==1) )
80 this->vtkInteractorStyleImage::OnLeftButtonUp();