creaContours_lib
interfToolsPanels.h
Go to the documentation of this file.
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 
35  : public wxPanel
36 {
37 public:
38  interfConfigurationPanel(wxWindow * parent);
40 
41 
42 
43 private:
44 
45  void onWidthOfContour(wxScrollEvent& event);
46 
47  void onBrigthnessColorWindowLevel(wxScrollEvent& event);
48 
49  void OnInterpolation(wxCommandEvent& event);
50 
51 
52  wxSlider* _withOfContourLine;
56 
57 };
58 
60  : public wxPanel
61 {
62 public:
63  interfSpreadPanel(wxWindow * parent);
65 
66  void appendStringSpread(std::string val);
67  void setStringSpread(std::string stringtemp);
68 private:
69 
70  wxRadioBox *_spreadMethodRadiobox;
71  wxStaticText *_staticTextSpread;
72  wxTextCtrl *_wxtextctrlSpread;
73 
74  void onSpreadReset(wxCommandEvent& event);
75  void onSpreadAdd(wxCommandEvent& event);
76  void onSpreadAddAll(wxCommandEvent& event);
77  void onSpreadGo(wxCommandEvent& event);
78 
79 
80 
81 };
82 
84  : public wxPanel
85 {
86 public:
87  interfInformationPanel(wxWindow * parent);
89 
90  void setStringInfoPanel(wxString tmpString);
91  void setRowLabelInfoPanel(int z,wxString tempString);
92  void appendCols(int numcols);
93  int getNumberCols();
94  void setCellValue(int z,int tmpIntA,wxString tempString);
95  void setColLabel(int tmpIntB,wxString tmpTitleString);
96  wxString getCellValue(int j,int i);
97 private:
98 
101  wxGrid* _grid;
102  wxRadioBox* _informationRadiobox;
104  wxStaticText* _staticTextInformation;
105  wxCheckBox* _XYZValues;
106  wxCheckBox* _contourImage;
107  wxCheckBox* _statistics;
108 
109  void onInformationContourLabels(wxCommandEvent& event);
110  void onExtractInformation(wxCommandEvent& event);
111  void onShowResultImages(wxCommandEvent& event);
112  void onSaveResults(wxCommandEvent& event);
113  void onContourGroup(wxCommandEvent& event);
115  void onRangeSliceInformation(wxCommandEvent& event);
116 
117 
118 
119 
120 };
121 //CMRU 29-08-09-----------------------------------------------------------------------------------------------
126  : public wxPanel
127 {
128 public:
129 
134  interfCalibrationPanel(wxWindow * parent);
135 
137 
141  void onCalibrate(wxCommandEvent& event);
142 
143 private:
144 
148  wxTextCtrl * _size;
149 
153  wxRadioBox * _unitsRadiobox;
154 };
155 //------------------------------------------------------------------------------------------------------------
156 #endif
157 
158