|
resonance 1.0.1
|
One stage of the frame-number filter chain. More...
#include <animatable.h>

Public Member Functions | |
| virtual float | Apply (float flValue)=0 |
| Map a value forward through this stage. | |
| virtual float | Unapply (float flValue) |
| Map a value back through this stage. | |
| virtual void | Print (Dbg &sink) const =0 |
| Write this stage's parameters to sink. | |
| virtual void | Save (Stream &stream)=0 |
| Write this stage's parameters to stream. | |
| virtual void | Load (Stream &stream)=0 |
| Read this stage's parameters from stream. | |
| virtual int | Type ()=0 |
| Report the type tag of this stage. | |
| virtual void | Copy (const Filter *pSource)=0 |
| Replace this stage's parameters with those of pSource. | |
One stage of the frame-number filter chain.
Its RTTI descriptor is at 0x0086f710. It is a leaf class with no base. No accessor of its own builds that descriptor. Every derived accessor initialises it inline before its own, and the copy at 0x0040f540 builds it alone.
The class declares no data member. A derived filter therefore stores its vptr at +0x00 and its parameters from +0x04. Every vtable in the family is eight entries, and the declaration order below reproduces that order. The class emits no vtable of its own and appears in none of the five tables. That absence is consistent with an abstract class the program never instantiates.
The class declares no destructor, virtual or otherwise. ~Animatable() destroys a filter through a bare operator delete with no vtable dispatch at all. A trivially destructible filter compiles to exactly that.
|
pure virtual |
Map a value forward through this stage.
Vtable slot 1. Pure. All five subclasses supply a body.
| flValue | The value to map. |
Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.
|
virtual |
Map a value back through this stage.
Vtable slot 2. The base implementation returns the value unchanged, and MinMaxLoop is the one subclass that inherits it. The alternative reading, that 0x0049a560 is MinMaxLoop's own override and this slot is pure as well, produces identical behaviour and cannot be ruled out from the image.
| flValue | The value to map. |
Reimplemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.
|
pure virtual |
Write this stage's parameters to sink.
Vtable slot 3. Pure. Dbg::Print() discards its text in the shipped build. No subclass produces output on this target.
| sink | The diagnostic sink to write to. |
Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.
|
pure virtual |
Write this stage's parameters to stream.
Vtable slot 4. Pure. The type tag is written by the list writer rather than here.
| stream | The stream to write to. |
Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.
|
pure virtual |
Read this stage's parameters from stream.
Vtable slot 5. Pure.
| stream | The stream to read from. |
Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.
|
pure virtual |
Report the type tag of this stage.
Vtable slot 6. Pure. The returned value is one of the FilterType constants.
Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.
|
pure virtual |
Replace this stage's parameters with those of pSource.
Vtable slot 7. Pure. Every subclass body is a block copy of the whole object, the vtable pointer included. The argument must therefore already be of this stage's own type. Only Animatable::Copy() invokes it, and it pairs the call with NewFilter() on the source tag.
| pSource | The filter to copy the parameters of. |
Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.