]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.h
Bug #1679
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtk2DBaseView.h
1 #ifndef WXVTK2DBASEVIEW_H_
2 #define WXVTK2DBASEVIEW_H_
3
4 #include "wxVtkBaseView.h"
5 #include "vtkImageViewer2_XYZ.h"
6
7 //class vtkInteractorStyleBaseView;
8 #include "vtkInteractorStyleBaseView.h"
9 #include "vtkInteractorStyleBaseView2D.h"
10 class vtkInfoTextImage;
11 class vtkInfoTextImageInteractor;
12
13
14
15 //------------------------------------------------------------------
16
17
18 class creaMaracasVisu_EXPORT wxVtk2DBaseView: public wxVtkBaseView{
19 public:
20         wxVtk2DBaseView(wxWindow *parent);
21         virtual ~wxVtk2DBaseView();
22         virtual void                    Configure(bool okimage=true);
23         vtkImageViewer2_XYZ*    _imageViewer2XYZ;
24         vtkBaseData*                    GetVtkBaseData();
25         void                                    SetVtkBaseData(vtkBaseData *vtkbasedata);
26         virtual void                    Refresh();
27         virtual void                    ResetView();
28         virtual int                             GetActualSlice();
29         virtual void                    SetActualSlice(int slice);
30                         void                    SetInteractorStyleImage(vtkInteractorStyleBaseView *interactorstylebaseview);
31
32         virtual vtkRenderer*            GetRenderer();
33         virtual vtkRenderWindow*        GetRenWin();
34         virtual void                    TransformCoordinate_spacing_ViewToModel(double &X,double &Y, double &Z);
35         virtual void                    TransformCoordinate_spacing_ModelToView(double &X,double &Y, double &Z);
36         virtual void                    GetSpacing(double spc[3]);
37
38         void setColorTransferFunction(vtkColorTransferFunction* colortable);
39
40         void setWindowLevel(double level);
41
42         void setColorLevel(double level);
43     virtual int GetDirection();
44         void SetImageToVtkViewer(vtkImageData *imageData);
45
46
47 private:
48         vtkBaseData                                                     *_vtkbasedata;
49
50         vtkInfoTextImage                                        *_vtkIinfoTextImage;
51         vtkInfoTextImageInteractor                      *_vtkIinfoTextImageInteractor;
52         vtkInteractorStyleBaseView2D * _style2D;
53
54 protected:
55
56 };
57
58 #endif /*WXVTK2DBASEVIEW_H_*/