]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfToolsPanels.h
no message
[creaContours.git] / lib / Interface_Icons_NDimensions / interfToolsPanels.h
1 #ifndef __interfToolsPanelH__
2 #define __interfToolsPanelH__
3
4 #include <string>
5 #include <wx/wx.h>
6 #include "mBarRange.h"
7 #include <wx/grid.h>
8
9 class interfConfigurationPanel
10         : public wxPanel
11 {
12 public:
13         interfConfigurationPanel(wxWindow * parent);
14         ~interfConfigurationPanel();
15
16
17
18 private:
19
20         void onWidthOfContour(wxScrollEvent& event);
21
22         void onBrigthnessColorWindowLevel(wxScrollEvent& event);
23
24         void OnInterpolation(wxCommandEvent& event);
25
26
27         wxSlider* _withOfContourLine;
28         wxSlider* _brithtnessWindowLevel;
29         wxSlider* _brithtnessColorLevel;
30         wxCheckBox* _interpolationCheckBox;
31
32 };
33
34 class interfSpreadPanel
35         : public wxPanel
36 {
37 public:
38         interfSpreadPanel(wxWindow * parent);
39         ~interfSpreadPanel();
40
41     void appendStringSpread(std::string val);
42         void setStringSpread(std::string stringtemp);
43 private:
44
45         wxRadioBox      *_spreadMethodRadiobox;
46         wxStaticText    *_staticTextSpread;
47         wxTextCtrl      *_wxtextctrlSpread;
48
49         void onSpreadReset(wxCommandEvent& event);
50         void onSpreadAdd(wxCommandEvent& event);
51         void onSpreadAddAll(wxCommandEvent& event);
52         void onSpreadGo(wxCommandEvent& event);
53
54
55
56 };
57
58 class interfInformationPanel
59         : public wxPanel
60 {
61 public:
62         interfInformationPanel(wxWindow * parent);
63         ~interfInformationPanel();
64
65     void setStringInfoPanel(wxString tmpString);
66         void setRowLabelInfoPanel(int z,wxString tempString);
67         void appendCols(int numcols);
68         int getNumberCols();
69         void setCellValue(int z,int tmpIntA,wxString tempString);
70         void setColLabel(int tmpIntB,wxString tmpTitleString);
71         wxString getCellValue(int j,int i);
72 private:
73
74         mBarRange* _mbarrangeRangeInformation;
75         mBarRange* _mbarrangeSliceInformation;
76         wxGrid* _grid;
77         wxRadioBox* _informationRadiobox;
78         wxRadioBox* _radiolstboxContourGroup;
79         wxStaticText* _staticTextInformation;
80         wxCheckBox* _XYZValues;
81         wxCheckBox* _contourImage;
82         wxCheckBox* _statistics;
83
84         void onInformationContourLabels(wxCommandEvent& event);
85         void onExtractInformation(wxCommandEvent& event);
86         void onShowResultImages(wxCommandEvent& event);
87         void onSaveResults(wxCommandEvent& event);
88         void onContourGroup(wxCommandEvent& event);
89         void FillGridWithContoursInformation();
90         void onRangeSliceInformation(wxCommandEvent& event);
91
92
93
94
95 };
96 //CMRU 29-08-09-----------------------------------------------------------------------------------------------
97 /**
98 * This class represents the calibration panel in the interface icons
99 */
100 class interfCalibrationPanel
101         : public wxPanel
102 {
103 public:
104
105         /**
106         * Initialized the panel
107         * @param parent Window who contains the panel
108         */
109         interfCalibrationPanel(wxWindow * parent);
110
111         ~interfCalibrationPanel();
112
113         /**
114         * Manages the event associated with the button of calibration
115         */
116         void onCalibrate(wxCommandEvent& event);
117
118 private:
119
120         /**
121         * Text field of the calibration measure
122         */
123         wxTextCtrl * _size;
124
125         /**
126         * Radio Box with the measurement units
127         */
128         wxRadioBox * _unitsRadiobox;
129 };
130 //------------------------------------------------------------------------------------------------------------
131 #endif
132
133