]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h
03c5c1595144462d41baf36c1d6047831642d3da
[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
23 //-----------------------------------------------------
24
25 //EED 21-08-2010
26 class wxDlgTransformByDimensionBySpacingByPixel
27         {
28         public:
29                 wxDlgTransformByDimensionBySpacingByPixel();
30                 ~wxDlgTransformByDimensionBySpacingByPixel();
31                 void GetTransformType(wxWindow *parent , wxString message,int &typeOfTransformation,bool &dlgWxOK) ;
32         };
33
34
35
36 //-----------------------------------------------------
37
38 class ColorLayerImageViewPanel
39                 : public wxPanel
40                 {
41                 public:
42                         ColorLayerImageViewPanel(wxWindow * parent, int min, int max, int type);
43                         ~ColorLayerImageViewPanel();
44                         void onThresholdStop();
45                         ColorLayerImageView* GetColorLayerImageView();
46                         void SetColorLayerImageView(ColorLayerImageView* colorLayerImageView);
47                         bool IsVisible();
48                         void SetBaseSpacing(double spc[3]);
49                         void SetBaseDimension(int dim[3]);
50                         void SetOriginalSpacing(double spc[3]);
51             void SetImage(vtkImageData *img);
52
53                 private:
54                         int                             _dimBase[3];
55                         double                          _spcBase[3];
56                         double                          _spcOrg[3];
57
58                         bool                            _thresholdGo;
59                         ColorLayerImageView             *_colorLayerImageView;
60                         wxButton                        *_btn_ReadImage;
61                         wxSlider                        *_opacity;
62                         wxCheckBox                      *_interpolationCheckBox;
63                         wxCheckBox                      *_cb_ShowHide;
64                         wxCheckBox                      *_cb_SliceFixDinamic;
65                         wxSlider                        *_sl_SliceImage;
66                         void onReadImage(wxCommandEvent& event);
67                         void onThresholdChange(wxCommandEvent& event);
68                         void onThresholdShow(wxCommandEvent& event);
69                         void onThresholdInterpolation(wxCommandEvent& event);
70                         void onChangeOpacity(wxScrollEvent& event);
71                         void onSliceFixDinamic(wxCommandEvent& event);
72                         void onSliceImage(wxScrollEvent& event);
73
74 };
75
76 #endif
77