53 static std::string
form_args(
const std::string &
text,
const std::string &toggledText,
bool initiallyToggled){
54 if(!toggledText.length()){
57 std::ostringstream
str;
59 if(initiallyToggled)
str <<
'!';
65 Button(
const std::string &
text,
const std::string &toggledText=
"",
bool initiallyToggled=
false):
96 Slider(
int min=0,
int max=100,
int curr=50,
bool vertical=
false,
int stepping=1):
100 Slider(
const utils::Range32f &r,
int curr,
bool vertical=
false,
int stepping=1):
109 FSlider(
float min=0,
float max=1,
float curr=0.5,
bool vertical=
false):
113 FSlider(
const utils::Range32f &r,
float curr=0.5,
bool vertical=
false):
121 Int(
int min=0,
int max=100,
int curr=50):
129 Float(
float min=0,
float max=1,
float curr=0.5):
143 Disp(
int nxCells,
int nyCells):
181 static std::string
form_args(
const utils::Range32f xRange,
182 const utils::Range32f yRange,
bool useOpenGL,
183 const std::string &xLabel,
const std::string &yLabel){
184 std::ostringstream
str;
185 str << xRange.minVal <<
',' << xRange.maxVal <<
',' << yRange.minVal <<
',' << yRange.maxVal <<
',' 186 << (useOpenGL ?
"gl" :
"noGL");
188 str <<
',' << xLabel;
190 str <<
',' << yLabel;
204 Plot(
const utils::Range32f xRange=utils::Range32f(0,0),
205 const utils::Range32f yRange=utils::Range32f(0,0),
206 bool useOpenGL=
false,
207 const std::string &xLabel=
"",
208 const std::string &yLabel=
""):
213 Plot(
float minX,
float maxX=0,
float minY=0,
float maxY=0,
214 bool useOpenGL=
false,
215 const std::string &xLabel=
"",
216 const std::string &yLabel=
""):
217 GUIComponent(
"plot",
form_args(utils::Range32f(minX,maxX),utils::Range32f(minY,maxY), useOpenGL, xLabel, yLabel)){}
228 static std::string
form_args(
const std::string &entries,
int initialIndex){
229 if(!initialIndex)
return entries;
230 std::vector<std::string> ls =
utils::tok(entries,
",");
231 if(initialIndex < 0 || initialIndex >= (
int)ls.size()){
234 ls[initialIndex] =
'!' + ls[initialIndex];
239 Combo(
const std::string &commaSepEntries,
int initialIndex=0):
257 Fps(
int timeWindowSize=10):
272 static inline std::string
form_args(
const std::string &a,
const std::string &b){
273 std::ostringstream
str;
For a state log panel.
Definition: GUIComponents.h:322
ComboBox GUI component.
Definition: GUIComponents.h:225
Plot(float minX, float maxX=0, float minY=0, float maxY=0, bool useOpenGL=false, const std::string &xLabel="", const std::string &yLabel="")
Create Plot component with optionally given POD parameters.
Definition: GUIComponents.h:213
Combo(const std::string &commaSepEntries, int initialIndex=0)
Constructor with given comma separated list of initial entries.
Definition: GUIComponents.h:239
static std::string form_args_4(const A &a, const B &b, const C &c, const D &d)
utility method to concatenate 4 values
Definition: GUIComponent.h:83
undocument this line if you encounter any issues!
Definition: Any.h:37
Show()
Definition: GUIComponents.h:334
Prop(const utils::Configurable *cfg)
create configurable component from given configurable (pointer)
Definition: GUIComponents.h:297
Finalizes GUI creation (actually creates the Qt-GUI but initially hidden)
Definition: GUIComponents.h:338
Int(int min=0, int max=100, int curr=50)
create integer input component with given range and initial value
Definition: GUIComponents.h:121
Color selection component.
Definition: GUIComponents.h:307
Definition: GUIComponentWithOutput.h:39
ICLQt_API void text(ImgQ &image, int x, int y, const string &text)
renders a text into an image (only available with Qt-Support)
Propery adjustment component for configuable instances.
Definition: GUIComponents.h:292
Finalizes GUI creation (actually creates the Qt-GUI and makes it visible)
Definition: GUIComponents.h:333
Create()
Definition: GUIComponents.h:339
Float(float min=0, float max=1, float curr=0.5)
create float input component with given range and initial value
Definition: GUIComponents.h:129
ICLUtils_API std::string cat(const std::vector< std::string > &v)
concatinates at string-vector to a single string
Frames per second estimator component.
Definition: GUIComponents.h:255
Label(const std::string &text="")
create label with optionally given initial text
Definition: GUIComponents.h:88
Image visualization component.
Definition: GUIComponents.h:149
FSlider(const utils::Range32f &r, float curr=0.5, bool vertical=false)
creates a FSlider from given float-range
Definition: GUIComponents.h:113
String(const std::string &initText, int maxLen=100)
create string input compoent with given max length
Definition: GUIComponents.h:137
State(int maxLines=100)
create state widget
Definition: GUIComponents.h:324
Prop(const std::string &configurableID)
create configurable component reflecting the properties of the given Configurable instance
Definition: GUIComponents.h:294
Slider component for int-ranges.
Definition: GUIComponents.h:94
Dummy()
Definition: GUIComponents.h:329
static const Size VGA
Video Graphics Array res. 640x480.
Definition: Size.h:82
Text Input component, that allows integer inputs in a given range.
Definition: GUIComponents.h:119
CamCfg(const std::string &deviceTypeHint="", const std::string &deviceIDHint="")
create a camera configurabion component with optionally specified device
Definition: GUIComponents.h:284
static std::string form_args(const std::string &entries, int initialIndex)
utility method
Definition: GUIComponents.h:228
Slider(int min=0, int max=100, int curr=50, bool vertical=false, int stepping=1)
creates a slider with given POD parameters
Definition: GUIComponents.h:96
const GUIComponentWithOutput & label(const std::string &label) const
sets the component label
Definition: GUIComponentWithOutput.h:50
Image visualization compoent that allows for 2D and 3D image annotation.
Definition: GUIComponents.h:168
Size class of the ICL.
Definition: Size.h:61
Text Input component, that allows float inputs in a given range.
Definition: GUIComponents.h:127
Process status component.
Definition: GUIComponents.h:315
The GUIComponent class servers as a generic interface for GUI definitions.
Definition: GUIComponent.h:44
Image()
constructor
Definition: GUIComponents.h:151
static std::string form_args_3(const A &a, const B &b, const C &c)
utility method to concatenate 3 values
Definition: GUIComponent.h:75
CheckBox component.
Definition: GUIComponents.h:78
static std::string form_args(const std::string &a, const std::string &b)
utility method
Definition: GUIComponents.h:272
camera configuration component
Definition: GUIComponents.h:269
std::string str(const T &t)
convert a data type into a string using an std::ostringstream instance
Definition: StringUtils.h:136
SpinBox component.
Definition: GUIComponents.h:245
static std::string form_args_6(const A &a, const B &b, const C &c, const D &d, const E &e, const F &f)
utility method to concatenate 5 values
Definition: GUIComponent.h:99
Slider(const utils::Range32f &r, int curr, bool vertical=false, int stepping=1)
creates a slider from given int-range
Definition: GUIComponents.h:100
Draw3D(const utils::Size &defaultViewPortsize=utils::Size::VGA)
create Draw3D component with given defaultViewPortsize
Definition: GUIComponents.h:172
Text Input component, that allows float inputs with a given maximun length.
Definition: GUIComponents.h:135
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
Base class for Exception handling in the ICL.
Definition: Exception.h:42
Ps(int updatePFS=10)
create ps component with given update rate
Definition: GUIComponents.h:317
Float-valued Slider component.
Definition: GUIComponents.h:107
Disp(int nxCells, int nyCells)
Definition: GUIComponents.h:143
Fps(int timeWindowSize=10)
creates fps component with given time window for estimating a running-average of the computed FPS-val...
Definition: GUIComponents.h:257
static std::string form_args(const utils::Range32f xRange, const utils::Range32f yRange, bool useOpenGL, const std::string &xLabel, const std::string &yLabel)
utility method
Definition: GUIComponents.h:181
FSlider(float min=0, float max=1, float curr=0.5, bool vertical=false)
creates a FSlider with given POD parameters
Definition: GUIComponents.h:109
Prop(const utils::Configurable &cfg)
create configurable component from given configurable (reference)
Definition: GUIComponents.h:302
Creates not component.
Definition: GUIComponents.h:328
Display component for a 2D Array of labels.
Definition: GUIComponents.h:142
CheckBox(const std::string &label, bool checked=false)
create a check box component, optionally checked intially
Definition: GUIComponents.h:80
Spinner(int min, int max, int curr)
creat spinbox component with given range and initial value
Definition: GUIComponents.h:247
Simple generic data type implementation that uses a string based data representation.
Definition: Any.h:109
ColorSelect(int r, int g, int b, int a=-1)
create color selection component
Definition: GUIComponents.h:310
Plot(const utils::Range32f xRange=utils::Range32f(0, 0), const utils::Range32f yRange=utils::Range32f(0, 0), bool useOpenGL=false, const std::string &xLabel="", const std::string &yLabel="")
Create Plot component with optionally given range parameters.
Definition: GUIComponents.h:204
Draw(const utils::Size &defaultViewPortsize=utils::Size::VGA)
create draw component with given default view port size
Definition: GUIComponents.h:160
ICLUtils_API std::vector< std::string > tok(const std::string &s, const std::string &delims=" ", bool singleCharDelims=true, char escapeChar='\0')
tokenizes a string with given delimiters (internally using a temporary StrTok instance)
#define ICLASSERT_THROW(X, OBJ)
Definition: Macros.h:155
Label component for displaying text.
Definition: GUIComponents.h:86
Image visualization component that allows for overlayed 2D image annotation.
Definition: GUIComponents.h:156
a 2D function and data plotting component
Definition: GUIComponents.h:178