|
|
using | Setter = void(Obj::*)(float) |
| |
|
using | Getter = float(Obj::*)() const |
| |
|
|
| ParameterSlot (Obj *obj, Setter set, Getter get) |
| |
| float | get () override |
| | Returns value (typically between 0 and 1, may vary depending on class).
|
| |
| float | put (float v) override |
| | Pushes value into the unit.
|
| |
|
| operator float () |
| | Object can be used directly to access its value.
|
| |
| virtual float | mapTo (float toLow, float toHigh) |
| | Maps value to new range.
|
| |
|
| operator bool () |
| | Operator that allows usage in conditional expressions.
|
| |
|
|
static bool | analogToDigital (float f) |
| | Converts analog (float) value to digital (bool) value.
|
| |
|
static float | digitalToAnalog (bool b) |
| | Converts digital (bool) value to analog (float) value.
|
| |
◆ get()
Returns value (typically between 0 and 1, may vary depending on class).
Reimplemented from pq::Flowable.
◆ mapTo()
| virtual float pq::Flowable::mapTo |
( |
float |
toLow, |
|
|
float |
toHigh |
|
) |
| |
|
inlinevirtualinherited |
◆ put()
Pushes value into the unit.
- Parameters
-
| value | the value sent to the unit |
- Returns
- the new value of the unit
Reimplemented from pq::Flowable.
The documentation for this class was generated from the following file:
- /home/tats/Documents/workspace/Plaquette/src/PqCore.h