X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FColorLayerImageViewPanel.h;h=03c5c1595144462d41baf36c1d6047831642d3da;hb=910aad6b5adef5024f896cc5a0daa79f1cda0661;hp=3b19119d487b250d49bc26b1279bc1a2cd1740ec;hpb=badc6cea49d018dec82191a977fc082299a1da35;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h index 3b19119..03c5c15 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h @@ -1,15 +1,15 @@ /** - * \file - * \brief Class ThresholdImageViewPanel . + * \file + * \brief Class ThresholdImageViewPanel . */ /** * \class ThresholdImageViewPanel - * \brief + * \brief */ - + #ifndef __ColorLayerImageViewPanel_h__ #define __ColorLayerImageViewPanel_h__ @@ -18,7 +18,10 @@ #include #include "ColorLayerImageView.h" - + + +//----------------------------------------------------- + //EED 21-08-2010 class wxDlgTransformByDimensionBySpacingByPixel { @@ -28,42 +31,47 @@ class wxDlgTransformByDimensionBySpacingByPixel void GetTransformType(wxWindow *parent , wxString message,int &typeOfTransformation,bool &dlgWxOK) ; }; + + //----------------------------------------------------- - class ColorLayerImageViewPanel +class ColorLayerImageViewPanel : public wxPanel { public: - ColorLayerImageViewPanel(wxWindow * parent, int min, int max, int type); + ColorLayerImageViewPanel(wxWindow * parent, int min, int max, int type); ~ColorLayerImageViewPanel(); void onThresholdStop(); + ColorLayerImageView* GetColorLayerImageView(); void SetColorLayerImageView(ColorLayerImageView* colorLayerImageView); bool IsVisible(); void SetBaseSpacing(double spc[3]); void SetBaseDimension(int dim[3]); void SetOriginalSpacing(double spc[3]); - + void SetImage(vtkImageData *img); + private: - int _dimBase[3]; + int _dimBase[3]; double _spcBase[3]; double _spcOrg[3]; bool _thresholdGo; - ColorLayerImageView *_colorLayerImageView; + ColorLayerImageView *_colorLayerImageView; wxButton *_btn_ReadImage; wxSlider *_opacity; - wxCheckBox *_interpolationCheckBox; + wxCheckBox *_interpolationCheckBox; wxCheckBox *_cb_ShowHide; wxCheckBox *_cb_SliceFixDinamic; wxSlider *_sl_SliceImage; void onReadImage(wxCommandEvent& event); - void onThresholdChange(wxCommandEvent& event); + void onThresholdChange(wxCommandEvent& event); void onThresholdShow(wxCommandEvent& event); void onThresholdInterpolation(wxCommandEvent& event); void onChangeOpacity(wxScrollEvent& event); void onSliceFixDinamic(wxCommandEvent& event); void onSliceImage(wxScrollEvent& event); - }; + +}; #endif