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

Stage that clamps the frame to a range, or wraps it around the range. More...

#include <rndanimatable.h>

Inheritance diagram for RndAnimatable::MinMaxLoop:
Collaboration diagram for RndAnimatable::MinMaxLoop:

Public Member Functions

float Apply (float fValue) override
 Clamp or wrap a frame.
float Unapply (float fValue) override
 Report the frame unchanged.
void Print (PrnStream &stream) const override
 Write the range and the loop flag.
void Save (BinStream &stream) override
 Write the range and the loop flag.
void Load (BinStream &stream) override
 Read the range and the loop flag.
int Type () override
 Report the type tag.
void Copy (const Filter *pSource) override
 Copy another stage.
void SetMin (float fMin)
void SetMax (float fMax)
void SetLoop (int nLoop)

Detailed Description

Stage that clamps the frame to a range, or wraps it around the range.

Member Function Documentation

◆ Apply()

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

Clamp or wrap a frame.

Parameters
fValueThe frame.
Returns
The frame in the range.
Ghidra address:
NTSC-U/C: 0x0021b890
Ghidra address:
PAL: 0x002246a8

Implements RndAnimatable::Filter.

◆ Unapply()

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

Report the frame unchanged.

Parameters
fValueThe filtered frame.
Returns
fValue.
Ghidra address:
NTSC-U/C: 0x0021b938
Ghidra address:
PAL: 0x00224750

Implements RndAnimatable::Filter.

◆ Print()

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

Write the range and the loop flag.

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

Implements RndAnimatable::Filter.

◆ Save()

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

Write the range and the loop flag.

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

Implements RndAnimatable::Filter.

◆ Load()

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

Read the range and the loop flag.

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

Implements RndAnimatable::Filter.

◆ Type()

int RndAnimatable::MinMaxLoop::Type ( )
inlineoverridevirtual

Report the type tag.

Returns
kFilterMinMaxLoop.
Ghidra address:
NTSC-U/C: 0x0037e978
Ghidra address:
PAL: 0x003ed090

Implements RndAnimatable::Filter.

◆ Copy()

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

Copy another stage.

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

Implements RndAnimatable::Filter.

◆ SetMin()

void RndAnimatable::MinMaxLoop::SetMin ( float fMin)
inline
Parameters
fMinThe lower end of the range.

◆ SetMax()

void RndAnimatable::MinMaxLoop::SetMax ( float fMax)
inline
Parameters
fMaxThe upper end of the range.

◆ SetLoop()

void RndAnimatable::MinMaxLoop::SetLoop ( int nLoop)
inline
Parameters
nLoopNon-zero to wrap around the range rather than clamp.

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