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