]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfToolsPanels.h
#3322 creaContours Feature New Normal - Show reference contour Befor After actual...
[creaContours.git] / lib / Interface_Icons_NDimensions / interfToolsPanels.h
1 /*# ---------------------------------------------------------------------
2 #
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
4 #                        pour la Sant�)
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
8 #
9 #  This software is governed by the CeCILL-B license under French law and
10 #  abiding by the rules of distribution of free software. You can  use,
11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
12 #  license as circulated by CEA, CNRS and INRIA at the following URL
13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 #  or in the file LICENSE.txt.
15 #
16 #  As a counterpart to the access to the source code and  rights to copy,
17 #  modify and redistribute granted by the license, users are provided only
18 #  with a limited warranty  and the software's author,  the holder of the
19 #  economic rights,  and the successive licensors  have only  limited
20 #  liability.
21 #
22 #  The fact that you are presently reading this means that you have had
23 #  knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
25
26 #ifndef __interfToolsPanelH__
27 #define __interfToolsPanelH__
28
29 #include <string>
30 #include <wx/wx.h>
31 #include "mBarRange.h"
32 #include <wx/grid.h>
33
34 class interfConfigurationPanel
35         : public wxPanel
36 {
37 public:
38         interfConfigurationPanel(wxWindow * parent);
39         ~interfConfigurationPanel();
40 private:
41         void onWidthOfContour(wxScrollEvent& event);
42         void onBrigthnessColorWindowLevel(wxScrollEvent& event);
43         void OnInterpolation(wxCommandEvent& event);
44         void OnBeforAfterContour(wxCommandEvent& event);
45         wxSlider*       _withOfContourLine;
46         wxSlider*       _brithtnessWindowLevel;
47         wxSlider*       _brithtnessColorLevel;
48         wxCheckBox* _interpolationCheckBox;
49         wxCheckBox* _beforContourCheckBox;
50         wxCheckBox* _afterContourCheckBox;
51 };
52
53 class interfSpreadPanel
54         : public wxPanel
55 {
56 public:
57         interfSpreadPanel(wxWindow * parent);
58         ~interfSpreadPanel();
59     void appendStringSpread(std::string val);
60         void setStringSpread(std::string stringtemp);
61 private:
62         wxRadioBox      *_spreadMethodRadiobox;
63         wxStaticText    *_staticTextSpread;
64         wxTextCtrl      *_wxtextctrlSpread;
65         void onSpreadReset(wxCommandEvent& event);
66         void onSpreadAdd(wxCommandEvent& event);
67         void onSpreadAddAll(wxCommandEvent& event);
68         void onSpreadGo(wxCommandEvent& event);
69 };
70
71 class interfInformationPanel
72         : public wxPanel
73 {
74 public:
75         interfInformationPanel(wxWindow * parent);
76         ~interfInformationPanel();
77     void setStringInfoPanel(wxString tmpString);
78         void setRowLabelInfoPanel(int z,wxString tempString);
79         void appendCols(int numcols);
80         int getNumberCols();
81         void setCellValue(int z,int tmpIntA,wxString tempString);
82         void setColLabel(int tmpIntB,wxString tmpTitleString);
83         wxString getCellValue(int j,int i);
84 private:
85         mBarRange*              _mbarrangeRangeInformation;
86         mBarRange*              _mbarrangeSliceInformation;
87         wxGrid*                 _grid;
88         wxRadioBox*     _informationRadiobox;
89         wxRadioBox*     _radiolstboxContourGroup;
90         wxStaticText*   _staticTextInformation;
91         wxCheckBox*     _XYZValues;
92         wxCheckBox*     _contourImage;
93         wxCheckBox*     _statistics;
94         void onInformationContourLabels(wxCommandEvent& event);
95         void onExtractInformation(wxCommandEvent& event);
96         void onShowResultImages(wxCommandEvent& event);
97         void onSaveResults(wxCommandEvent& event);
98         void onContourGroup(wxCommandEvent& event);
99         void FillGridWithContoursInformation();
100         void onRangeSliceInformation(wxCommandEvent& event);
101 };
102
103
104 class interfFlipPanel
105         : public wxPanel
106 {
107 public:
108         interfFlipPanel(wxWindow * parent);             
109         ~interfFlipPanel();
110
111         wxRadioBox *_wichContoursRadioBox;
112
113 private:
114         void onFlipXPressed(wxCommandEvent& event);
115
116         void onFlipYPressed(wxCommandEvent& event);
117
118 };
119
120
121 //CMRU 29-08-09-----------------------------------------------------------------------------------------------
122 /**
123 * This class represents the calibration panel in the interface icons
124 */
125 class interfCalibrationPanel
126         : public wxPanel
127 {
128 public:
129
130         /**
131         * Initialized the panel
132         * @param parent Window who contains the panel
133         */
134         interfCalibrationPanel(wxWindow * parent);
135
136         ~interfCalibrationPanel();
137
138         /**
139         * Manages the event associated with the button of calibration
140         */
141         void onCalibrate(wxCommandEvent& event);
142
143 private:
144
145         /**
146         * Text field of the calibration measure
147         */
148         wxTextCtrl * _size;
149
150         /**
151         * Radio Box with the measurement units
152         */
153         wxRadioBox * _unitsRadiobox;
154 };
155
156 //------------------------------------------------------------------------------------------------------------
157
158 #endif
159
160