]> 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 OnShowTextContour(wxCommandEvent& event);
45         void OnBeforAfterContour(wxCommandEvent& event);
46         wxSlider*       _withOfContourLine;
47         wxSlider*       _brithtnessWindowLevel;
48         wxSlider*       _brithtnessColorLevel;
49         wxCheckBox* _interpolationCheckBox;
50         wxCheckBox* _showTextContourCheckBox;
51         wxCheckBox* _beforContourCheckBox;
52         wxCheckBox* _afterContourCheckBox;
53 };
54
55 class interfSpreadPanel
56         : public wxPanel
57 {
58 public:
59         interfSpreadPanel(wxWindow * parent);
60         ~interfSpreadPanel();
61     void appendStringSpread(std::string val);
62         void setStringSpread(std::string stringtemp);
63 private:
64         wxRadioBox      *_spreadMethodRadiobox;
65         wxStaticText    *_staticTextSpread;
66         wxTextCtrl      *_wxtextctrlSpread;
67         void onSpreadReset(wxCommandEvent& event);
68         void onSpreadAdd(wxCommandEvent& event);
69         void onSpreadAddAll(wxCommandEvent& event);
70         void onSpreadGo(wxCommandEvent& event);
71 };
72
73 class interfInformationPanel
74         : public wxPanel
75 {
76 public:
77         interfInformationPanel(wxWindow * parent);
78         ~interfInformationPanel();
79     void setStringInfoPanel(wxString tmpString);
80         void setRowLabelInfoPanel(int z,wxString tempString);
81         void appendCols(int numcols);
82         int getNumberCols();
83         void setCellValue(int z,int tmpIntA,wxString tempString);
84         void setColLabel(int tmpIntB,wxString tmpTitleString);
85         wxString getCellValue(int j,int i);
86 private:
87         mBarRange*              _mbarrangeRangeInformation;
88         mBarRange*              _mbarrangeSliceInformation;
89         wxGrid*                 _grid;
90         wxRadioBox*     _informationRadiobox;
91         wxRadioBox*     _radiolstboxContourGroup;
92         wxStaticText*   _staticTextInformation;
93         wxCheckBox*     _XYZValues;
94         wxCheckBox*     _contourImage;
95         wxCheckBox*     _statistics;
96         void onInformationContourLabels(wxCommandEvent& event);
97         void onExtractInformation(wxCommandEvent& event);
98         void onShowResultImages(wxCommandEvent& event);
99         void onSaveResults(wxCommandEvent& event);
100         void onContourGroup(wxCommandEvent& event);
101         void FillGridWithContoursInformation();
102         void onRangeSliceInformation(wxCommandEvent& event);
103 };
104
105
106 class interfFlipPanel
107         : public wxPanel
108 {
109 public:
110         interfFlipPanel(wxWindow * parent);             
111         ~interfFlipPanel();
112
113         wxRadioBox *_wichContoursRadioBox;
114
115 private:
116         void onFlipXPressed(wxCommandEvent& event);
117
118         void onFlipYPressed(wxCommandEvent& event);
119
120 };
121
122
123 //CMRU 29-08-09-----------------------------------------------------------------------------------------------
124 /**
125 * This class represents the calibration panel in the interface icons
126 */
127 class interfCalibrationPanel
128         : public wxPanel
129 {
130 public:
131
132         /**
133         * Initialized the panel
134         * @param parent Window who contains the panel
135         */
136         interfCalibrationPanel(wxWindow * parent);
137
138         ~interfCalibrationPanel();
139
140         /**
141         * Manages the event associated with the button of calibration
142         */
143         void onCalibrate(wxCommandEvent& event);
144
145 private:
146
147         /**
148         * Text field of the calibration measure
149         */
150         wxTextCtrl * _size;
151
152         /**
153         * Radio Box with the measurement units
154         */
155         wxRadioBox * _unitsRadiobox;
156 };
157
158 //------------------------------------------------------------------------------------------------------------
159
160 #endif
161
162