]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/InteractorStyleMaracas.cxx
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / InteractorStyleMaracas.cxx
1
2 #include "InteractorStyleMaracas.h"
3 //---------------------------------------------------------------------------
4 //---------------------------------------------------------------------------
5 //---------------------------------------------------------------------------
6
7 InteractorStyleMaracas::InteractorStyleMaracas()
8 {
9         _active                                         = true;
10         _vtkInteractorStyleBaseView     = NULL;
11 }
12 //---------------------------------------------------------------------------
13 InteractorStyleMaracas::~InteractorStyleMaracas()
14 {
15 }
16
17 // ----------------------------------------------------------------------------
18 InteractorStyleMaracas * InteractorStyleMaracas :: Clone()  // virtual 
19 {
20         InteractorStyleMaracas * clone = new InteractorStyleMaracas();
21         CopyAttributesTo(clone);
22         return clone;
23 }
24
25 // ---------------------------------------------------------------------------
26
27 void InteractorStyleMaracas::CopyAttributesTo( InteractorStyleMaracas * cloneObject)
28 {
29         // Fathers object
30         //<FATHERCLASS>::CopyAttributesTo(cloneObject);
31
32         cloneObject->SetActive(  this->GetActive() );
33 }
34
35
36 //---------------------------------------------------------------------------
37 bool InteractorStyleMaracas::OnChar() //virtual
38 {
39         return true;
40 }
41 //---------------------------------------------------------------------------
42 bool InteractorStyleMaracas::OnMouseMove() //virtual
43 {
44         return true;
45 }
46 //---------------------------------------------------------------------------
47 bool InteractorStyleMaracas::OnLeftButtonDown() //virtual
48 {
49         return true;
50 }
51 //---------------------------------------------------------------------------
52 bool InteractorStyleMaracas::OnLeftButtonUp() //virtual
53 {
54         return true;
55 }
56 //---------------------------------------------------------------------------
57 bool  InteractorStyleMaracas::OnLeftDClick() //virtual
58 {
59         return true;
60 }
61 //---------------------------------------------------------------------------
62 bool InteractorStyleMaracas::OnMiddleButtonDown()  //virtual
63 {
64         return true;
65 }
66 //---------------------------------------------------------------------------
67 bool InteractorStyleMaracas::OnMiddleButtonUp() //virtual
68 {
69         return true;
70 }
71 //---------------------------------------------------------------------------
72 bool InteractorStyleMaracas::OnMiddleDClick() //virtual
73 {
74         return true;
75 }
76 //---------------------------------------------------------------------------
77 bool InteractorStyleMaracas::OnRightButtonDown() //virtual
78 {
79         return true;
80 }
81 //---------------------------------------------------------------------------
82 bool InteractorStyleMaracas::OnRightButtonUp() //virtual
83 {
84         return true;
85 }
86 //---------------------------------------------------------------------------
87 bool InteractorStyleMaracas::OnRightDClick() //virtual
88 {
89         return true;
90 }
91
92
93
94 //---------------------------------------------------------------------------
95 bool InteractorStyleMaracas::OnMouseWheelForward() //virtual
96 {
97         return true;
98 }
99
100 //---------------------------------------------------------------------------
101 bool InteractorStyleMaracas::OnMouseWheelBackward()  //virtual
102 {
103         return true;
104 }
105
106 //---------------------------------------------------------------------------
107
108  void InteractorStyleMaracas::SetVtkInteractorStyleBaseView(vtkInteractorStyleBaseView* vtkInteractorStyleBaseView)
109 {
110         _vtkInteractorStyleBaseView = vtkInteractorStyleBaseView;
111 }
112
113
114 //---------------------------------------------------------------------------
115 void InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView()
116 {
117         _vtkInteractorStyleBaseView = NULL;
118 }
119 //---------------------------------------------------------------------------
120 void InteractorStyleMaracas::SetActive(bool active)
121 {
122         _active = active;
123 }
124 //---------------------------------------------------------------------------
125 bool InteractorStyleMaracas::GetActive()
126 {
127         return _active;
128 }
129
130