]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/InteractorStyleMaracas.cxx
*** empty log 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()
38 {
39         return true;
40 }
41 //---------------------------------------------------------------------------
42 bool InteractorStyleMaracas::OnMouseMove()
43 {
44         return true;
45 }
46 //---------------------------------------------------------------------------
47 bool InteractorStyleMaracas::OnLeftButtonDown()
48 {
49         return true;
50 }
51 //---------------------------------------------------------------------------
52 bool InteractorStyleMaracas::OnLeftButtonUp()
53 {
54         return true;
55 }
56 //---------------------------------------------------------------------------
57 bool  InteractorStyleMaracas::OnLeftDClick()
58 {
59         return true;
60 }
61 //---------------------------------------------------------------------------
62 bool InteractorStyleMaracas::OnMiddleButtonDown() 
63 {
64         return true;
65 }
66 //---------------------------------------------------------------------------
67 bool InteractorStyleMaracas::OnMiddleButtonUp()
68 {
69         return true;
70 }
71 //---------------------------------------------------------------------------
72 bool InteractorStyleMaracas::OnMiddleDClick()
73 {
74         return true;
75 }
76 //---------------------------------------------------------------------------
77 bool InteractorStyleMaracas::OnRightButtonDown()
78 {
79         return true;
80 }
81 //---------------------------------------------------------------------------
82 bool InteractorStyleMaracas::OnRightButtonUp()
83 {
84         return true;
85 }
86 //---------------------------------------------------------------------------
87 bool InteractorStyleMaracas::OnRightDClick()
88 {
89         return true;
90 }
91 //---------------------------------------------------------------------------
92 bool InteractorStyleMaracas::OnMouseWheel()
93 {
94         return true;
95 }
96
97 //---------------------------------------------------------------------------
98
99  void InteractorStyleMaracas::SetVtkInteractorStyleBaseView(vtkInteractorStyleBaseView* vtkInteractorStyleBaseView)
100 {
101         _vtkInteractorStyleBaseView = vtkInteractorStyleBaseView;
102 }
103
104
105 //---------------------------------------------------------------------------
106 void InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView()
107 {
108         _vtkInteractorStyleBaseView = NULL;
109 }
110 //---------------------------------------------------------------------------
111 void InteractorStyleMaracas::SetActive(bool active)
112 {
113         _active = active;
114 }
115 //---------------------------------------------------------------------------
116 bool InteractorStyleMaracas::GetActive()
117 {
118         return _active;
119 }
120
121