]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView2D.cxx
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkInteractorStyleBaseView2D.cxx
1
2
3 #include "vtkInteractorStyleBaseView2D.h"
4 #include <vtkObjectFactory.h>
5
6 vtkStandardNewMacro(vtkInteractorStyleBaseView2D);
7
8 //---------------------------------------------------------------------------
9 vtkInteractorStyleBaseView2D::vtkInteractorStyleBaseView2D()
10 {
11         _manualinteractorwindowlevel= new manualInteractorWindowLevel();
12         AddInteractorStyleMaracas( _manualinteractorwindowlevel );
13
14         _vtkInteractorScrollZ = new vtkInteractorScrollZ();
15         AddInteractorStyleMaracas(_vtkInteractorScrollZ);
16         
17 }
18 //---------------------------------------------------------------------------
19 vtkInteractorStyleBaseView2D::~vtkInteractorStyleBaseView2D()
20 {
21 }
22
23 //---------------------------------------------------------------------------
24 void  vtkInteractorStyleBaseView2D::OnRightButtonDown()  // virtual
25 {    
26         vtkInteractorStyleBaseView::OnRightButtonDown();
27
28         if ((GetInteractor()->GetControlKey()==1) && (GetInteractor()->GetShiftKey()==0) ){
29                 this->vtkInteractorStyleImage::OnRightButtonDown();
30         }
31
32 }
33
34 //---------------------------------------------------------------------------
35 void  vtkInteractorStyleBaseView2D::OnRightButtonUp()  // virtual
36 {
37         vtkInteractorStyleBaseView::OnRightButtonUp();
38         this->vtkInteractorStyleImage::OnRightButtonUp();
39 }
40 //---------------------------------------------------------------------------
41 void  vtkInteractorStyleBaseView2D::OnMouseMove () // virtual
42 {
43         vtkInteractorStyleBaseView::OnMouseMove();
44         this->vtkInteractorStyleImage::OnMouseMove();
45 }
46 //---------------------------------------------------------------------------
47 void  vtkInteractorStyleBaseView2D::OnLeftButtonDown() // virtual
48 {
49         vtkInteractorStyleBaseView::OnLeftButtonDown();
50
51         if ((GetInteractor()->GetControlKey()==0) && (GetInteractor()->GetShiftKey()==1) )
52         {
53                 this->vtkInteractorStyleImage::OnLeftButtonDown();
54         }
55 }
56 //---------------------------------------------------------------------------
57 void  vtkInteractorStyleBaseView2D::OnLeftButtonUp () // virtual
58 {
59         vtkInteractorStyleBaseView::OnLeftButtonUp();
60
61         this->vtkInteractorStyleImage::OnLeftButtonUp();
62 }
63 //---------------------------------------------------------------------------
64 void  vtkInteractorStyleBaseView2D::OnMiddleButtonDown () // virtual
65 {
66         vtkInteractorStyleBaseView::OnMiddleButtonDown();
67
68         if ((GetInteractor()->GetControlKey()==1) || (GetInteractor()->GetShiftKey()==1) )
69         {
70                 this->vtkInteractorStyleImage::OnLeftButtonDown();
71         }
72 }
73 //---------------------------------------------------------------------------
74 void vtkInteractorStyleBaseView2D::OnMiddleButtonUp () // virtual
75 {
76         vtkInteractorStyleBaseView::OnMiddleButtonUp();
77
78         if ((GetInteractor()->GetControlKey()==1) || (GetInteractor()->GetShiftKey()==1) )
79         {
80                 this->vtkInteractorStyleImage::OnLeftButtonUp();
81         }
82 }
83