25 #ifndef __PANEL_FOR_DOUBLE_VALUE_WX_HH_
26 #define __PANEL_FOR_DOUBLE_VALUE_WX_HH_
28 #include <bias_config.h>
30 #include <wx/stattext.h>
31 #include <wx/textctrl.h>
32 #include <wx/spinbutt.h>
33 #include <wx/spinctrl.h>
34 #include <wx/slider.h>
49 wxWindowID
id = wxID_ANY,
50 const wxString& label = wxT(
"LABEL:"),
51 const double minlimit = 0.0,
52 const double maxlimit = 1.0,
53 const double initialval = 0.5,
54 const int stepsize = 10000,
55 const wxPoint& pos = wxDefaultPosition,
56 const wxSize& size = wxDefaultSize,
57 long style = wxTAB_TRAVERSAL);
63 double GetParamValue()
const;
68 double GetParamMaxLimit()
const;
73 double GetParamMinLimit()
const;
79 int GetStepSize()
const;
85 bool SetParamMaxLimit(
const double maxlimit);
91 bool SetParamMinLimit(
const double minlimit);
96 void SetParamLabel(
const wxString& label);
102 void SetStepSize(
const int stepsize);
107 void OnTextCtrl(wxCommandEvent& event);
108 void OnSlider(wxCommandEvent& event);
109 void OnSpinCtrl(wxSpinEvent& event);
112 wxBoxSizer* MainSizer;
115 wxStaticText* StepSizeLabel;
116 wxTextCtrl* TextCtrl;
118 wxSpinCtrl* SpinCtrl;
121 double TextCtrlValue;
122 double ParamMaxLimit;
123 double ParamMinLimit;
126 ID_TEXT_CTRL = 358426,
135 #endif // __PANEL_FOR_DOUBLE_VALUE_WX_HH_
Helper Class For Parameter Input To Take Floating Point Numbers.
does a connected component analysis and labels all connected regions