]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.h
94617a07eda7b5d534f13db7f538621b888159ca
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtkBaseView.h
1
2
3 #ifndef __WX_VTK__BASE__VIEW__H
4 #define __WX_VTK__BASE__VIEW__H
5
6
7
8 #include <vtkRenderer.h>
9 #include <vtkRenderWindow.h>
10 #include <vtkCamera.h>
11 #include <vtkTextActor.h>
12
13 //EEDxx include
14 #include <vtkProperty.h>
15 #include <vtkActor.h>
16
17
18 #include <vtkImageViewer2.h> 
19 #include <vtkInteractorStyleImage.h> 
20
21 #include "wxMPRBaseData.h"
22 #include "wxVTKRenderWindowInteractorEditContour.h"
23
24 #include <wx/wx.h>
25
26
27
28 #include <vector>
29 #include "marTypes.h"
30
31 #include "wxVTKRenderWindowInteractor.h"
32 //#include "include/vtkImageViewer2_XYZ.h"
33
34 /* JCP 14/05/09
35 //#include "vtkInteractorStyleBaseView.h"
36 //class vtkInteractorStyleBaseView;  
37  */
38
39 #include "vtkInteractorStyleImage.h"
40
41
42
43
44 class creaMaracasVisu_EXPORT wxVtkBaseView{
45 public:
46         wxVtkBaseView( );
47         wxVtkBaseView( wxWindow *parent );
48         virtual ~wxVtkBaseView();
49         wxVTKRenderWindowInteractor             *GetWxVTKRenderWindowInteractor() throw (char*);
50         virtual void                                    Configure();
51         virtual void                                    Refresh();
52         virtual void                                    RefreshView();
53         virtual vtkRenderer*                    GetRenderer();
54         virtual vtkRenderWindow*                GetRenWin();
55         virtual void                                    TransFromCoordScreenToWorld(double &X, double &Y, double &Z, bool keepNormalDirection=false,int type=2);
56
57         //RaC 03-2010 Method used by TransFromCoordScreenToWorld
58         void                                                    TransCoordScreenToWorld(double &X, double &Y, double &Z,int type=2);
59
60         /* JCP 04/05/09
61         void                                                    SetInteractorStyleBaseView( vtkInteractorStyleBaseView* interactorStyle);
62         */
63         void                                                    SetInteractorStyleBaseView( vtkInteractorStyleImage*    interactorStyle);
64         /* JCP 04/05/09
65          * 
66         vtkInteractorStyleBaseView*             GetInteractorStyleBaseView();   
67         */
68         vtkInteractorStyleImage*                GetInteractorStyleBaseView();
69         virtual void                                    GetSpacing(double spc[3]);
70
71 private:
72         wxWindow                                                *_parent;
73         wxVTKRenderWindowInteractor             *_iren;
74         /**
75          * JCP 04/05/09
76          * vtkInteractorStyleImage              *_interactorStyle;
77          */
78         vtkInteractorStyleImage         *_interactorStyle;
79 protected:
80
81 };
82
83
84
85 //------------------------------------------------------------------
86 //------------------------------------------------------------------
87 //------------------------------------------------------------------
88
89
90
91
92
93 #endif // __WX_VTK__BASE__VIEW__H
94
95
96
97