X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxVtk2DBaseView.h;h=93e3eee5d5b4b3e6e79ea1eedf7ece2307d46da4;hb=f9901e756bb82bd333310b47607875331616bb29;hp=c4d275a70495cb3bac305ef3c8a53c5f1e3fe50b;hpb=f369752f86b8a540df6638ba87945e83c9498b4b;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.h index c4d275a..93e3eee 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.h @@ -35,33 +35,31 @@ class vtkInfoTextImage; class vtkInfoTextImageInteractor; - - //------------------------------------------------------------------ class creaMaracasVisu_EXPORT wxVtk2DBaseView: public wxVtkBaseView{ public: wxVtk2DBaseView(wxWindow *parent); - virtual ~wxVtk2DBaseView(); - virtual void Configure(bool okimage=true); - vtkImageViewer2_XYZ* _imageViewer2XYZ; - - - virtual void Refresh(); - virtual void ResetView(); - virtual int GetActualSlice(); - virtual void SetActualSlice(int slice); + virtual ~wxVtk2DBaseView(); + virtual void Configure(bool okimage=true); + vtkImageViewer2_XYZ* _imageViewer2XYZ; + + virtual void Refresh(); + virtual void ResetView(); + virtual int GetActualSlice(); + virtual void SetActualSlice(int slice); void SetInteractorStyleImage(vtkInteractorStyleBaseView *interactorstylebaseview); - virtual vtkRenderer* GetRenderer(); - virtual vtkRenderWindow* GetRenWin(); - virtual void TransformCoordinate_spacing_ViewToModel(double &X,double &Y, double &Z); - virtual void TransformCoordinate_spacing_ModelToView(double &X,double &Y, double &Z); - virtual void GetSpacing(double spc[3]); + virtual vtkRenderer* GetRenderer(); + virtual vtkRenderWindow* GetRenWin(); + virtual void TransformCoordinate_spacing_ViewToModel(double &X,double &Y, double &Z); + virtual void TransformCoordinate_spacing_ModelToView(double &X,double &Y, double &Z); + virtual void GetSpacing(double spc[3]); void setColorTransferFunction(vtkColorTransferFunction* colortable); void SetColorWindow(double level); void SetColorLevel(double level); + void SetInterpolate(bool iterpolate); virtual int GetDirection(); void SetImageToVtkViewer(vtkImageData *imageData); @@ -69,11 +67,13 @@ public: //EED 01nov2012 void UpdateColorWindowLevel(); + //EED 05juin2019 + void UpdateCameraParallelScale(); private: - vtkInfoTextImage *_vtkIinfoTextImage; + vtkInfoTextImage *_vtkIinfoTextImage; vtkInfoTextImageInteractor *_vtkIinfoTextImageInteractor; - vtkInteractorStyleBaseView2D * _style2D; + vtkInteractorStyleBaseView2D *_style2D; protected: