Description of a Parameter.
More...
#include <vstparameters.h>
|
| | Parameter () |
| |
| | Parameter (const ParameterInfo &) |
| |
| | Parameter (const TChar *title, ParamID tag, const TChar *units=0, ParamValue defaultValueNormalized=0., int32 stepCount=0, int32 flags=ParameterInfo::kCanAutomate, UnitID unitID=kRootUnitId) |
| |
| virtual | ~Parameter () |
| |
| const ParameterInfo & | getInfo () const |
| | Returns its readonly info. More...
|
| |
| ParameterInfo & | getInfo () |
| | Returns its writeable info. More...
|
| |
| void | setUnitID (UnitID id) |
| | Sets its associated UnitId. More...
|
| |
| UnitID | getUnitID () |
| | Gets its associated UnitId. More...
|
| |
| ParamValue | getNormalized () const |
| | Gets its normalized value [0.0, 1.0]. More...
|
| |
| virtual bool | setNormalized (ParamValue v) |
| | Sets its normalized value [0.0, 1.0]. More...
|
| |
| virtual void | toString (ParamValue valueNormalized, String128 string) const |
| | Converts a normalized value to a string. More...
|
| |
| virtual bool | fromString (const TChar *string, ParamValue &valueNormalized) const |
| | Converts a string to a normalized value. More...
|
| |
| virtual ParamValue | toPlain (ParamValue valueNormalized) const |
| | Converts a normalized value to plain value (e.g. More...
|
| |
| virtual ParamValue | toNormalized (ParamValue plainValue) const |
| | Converts a plain value to a normalized value (e.g. More...
|
| |
| int32 | getPrecision () const |
| | Gets the current precision (used for string representation of float). More...
|
| |
| void | setPrecision (int32 val) |
| | Sets the precision for string representation of float value (for example 4.34 with 2 as precision). More...
|
| |
Description of a Parameter.
Returns its readonly info.
Returns its writeable info.
Sets its associated UnitId.
Gets its associated UnitId.
Gets its normalized value [0.0, 1.0].
Sets its normalized value [0.0, 1.0].
| bool fromString |
( |
const TChar * |
string, |
|
|
ParamValue & |
valueNormalized |
|
) |
| const |
|
virtual |
| int32 getPrecision |
( |
| ) |
const |
|
inline |
Gets the current precision (used for string representation of float).
| void setPrecision |
( |
int32 |
val | ) |
|
|
inline |
Sets the precision for string representation of float value (for example 4.34 with 2 as precision).