Stage that follows the frame like a damped spring.
More...
#include <rndanimatable.h>
|
| | 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) |
Stage that follows the frame like a damped spring.
◆ SecondOrder()
| RndAnimatable::SecondOrder::SecondOrder |
( |
| ) |
|
|
inline |
Construct a stage at rest.
Only the velocity is set. The constructor has no out-of-line copy.
◆ Apply()
| float RndAnimatable::SecondOrder::Apply |
( |
float | fValue | ) |
|
|
overridevirtual |
Advance the spring toward a frame.
- Parameters
-
- 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
-
| fValue | The 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
-
| stream | The 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
-
| stream | The 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
-
| stream | The 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
-
| pSource | The 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 |
◆ GetVel()
| float RndAnimatable::SecondOrder::GetVel |
( |
| ) |
const |
|
inline |
- Returns
- The current velocity.
◆ SetVel()
| void RndAnimatable::SecondOrder::SetVel |
( |
float | fVel | ) |
|
|
inline |
- Parameters
-
| fVel | The current velocity. |
◆ SetSpring()
| void RndAnimatable::SecondOrder::SetSpring |
( |
float | fSpring | ) |
|
|
inline |
- Parameters
-
| fSpring | The pull toward the frame. |
◆ SetDamper()
| void RndAnimatable::SecondOrder::SetDamper |
( |
float | fDamper | ) |
|
|
inline |
- Parameters
-
| fDamper | The drag on the velocity. |
The documentation for this class was generated from the following file: