]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ColorLayerImageViewPanel.h
1
2
3 /**
4  *  \file 
5  *  \brief Class ThresholdImageViewPanel . 
6  */
7
8 /**
9  * \class ThresholdImageViewPanel
10  * \brief 
11  */
12  
13 #ifndef __ColorLayerImageViewPanel_h__
14 #define __ColorLayerImageViewPanel_h__
15
16
17 #include <wx/wx.h>
18 #include <wx/button.h>
19 #include "ColorLayerImageView.h"
20
21         
22 //EED 21-08-2010
23 class wxDlgTransformByDimensionBySpacingByPixel
24         {
25         public:
26                 wxDlgTransformByDimensionBySpacingByPixel();
27                 ~wxDlgTransformByDimensionBySpacingByPixel();
28                 void GetTransformType(wxWindow *parent , wxString message,int &typeOfTransformation,bool &dlgWxOK) ;
29         };
30
31 //-----------------------------------------------------
32
33         class ColorLayerImageViewPanel
34                 : public wxPanel
35                 {
36                 public:
37                         ColorLayerImageViewPanel(wxWindow * parent, int min, int max, int type);                
38                         ~ColorLayerImageViewPanel();
39                         void onThresholdStop();
40                         void SetColorLayerImageView(ColorLayerImageView* colorLayerImageView);
41                         bool IsVisible();
42                         void SetBaseSpacing(double spc[3]);
43                         void SetBaseDimension(int dim[3]);
44                         void SetOriginalSpacing(double spc[3]);
45                         
46                 private:
47                         int                                     _dimBase[3];
48                         double                          _spcBase[3];
49                         double                          _spcOrg[3];
50
51                         bool                            _thresholdGo;
52                         ColorLayerImageView     *_colorLayerImageView;
53                         wxButton                        *_btn_ReadImage;
54                         wxSlider                        *_opacity;
55                         wxCheckBox                      *_interpolationCheckBox;        
56                         wxCheckBox                      *_cb_ShowHide;
57                         wxCheckBox                      *_cb_SliceFixDinamic;
58                         wxSlider                        *_sl_SliceImage;
59                         void onReadImage(wxCommandEvent& event);
60                         void onThresholdChange(wxCommandEvent& event);                  
61                         void onThresholdShow(wxCommandEvent& event);
62                         void onThresholdInterpolation(wxCommandEvent& event);
63                         void onChangeOpacity(wxScrollEvent& event);
64                         void onSliceFixDinamic(wxCommandEvent& event);
65                         void onSliceImage(wxScrollEvent& event);
66                 };
67
68 #endif
69