1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
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
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.
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
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 # ------------------------------------------------------------------------ */
26 #ifndef __interfToolsPanelH__
27 #define __interfToolsPanelH__
31 #include "mBarRange.h"
34 class interfConfigurationPanel
38 interfConfigurationPanel(wxWindow * parent);
39 ~interfConfigurationPanel();
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;
53 class interfSpreadPanel
57 interfSpreadPanel(wxWindow * parent);
59 void appendStringSpread(std::string val);
60 void setStringSpread(std::string stringtemp);
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);
71 class interfInformationPanel
75 interfInformationPanel(wxWindow * parent);
76 ~interfInformationPanel();
77 void setStringInfoPanel(wxString tmpString);
78 void setRowLabelInfoPanel(int z,wxString tempString);
79 void appendCols(int numcols);
81 void setCellValue(int z,int tmpIntA,wxString tempString);
82 void setColLabel(int tmpIntB,wxString tmpTitleString);
83 wxString getCellValue(int j,int i);
85 mBarRange* _mbarrangeRangeInformation;
86 mBarRange* _mbarrangeSliceInformation;
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);
104 class interfFlipPanel
108 interfFlipPanel(wxWindow * parent);
111 wxRadioBox *_wichContoursRadioBox;
114 void onFlipXPressed(wxCommandEvent& event);
116 void onFlipYPressed(wxCommandEvent& event);
121 //CMRU 29-08-09-----------------------------------------------------------------------------------------------
123 * This class represents the calibration panel in the interface icons
125 class interfCalibrationPanel
131 * Initialized the panel
132 * @param parent Window who contains the panel
134 interfCalibrationPanel(wxWindow * parent);
136 ~interfCalibrationPanel();
139 * Manages the event associated with the button of calibration
141 void onCalibrate(wxCommandEvent& event);
146 * Text field of the calibration measure
151 * Radio Box with the measurement units
153 wxRadioBox * _unitsRadiobox;
156 //------------------------------------------------------------------------------------------------------------