class RFK::UserVariable

Describes a user variable. More...

#include <RFKTutorialApplication.h>

Inherits: Object.

Public functions:

UserVariable ( )

Public variables:

bool_b
char_c
char_cmax
char_cmin
char_cstep
double_d
double_dmax
double_dmin
double_dstep
float_f
RED::String_file_extensions
float_fmax
float_fmin
float_fstep
int_i
int_imax
int_imin
int_istep
RED::Vector< RED::String >_list
int_list_current_index
RED::String_name
short_s
short_smax
short_smin
short_sstep
RED::String_string
UVAR_TYPE_type
UVAR_WIDGET_widget

Detailed description:

Describes a user variable.

A user variable is added to a vector of variables that is set using RFK::TutorialApplication::SetUserVariables. A user variable can be then modified, thus generating a RFK::EVT_UVAR event, to which a callback can be associated.

A user variable has a _type and a _name to identify it. Depending on the variable type, the minimal value of the variable, its maximal value and modification steps must be supplied. Thus a floating point value should fill _fmin, _fmax, _fstep and _f for the actual variable value.

If the variable is set for viewing only, then _widget should be set to RFK::UVW_VIEW.

Functions documentation

Default construction method.

Variables documentation

Value of the variable.

Value of the variable.

Maximal value of the variable.

Minimal value of the variable.

Edition step of the variable.

public double RFK::UserVariable::_d

Value of the variable.

Maximal value of the variable.

Minimal value of the variable.

Edition step of the variable.

Value of the variable.

Maximal value of the variable.

Minimal value of the variable.

Edition step of the variable.

Value of the variable.

Maximal value of the variable.

Minimal value of the variable.

Edition step of the variable.

Strings list for a UVT_LIST variable.

Currently selected string in the list for a UVT_LIST variable.

Name of the user variable.

Value of the variable.

Maximal value of the variable.

Minimal value of the variable.

Edition step of the variable.

String for the UVT_STRING and UVT_FILE variable.

Type of the user variable.

Edition widget of the variable (can be a slider or a numerical input for instance).