Filter stage that wraps or clamps the value into a range.
More...
#include <animatable.h>
|
| | MinMaxLoop () |
| | Construct a stage with indeterminate parameters.
|
| | MinMaxLoop (float flMin, float flMax, int nLoop) |
| | Construct a stage with all three parameters set.
|
| virtual float | Apply (float flValue) |
| | Bring the value into the range.
|
| virtual void | Print (Dbg &sink) const |
| | Write "(min:%.2f max:%.2f loop:true)" to sink, with mLoop as a word rather than a number.
|
| virtual void | Save (Stream &stream) |
| | Write the two ends as floats and mLoop as a single byte.
|
| virtual void | Load (Stream &stream) |
| | Read the two ends as floats and mLoop as a single byte.
|
| virtual int | Type () |
| | Report kFilterMinMaxLoop.
|
| virtual void | Copy (const Filter *pSource) |
| | Copy all three parameters from pSource.
|
| virtual float | Unapply (float flValue) |
| | Map a value back through this stage.
|
Filter stage that wraps or clamps the value into a range.
Its RTTI descriptor is at 0x008eee98. It derives publicly from Filter at offset 0. The object is 0x10 bytes, and its vtable is at 0x0081e938.
◆ MinMaxLoop() [1/2]
| Rnd::Animatable::MinMaxLoop::MinMaxLoop |
( |
| ) |
|
|
inline |
Construct a stage with indeterminate parameters.
- Ghidra address:
- NTSC-U/C: 0x004990b8
- Ghidra address:
- PAL: 0x004d7018
◆ MinMaxLoop() [2/2]
| Rnd::Animatable::MinMaxLoop::MinMaxLoop |
( |
float | flMin, |
|
|
float | flMax, |
|
|
int | nLoop ) |
|
inline |
Construct a stage with all three parameters set.
- Parameters
-
| flMin | The lower end of the range. |
| flMax | The upper end of the range. |
| nLoop | Non-zero to wrap into the range instead of clamping to it. |
- Ghidra address:
- NTSC-U/C: 0x004990d0
- Ghidra address:
- PAL: 0x004d7030
◆ Apply()
| virtual float Rnd::Animatable::MinMaxLoop::Apply |
( |
float | flValue | ) |
|
|
virtual |
Bring the value into the range.
A set mLoop wraps the value around the range, and a clear mLoop clamps it to the ends. The wrapping branch divides by zero when mMin equals mMax.
- Parameters
-
- Returns
- The value brought into the range.
- Ghidra address:
- NTSC-U/C: 0x0049a4b8
- Ghidra address:
- PAL: 0x004d8420
Implements Rnd::Animatable::Filter.
◆ Print()
| virtual void Rnd::Animatable::MinMaxLoop::Print |
( |
Dbg & | sink | ) |
const |
|
virtual |
Write "(min:%.2f max:%.2f loop:true)" to sink, with mLoop as a word rather than a number.
- Parameters
-
| sink | The diagnostic sink to write to. |
- Ghidra address:
- NTSC-U/C: 0x004990f0
- Ghidra address:
- PAL: 0x004d7050
Implements Rnd::Animatable::Filter.
◆ Save()
| virtual void Rnd::Animatable::MinMaxLoop::Save |
( |
Stream & | stream | ) |
|
|
virtual |
Write the two ends as floats and mLoop as a single byte.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x004991c8
- Ghidra address:
- PAL: 0x004d7128
Implements Rnd::Animatable::Filter.
◆ Load()
| virtual void Rnd::Animatable::MinMaxLoop::Load |
( |
Stream & | stream | ) |
|
|
virtual |
Read the two ends as floats and mLoop as a single byte.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x00499258
- Ghidra address:
- PAL: 0x004d71b8
Implements Rnd::Animatable::Filter.
◆ Type()
| virtual int Rnd::Animatable::MinMaxLoop::Type |
( |
| ) |
|
|
virtual |
Report kFilterMinMaxLoop.
- Returns
- The type tag.
- Ghidra address:
- NTSC-U/C: 0x004992e0
- Ghidra address:
- PAL: 0x004d7240
Implements Rnd::Animatable::Filter.
◆ Copy()
| virtual void Rnd::Animatable::MinMaxLoop::Copy |
( |
const Filter * | pSource | ) |
|
|
virtual |
Copy all three parameters from pSource.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x004992e8
- Ghidra address:
- PAL: 0x004d7248
Implements Rnd::Animatable::Filter.
◆ mMin
| float Rnd::Animatable::MinMaxLoop::mMin |
The lower end of the range.
◆ mMax
| float Rnd::Animatable::MinMaxLoop::mMax |
The upper end of the range.
The documentation for this class was generated from the following file: