|
resonance 1.0.1
|
Filter stage that limits how far the value may move in one frame. More...
#include <animatable.h>


Public Member Functions | |
| ZeroOrder () | |
| Construct a stage with indeterminate parameters. | |
| ZeroOrder (float flLevel, float flMaxDelta) | |
| Construct a stage with both parameters set. | |
| virtual float | Apply (float flValue) |
| Advance mLevel towards the value by at most mMaxDelta. | |
| virtual float | Unapply (float flValue) |
| Report the mLevel that preceded an Apply() of the value. | |
| virtual void | Print (Dbg &sink) const |
| Write "(level:%.2f maxDelta:%.2f)" to sink. | |
| virtual void | Save (Stream &stream) |
| Write both parameters to stream. | |
| virtual void | Load (Stream &stream) |
| Read both parameters from stream. | |
| virtual int | Type () |
| Report kFilterZeroOrder. | |
| virtual void | Copy (const Filter *pSource) |
| Copy both parameters from pSource. | |
Filter stage that limits how far the value may move in one frame.
Its RTTI descriptor is at 0x00902040. It derives publicly from Filter at offset 0. The object is 0xc bytes, and its vtable is at 0x0081e8f0.
The stage is stateful. mLevel is both a parameter and the running output, and each Apply() advances it towards the incoming value by at most mMaxDelta.
|
inline |
Construct a stage with indeterminate parameters.
|
inline |
Construct a stage with both parameters set.
| flLevel | The starting output. |
| flMaxDelta | The largest step one Apply() may take. |
|
virtual |
Advance mLevel towards the value by at most mMaxDelta.
| flValue | The value to move towards. |
Implements Rnd::Animatable::Filter.
|
virtual |
Report the mLevel that preceded an Apply() of the value.
A value below mLevel means the last step moved down. The earlier level was therefore one step higher, and the reverse for a value above. An equal value reports mLevel unchanged.
| flValue | The value the last Apply() received. |
Reimplemented from Rnd::Animatable::Filter.
|
virtual |
Write "(level:%.2f maxDelta:%.2f)" to sink.
| sink | The diagnostic sink to write to. |
Implements Rnd::Animatable::Filter.
|
virtual |
Write both parameters to stream.
| stream | The stream to write to. |
Implements Rnd::Animatable::Filter.
|
virtual |
Read both parameters from stream.
| stream | The stream to read from. |
Implements Rnd::Animatable::Filter.
|
virtual |
Report kFilterZeroOrder.
Implements Rnd::Animatable::Filter.
|
virtual |
Copy both parameters from pSource.
| pSource | The ZeroOrder to copy. |
Implements Rnd::Animatable::Filter.