wavelength 1.0.0
Loading...
Searching...
No Matches
RndAnimatable::SecondOrder Class Reference

Stage that follows the frame like a damped spring. More...

#include <rndanimatable.h>

Inheritance diagram for RndAnimatable::SecondOrder:
Collaboration diagram for RndAnimatable::SecondOrder:

Public Member Functions

 SecondOrder ()
 Construct a stage at rest.
float Apply (float fValue) override
 Advance the spring toward a frame.
float Unapply (float fValue) override
 Report the level one step back.
void Print (PrnStream &stream) const override
 Write the level, the spring, the damper, and the velocity.
void Save (BinStream &stream) override
 Write the level, the spring, and the damper.
void Load (BinStream &stream) override
 Read the level, the spring, and the damper.
int Type () override
 Report the type tag.
void Copy (const Filter *pSource) override
 Copy another stage.
float GetLevel () const
void SetLevel (float fLevel)
float GetVel () const
void SetVel (float fVel)
void SetSpring (float fSpring)
void SetDamper (float fDamper)

Detailed Description

Stage that follows the frame like a damped spring.

Constructor & Destructor Documentation

◆ SecondOrder()

RndAnimatable::SecondOrder::SecondOrder ( )
inline

Construct a stage at rest.

Only the velocity is set. The constructor has no out-of-line copy.

Member Function Documentation

◆ Apply()

float RndAnimatable::SecondOrder::Apply ( float fValue)
overridevirtual

Advance the spring toward a frame.

Parameters
fValueThe frame.
Returns
The new level.
Ghidra address:
NTSC-U/C: 0x0021b9d0
Ghidra address:
PAL: 0x002247e8

Implements RndAnimatable::Filter.

◆ Unapply()

float RndAnimatable::SecondOrder::Unapply ( float fValue)
overridevirtual

Report the level one step back.

Parameters
fValueThe filtered frame. The routine ignores it.
Returns
The level less the velocity.
Ghidra address:
NTSC-U/C: 0x0021ba08
Ghidra address:
PAL: 0x00224820

Implements RndAnimatable::Filter.

◆ Print()

void RndAnimatable::SecondOrder::Print ( PrnStream & stream) const
overridevirtual

Write the level, the spring, the damper, and the velocity.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x0021c3b8
Ghidra address:
PAL: 0x002251d0

Implements RndAnimatable::Filter.

◆ Save()

void RndAnimatable::SecondOrder::Save ( BinStream & stream)
inlineoverridevirtual

Write the level, the spring, and the damper.

The velocity is not written.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x0037ebc8
Ghidra address:
PAL: 0x003ed2e0

Implements RndAnimatable::Filter.

◆ Load()

void RndAnimatable::SecondOrder::Load ( BinStream & stream)
inlineoverridevirtual

Read the level, the spring, and the damper.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x0037ec40
Ghidra address:
PAL: 0x003ed358

Implements RndAnimatable::Filter.

◆ Type()

int RndAnimatable::SecondOrder::Type ( )
inlineoverridevirtual

Report the type tag.

Returns
kFilterSecondOrder.
Ghidra address:
NTSC-U/C: 0x0037eca0
Ghidra address:
PAL: 0x003ed3b8

Implements RndAnimatable::Filter.

◆ Copy()

void RndAnimatable::SecondOrder::Copy ( const Filter * pSource)
inlineoverridevirtual

Copy another stage.

Parameters
pSourceThe stage to copy from.
Ghidra address:
NTSC-U/C: 0x0037eca8
Ghidra address:
PAL: 0x003ed3c0

Implements RndAnimatable::Filter.

◆ GetLevel()

float RndAnimatable::SecondOrder::GetLevel ( ) const
inline
Returns
The current level.

◆ SetLevel()

void RndAnimatable::SecondOrder::SetLevel ( float fLevel)
inline
Parameters
fLevelThe current level.

◆ GetVel()

float RndAnimatable::SecondOrder::GetVel ( ) const
inline
Returns
The current velocity.

◆ SetVel()

void RndAnimatable::SecondOrder::SetVel ( float fVel)
inline
Parameters
fVelThe current velocity.

◆ SetSpring()

void RndAnimatable::SecondOrder::SetSpring ( float fSpring)
inline
Parameters
fSpringThe pull toward the frame.

◆ SetDamper()

void RndAnimatable::SecondOrder::SetDamper ( float fDamper)
inline
Parameters
fDamperThe drag on the velocity.

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