resonance 1.0.1
Loading...
Searching...
No Matches
Rnd::Animatable::Filter Class Referenceabstract

One stage of the frame-number filter chain. More...

#include <animatable.h>

Inheritance diagram for Rnd::Animatable::Filter:

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.

Detailed Description

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.

Member Function Documentation

◆ Apply()

virtual float Rnd::Animatable::Filter::Apply ( float flValue)
pure virtual

Map a value forward through this stage.

Vtable slot 1. Pure. All five subclasses supply a body.

Parameters
flValueThe value to map.
Returns
The mapped value.

Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.

◆ Unapply()

virtual float Rnd::Animatable::Filter::Unapply ( float flValue)
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.

Parameters
flValueThe value to map.
Returns
The mapped value.
Ghidra address:
NTSC-U/C: 0x0049a560
Ghidra address:
PAL: 0x004d84c8

Reimplemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.

◆ Print()

virtual void Rnd::Animatable::Filter::Print ( Dbg & sink) const
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.

Parameters
sinkThe diagnostic sink to write to.

Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.

◆ Save()

virtual void Rnd::Animatable::Filter::Save ( Stream & stream)
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.

Parameters
streamThe stream to write to.

Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.

◆ Load()

virtual void Rnd::Animatable::Filter::Load ( Stream & stream)
pure virtual

Read this stage's parameters from stream.

Vtable slot 5. Pure.

Parameters
streamThe stream to read from.

Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.

◆ Type()

virtual int Rnd::Animatable::Filter::Type ( )
pure virtual

Report the type tag of this stage.

Vtable slot 6. Pure. The returned value is one of the FilterType constants.

Returns
The type tag.

Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.

◆ Copy()

virtual void Rnd::Animatable::Filter::Copy ( const Filter * pSource)
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.

Parameters
pSourceThe filter to copy the parameters of.

Implemented in Rnd::Animatable::FirstOrder, Rnd::Animatable::MinMaxLoop, Rnd::Animatable::ScaleOffset, Rnd::Animatable::SecondOrder, and Rnd::Animatable::ZeroOrder.


The documentation for this class was generated from the following file: