1 #ifndef WXVTK2DBASEVIEW_H_
2 #define WXVTK2DBASEVIEW_H_
4 #include "wxVtkBaseView.h"
5 #include "vtkImageViewer2_XYZ.h"
7 //class vtkInteractorStyleBaseView;
8 #include "vtkInteractorStyleBaseView.h"
9 class vtkInfoTextImage;
10 class vtkInfoTextImageInteractor;
14 //------------------------------------------------------------------
17 class creaMaracasVisu_EXPORT wxVtk2DBaseView: public wxVtkBaseView{
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);
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]);
37 void setColorTransferFunction(vtkColorTransferFunction* colortable);
40 vtkBaseData *_vtkbasedata;
42 vtkInfoTextImage *_vtkIinfoTextImage;
43 vtkInfoTextImageInteractor *_vtkIinfoTextImageInteractor;
49 #endif /*WXVTK2DBASEVIEW_H_*/