X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FThresholdImageView%2FColorLayerImageViewPanel.h;h=03cff5484949a254a535b5b1c19ed54c749d05e0;hb=54bb3fba5f59ca71cb82d87043e21354dd85e7aa;hp=3927cc9fb5fbc782e7b538a73612b753ad0b95ab;hpb=d8edef346f2d6c64f6ed3bea7225aeb3a8b3970c;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 3927cc9..03cff54 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,29 +18,47 @@ #include #include "ColorLayerImageView.h" - + +//EED 21-08-2010 +class wxDlgTransformByDimensionBySpacingByPixel + { + public: + wxDlgTransformByDimensionBySpacingByPixel(); + ~wxDlgTransformByDimensionBySpacingByPixel(); + void GetTransformType(wxWindow *parent , wxString message,int &typeOfTransformation,bool &dlgWxOK) ; + }; + +//----------------------------------------------------- + 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]); + private: - + int _dimBase[3]; + double _spcBase[3]; + double _spcOrg[3]; + bool _thresholdGo; 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);