Manages the very common case when a param represents a boolean value.
More...
#include <ParamConverters.h>
Inherits IParamConverter< bool >.
|
| static bool | toBoolean (ParamValue iNormalizedValue) |
| | Converts a normalized value to a boolean according to the rule: false for [0.0, 0.5[ and true for [0.5, 1.0] More...
|
| |
Manages the very common case when a param represents a boolean value.
To denormalize the range [0.0,1.0] this implementation uses false for [0.0, 0.5[ and true for [0.5, 1.0] so that it matches a DiscreteValueParamConverter with a step count of 1.
◆ BooleanParamConverter()
◆ denormalize()
| bool denormalize |
( |
ParamValue |
iNormalizedValue | ) |
const |
|
inlineoverridevirtual |
◆ getStepCount()
| int32 getStepCount |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ normalize()
| ParamValue normalize |
( |
bool const & |
iValue | ) |
const |
|
inlineoverridevirtual |
◆ toBoolean()
| static bool toBoolean |
( |
ParamValue |
iNormalizedValue | ) |
|
|
inlinestatic |
Converts a normalized value to a boolean according to the rule: false for [0.0, 0.5[ and true for [0.5, 1.0]
◆ toString()
| void toString |
( |
bool const & |
iValue, |
|
|
String128 |
oString, |
|
|
int32 |
|
|
) |
| const |
|
inlineoverridevirtual |
◆ fFalseString
◆ fTrueString
The documentation for this class was generated from the following file: