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