]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h
*** empty log 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                         ColorLayerImageView* GetColorLayerImageView();
41                         void SetColorLayerImageView(ColorLayerImageView* colorLayerImageView);
42                         bool IsVisible();
43                         void SetBaseSpacing(double spc[3]);
44                         void SetBaseDimension(int dim[3]);
45                         void SetOriginalSpacing(double spc[3]);
46             void SetImage(vtkImageData *img);
47
48                 private:
49                         int                                     _dimBase[3];
50                         double                          _spcBase[3];
51                         double                          _spcOrg[3];
52
53                         bool                            _thresholdGo;
54                         ColorLayerImageView     *_colorLayerImageView;
55                         wxButton                        *_btn_ReadImage;
56                         wxSlider                        *_opacity;
57                         wxCheckBox                      *_interpolationCheckBox;
58                         wxCheckBox                      *_cb_ShowHide;
59                         wxCheckBox                      *_cb_SliceFixDinamic;
60                         wxSlider                        *_sl_SliceImage;
61                         void onReadImage(wxCommandEvent& event);
62                         void onThresholdChange(wxCommandEvent& event);
63                         void onThresholdShow(wxCommandEvent& event);
64                         void onThresholdInterpolation(wxCommandEvent& event);
65                         void onChangeOpacity(wxScrollEvent& event);
66                         void onSliceFixDinamic(wxCommandEvent& event);
67                         void onSliceImage(wxScrollEvent& event);
68                 };
69
70 #endif
71