]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.h
ViewerNV 2D with color Transfer Function
[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 class vtkInfoTextImage;
10 class vtkInfoTextImageInteractor;
11
12
13
14 //------------------------------------------------------------------
15
16
17 class creaMaracasVisu_EXPORT wxVtk2DBaseView: public wxVtkBaseView{
18 public:
19         wxVtk2DBaseView(wxWindow *parent);
20         virtual ~wxVtk2DBaseView();
21         virtual void                    Configure(bool okimage=true);
22         vtkImageViewer2_XYZ*    _imageViewer2XYZ;
23         vtkBaseData*                    GetVtkBaseData();
24         void                                    SetVtkBaseData(vtkBaseData *vtkbasedata);
25         virtual void                    Refresh();
26         virtual void                    ResetView();
27         virtual int                             GetActualSlice();
28         virtual void                    SetActualSlice(int slice);
29                         void                    SetInteractorStyleImage(vtkInteractorStyleBaseView *interactorstylebaseview);
30
31         virtual vtkRenderer*            GetRenderer();
32         virtual vtkRenderWindow*        GetRenWin();
33         virtual void                    TransformCoordinate_spacing_ViewToModel(double &X,double &Y, double &Z);
34         virtual void                    TransformCoordinate_spacing_ModelToView(double &X,double &Y, double &Z);
35         virtual void                    GetSpacing(double spc[3]);
36
37         void setColorTransferFunction(vtkColorTransferFunction* colortable);
38
39 private:
40         vtkBaseData                                                     *_vtkbasedata;
41
42         vtkInfoTextImage                                        *_vtkIinfoTextImage;
43         vtkInfoTextImageInteractor                      *_vtkIinfoTextImageInteractor;
44
45 protected:
46
47 };
48
49 #endif /*WXVTK2DBASEVIEW_H_*/