|
std::string | getDisplayValueString () override |
| Returns a string representation of the display value.
|
|
void | setDisplayValueString (std::string s) override |
| Always sets immediate value.
|
|
Param * | getParam () |
|
void | setValue (float value) override |
| Sets the target value of the Engine's smoothing algorithm, or immediate value if smoothing is disabled.
|
|
float | getValue () override |
| Gets the Param's smoothing target value, or immediate value if smoothing is disabled.
|
|
void | setImmediateValue (float value) |
| Sets the Param's value immediately without smoothing.
|
|
float | getImmediateValue () |
| Gets the Param's value post-smoothing.
|
|
float | getMinValue () override |
| Returns the minimum recommended value.
|
|
float | getMaxValue () override |
| Returns the maximum recommended value.
|
|
float | getDefaultValue () override |
| Returns the default value, for resetting.
|
|
float | getDisplayValue () override |
| Returns the value, transformed for displaying.
|
|
void | setDisplayValue (float displayValue) override |
| Always sets immediate value.
|
|
int | getDisplayPrecision () override |
| The number of total decimal places for generating the display value string.
|
|
std::string | getLabel () override |
| The name of the quantity.
|
|
std::string | getUnit () override |
| The unit abbreviation of the quantity.
|
|
void | reset () override |
| Resets the value to the default value.
|
|
void | randomize () override |
| Sets the value to a uniform random value between the bounds.
|
|
virtual std::string | getDescription () |
|
virtual json_t * | toJson () |
|
virtual void | fromJson (json_t *rootJ) |
|
DEPRECATED void | setSmoothValue (float value) |
| Deprecated.
|
|
DEPRECATED float | getSmoothValue () |
| Deprecated.
|
|
virtual | ~Quantity () |
|
virtual std::string | getString () |
| Returns a string representation of the quantity.
|
|
bool | isMin () |
| Checks whether the value is at the min value.
|
|
bool | isMax () |
| Checks whether the value is at the max value.
|
|
void | setMin () |
| Sets the value to the min value.
|
|
void | setMax () |
| Sets the value to the max value.
|
|
void | toggle () |
| Sets the value to max if the current value is min, otherwise sets the value to min.
|
|
void | moveValue (float deltaValue) |
| Adds an amount to the value.
|
|
float | getRange () |
| The difference between the max and min values.
|
|
bool | isBounded () |
| Checks whether the bounds are finite.
|
|
float | toScaled (float value) |
| Transforms a value to the range 0 to 1.
|
|
float | fromScaled (float scaledValue) |
| Transforms a value from the range 0 to 1.
|
|
void | setScaledValue (float scaledValue) |
| Sets value from the range 0 to 1.
|
|
float | getScaledValue () |
| Returns the value scaled to the range 0 to 1.
|
|
void | moveScaledValue (float deltaScaledValue) |
| Adds an amount to the value scaled to the range 0 to 1.
|
|