]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.h
Change in the method to transformCoordinates. It was changed from a method to a new...
[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 is3D=false,bool keepNormalDirection=false,int type=2);
56         /* JCP 04/05/09
57         void                                                    SetInteractorStyleBaseView( vtkInteractorStyleBaseView* interactorStyle);
58         */
59         void                                                    SetInteractorStyleBaseView( vtkInteractorStyleImage*    interactorStyle);
60         /* JCP 04/05/09
61          * 
62         vtkInteractorStyleBaseView*             GetInteractorStyleBaseView();   
63         */
64         vtkInteractorStyleImage*                GetInteractorStyleBaseView();
65         virtual void                                    GetSpacing(double spc[3]);
66
67 private:
68         wxWindow                                                *_parent;
69         wxVTKRenderWindowInteractor             *_iren;
70         /**
71          * JCP 04/05/09
72          * vtkInteractorStyleImage              *_interactorStyle;
73          */
74         vtkInteractorStyleImage         *_interactorStyle;
75 protected:
76
77 };
78
79
80
81 //------------------------------------------------------------------
82 //------------------------------------------------------------------
83 //------------------------------------------------------------------
84
85
86
87
88
89 #endif // __WX_VTK__BASE__VIEW__H
90
91
92
93