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