]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkInteractorStyleBaseView.h
1 #ifndef VTKINTERACTORSTYLEBASEVIEW_H_
2 #define VTKINTERACTORSTYLEBASEVIEW_H_
3
4
5 #include "wxVtkBaseView.h"
6
7
8 //class InteractorStyleMaracas;
9 //#include "InteractorStyleMaracas.h"
10 class InteractorStyleMaracas;
11
12
13 class creaMaracasVisu_EXPORT vtkInteractorStyleBaseView : public vtkInteractorStyleImage
14 {
15 public:
16         vtkInteractorStyleBaseView();
17         ~vtkInteractorStyleBaseView();
18         static vtkInteractorStyleBaseView *New();
19         virtual void  OnChar();
20         virtual void  OnMouseMove();
21         virtual void  OnLeftButtonDown(); 
22         virtual void  OnLeftButtonUp();
23         virtual void  OnMiddleButtonDown(); 
24         virtual void  OnMiddleButtonUp();
25         virtual void  OnRightButtonDown();
26         virtual void  OnRightButtonUp();
27
28         virtual void  OnLeftDClick();
29         virtual void  OnRightDClick();
30         virtual void  OnMiddleDClick();
31         virtual void  OnMouseWheel();
32
33         virtual void  TransformCoordinate(double &X, double &Y, double &Z);
34         
35         void  AddInteractorStyleMaracas(InteractorStyleMaracas* interactorStyleMaracas);
36         void  RemoveInteractorStyleMaracas(InteractorStyleMaracas* interactorStyleMaracas);
37         void  InsertInteractorStyleMaracas(int pos, InteractorStyleMaracas* interactorStyleMaracas);
38         void  CallLstInteractorStyleMaracas(int type);
39 //JCP 13/05/2009
40         //wxVtk2DBaseView               *GetWxVtk2DBaseView();
41         //wxVtk3DBaseView               *GetWxVtk3DBaseView();
42         wxVtkBaseView   *GetWxVtk2DBaseView();
43         wxVtkBaseView   *GetWxVtk3DBaseView();
44 //JCP 13/05/2009
45                         void            SetwxVtkBaseView(wxVtkBaseView *wxvtkbaseview);
46                         void            SetActiveAllInteractors(bool ok);
47
48                         void            SetRefresh_waiting();
49                         void            SetParent_refresh_waiting();
50
51                         bool            GetRefresh_waiting();
52                         bool            GetParent_refresh_waiting();
53
54
55                         void            EvaluateToRefresh();
56                         void            BlockRefresh();
57                         void            UnBlockRefresh();
58
59 protected:
60                 std::vector< InteractorStyleMaracas* >  _lstInteractorStyleMaracas;
61
62 private:
63         bool                            _blockRefresh;
64         bool                            _refresh_waiting;
65         bool                            _parent_refresh_waiting;
66         wxVtkBaseView           *_wxvtkbaseview;
67 };
68
69 #endif /*VTKINTERACTORSTYLEBASEVIEW_H_*/