itom
4.1.0
|
Meta-information for Param of type DoubleArrayMeta. More...
#include <paramMeta.h>
Public Member Functions | |
DoubleArrayMeta (float64 minVal, float64 maxVal, float64 stepSize=0.0, ito::ByteArray category=ito::ByteArray()) | |
DoubleArrayMeta (float64 minVal, float64 maxVal, float64 stepSize, size_t numMin, size_t numMax, size_t numStepSize=1, ito::ByteArray category=ito::ByteArray()) | |
size_t | getNumMin () const |
returns minimum number of values | |
size_t | getNumMax () const |
returns maximum number of values | |
size_t | getNumStepSize () const |
returns step size of number of values | |
void | setNumMin (size_t val) |
sets the minimum number of values More... | |
void | setNumMax (size_t val) |
sets the maximum number of values More... | |
void | setNumStepSize (size_t val) |
sets the step size of the number of values More... | |
virtual bool | operator== (const ParamMeta &other) const |
Public Member Functions inherited from ito::DoubleMeta | |
DoubleMeta (float64 minVal, float64 maxVal, float64 stepSize=0.0, ito::ByteArray category=ito::ByteArray()) | |
constructor with minimum and maximum value | |
float64 | getMin () const |
returns minimum value | |
float64 | getMax () const |
returns maximum value | |
float64 | getStepSize () const |
returns step size | |
ito::ByteArray | getUnit () const |
returns unit | |
void | setUnit (const ito::ByteArray &unit) |
sets unit string of this parameter | |
int | getDisplayPrecision () const |
returns display precision | |
void | setDisplayPrecision (int displayPrecision) |
sets display precision | |
DoubleMeta::tDisplayNotation | getDisplayNotation () const |
returns display notation | |
void | setDisplayNotation (DoubleMeta::tDisplayNotation displayNotation) |
sets display notation | |
ParamMeta::tRepresentation | getRepresentation () const |
returns display representation | |
void | setRepresentation (ParamMeta::tRepresentation representation) |
sets display representation | |
void | setMin (float64 val) |
sets the minimum value More... | |
void | setMax (float64 val) |
sets the maximum value More... | |
void | setStepSize (float64 val) |
sets the step size More... | |
Public Member Functions inherited from ito::ParamMeta | |
ParamMeta (ito::ByteArray category=ito::ByteArray()) | |
default constructor with an unknown meta information type | |
ParamMeta (MetaRtti type, ito::ByteArray category=ito::ByteArray()) | |
constructor used by derived classes to indicate their real type | |
virtual | ~ParamMeta () |
destructor | |
MetaRtti | getType () const |
returns runtime type information value | |
ito::ByteArray | getCategory () const |
returns category name of this parameter (default: empty ByteArray) | |
void | setCategory (const ito::ByteArray &category) |
bool | operator!= (const ParamMeta &other) const |
Private Attributes | |
size_t | m_numMin |
size_t | m_numMax |
size_t | m_numStep |
Additional Inherited Members | |
Public Types inherited from ito::DoubleMeta | |
enum | tDisplayNotation { Automatic, Fixed, Scientific } |
Display notation style if the related parameters is displayed in any widget. More... | |
Public Types inherited from ito::ParamMeta | |
enum | MetaRtti { rttiUnknown = 0, rttiCharMeta = 1, rttiIntMeta = 2, rttiDoubleMeta = 3, rttiStringMeta = 4, rttiHWMeta = 5, rttiDObjMeta = 6, rttiIntArrayMeta = 7, rttiDoubleArrayMeta = 8, rttiCharArrayMeta = 9, rttiIntervalMeta = 10, rttiDoubleIntervalMeta = 11, rttiRangeMeta = 12, rttiRectMeta = 13 } |
Runtime type information. More... | |
enum | tRepresentation { Linear = 0x0001, Logarithmic = 0x0002, Boolean = 0x0004, PureNumber = 0x0008, HexNumber = 0x0010, IPV4Address = 0x0020, MACAddress = 0x0040, UnknownRepresentation = 0x0080 } |
The representation of number types indicates the type of widget that is suited best to display and change the value. More... | |
Static Public Member Functions inherited from ito::DoubleMeta | |
static DoubleMeta * | all (ito::ByteArray category=ito::ByteArray()) |
returns a new instance of DoubleMeta, where the min and max are set to the full range available for double. The caller has to take care of memory. | |
Protected Attributes inherited from ito::ParamMeta | |
MetaRtti | m_type |
ito::ByteArray | m_category |
optional category name of this parameter | |
Meta-information for Param of type DoubleArrayMeta.
An object of this class can be used to parametrize a parameter whose type is ito::ParamBase::DoubleArray. Since this meta information class is derived from ito::DoubleArray, it is possible to restrict each value to the single value contraints of ito::DoubleArray. Furthermore, this class allows restricting the minimum and maximum length of the array as well as the optional step size of the array's length.
void ito::DoubleArrayMeta::setNumMax | ( | size_t | val | ) |
sets the maximum number of values
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::DoubleArrayMeta::setNumMin | ( | size_t | val | ) |
sets the minimum number of values
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::DoubleArrayMeta::setNumStepSize | ( | size_t | val | ) |
sets the step size of the number of values
val | is the new step size, hence only discrete values [minVal, minVal+stepSize, minVal+2*stepSize...,maxVal] are allowed |