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

Stage that scales the frame and adds an offset. More...

#include <rndanimatable.h>

Inheritance diagram for RndAnimatable::ScaleOffset:
Collaboration diagram for RndAnimatable::ScaleOffset:

Public Member Functions

float Apply (float fValue) override
 Scale and offset a frame.
float Unapply (float fValue) override
 Remove the offset and the scale.
void Print (PrnStream &stream) const override
 Write the scale and the offset.
void Save (BinStream &stream) override
 Write the scale and the offset.
void Load (BinStream &stream) override
 Read the scale and the offset.
int Type () override
 Report the type tag.
void Copy (const Filter *pSource) override
 Copy another stage.
void SetOffset (float fOffset)
float GetOffset () const
float GetScale () const
void SetScale (float fScale)

Detailed Description

Stage that scales the frame and adds an offset.

Member Function Documentation

◆ Apply()

float RndAnimatable::ScaleOffset::Apply ( float fValue)
inlineoverridevirtual

Scale and offset a frame.

Parameters
fValueThe frame.
Returns
The frame times mScale plus mOffset.
Ghidra address:
NTSC-U/C: 0x0037e770
Ghidra address:
PAL: 0x003ecea0

Implements RndAnimatable::Filter.

◆ Unapply()

float RndAnimatable::ScaleOffset::Unapply ( float fValue)
inlineoverridevirtual

Remove the offset and the scale.

Parameters
fValueThe filtered frame.
Returns
The frame.
Ghidra address:
NTSC-U/C: 0x0037e788
Ghidra address:
PAL: 0x003eceb8

Implements RndAnimatable::Filter.

◆ Print()

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

Write the scale and the offset.

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

Implements RndAnimatable::Filter.

◆ Save()

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

Write the scale and the offset.

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

Implements RndAnimatable::Filter.

◆ Load()

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

Read the scale and the offset.

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

Implements RndAnimatable::Filter.

◆ Type()

int RndAnimatable::ScaleOffset::Type ( )
inlineoverridevirtual

Report the type tag.

Returns
kFilterScaleOffset.
Ghidra address:
NTSC-U/C: 0x0037e850
Ghidra address:
PAL: 0x003ecf80

Implements RndAnimatable::Filter.

◆ Copy()

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

Copy another stage.

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

Implements RndAnimatable::Filter.

◆ SetOffset()

void RndAnimatable::ScaleOffset::SetOffset ( float fOffset)
inline
Parameters
fOffsetThe addend.

◆ GetOffset()

float RndAnimatable::ScaleOffset::GetOffset ( ) const
inline
Returns
The addend.

◆ GetScale()

float RndAnimatable::ScaleOffset::GetScale ( ) const
inline
Returns
The multiplier.

◆ SetScale()

void RndAnimatable::ScaleOffset::SetScale ( float fScale)
inline
Parameters
fScaleThe multiplier.

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