]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.h
Improved the image superposition, adding optional base colors, grey level boundaries...
[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
51                 private:
52                         int                             _dimBase[3];
53                         double                          _spcBase[3];
54                         double                          _spcOrg[3];
55
56                         bool                            _thresholdGo;
57                         ColorLayerImageView             *_colorLayerImageView;
58                         wxButton                        *_btn_ReadImage;
59                         wxSlider                        *_opacity;
60                         wxCheckBox                      *_interpolationCheckBox;
61                         wxCheckBox                      *_cb_ShowHide;
62                         wxCheckBox                      *_cb_SliceFixDinamic;
63                         wxSlider                        *_sl_SliceImage;
64                         void onReadImage(wxCommandEvent& event);
65                         void onThresholdChange(wxCommandEvent& event);
66                         void onThresholdShow(wxCommandEvent& event);
67                         void onThresholdInterpolation(wxCommandEvent& event);
68                         void onChangeOpacity(wxScrollEvent& event);
69                         void onSliceFixDinamic(wxCommandEvent& event);
70                         void onSliceImage(wxScrollEvent& event);
71
72 };
73
74 #endif
75