itom 2.2.0
|
Meta-information for Param of type Int. More...
#include <paramMeta.h>
Public Member Functions | |
IntMeta (int32 minVal, int32 maxVal, int32 stepSize=1) | |
constructor with minimum and maximum value as well as optional step size (default: 1) | |
int32 | getMin () const |
returns minimum value | |
int32 | getMax () const |
returns maximum value | |
int32 | getStepSize () const |
returns step size | |
void | setMin (int32 val) |
sets the minimum value | |
void | setMax (int32 val) |
sets the maximum value | |
void | setStepSize (int32 val) |
sets the step size | |
Static Public Member Functions | |
static IntMeta * | all () |
returns a new instance of IntMeta, where the min and max are set to the full range available for integers. | |
Private Attributes | |
int32 | m_minVal |
int32 | m_maxVal |
int32 | m_stepSize |
Meta-information for Param of type Int.
An object of this class can be used to parametrize a parameter whose type is ito::ParamBase::Int. If set, the given integer number can be limited with respect to given minimum and maximum values as well as an optional step size (default: 1).
void ito::IntMeta::setMax | ( | int32 | val | ) |
sets the maximum value
val | is the new maximum value, if this is smaller than the current minimum value, the minimum value is changed to val, too |
void ito::IntMeta::setMin | ( | int32 | val | ) |
sets the minimum value
val | is the new minimum value, if this is bigger than the current maximum value, the maximum value is changed to val, too |
void ito::IntMeta::setStepSize | ( | int32 | val | ) |
sets the step size
val | is the new step size, hence only discrete values [minVal, minVal+stepSize, minVal+2*stepSize...,maxVal] are allowed |