THuiConstantMappingFunction Class Reference

class THuiConstantMappingFunction : public MHuiMappingFunction

The parameters of each mapping function are declared and accessed as public for convenience. To preserve binary compatiblity, avoid making changes to these classes. Constant value mapping function.

Does not implement change flags, which means that if iValue is changed while the mapping function is in use, timed values will not notify the change.

Inherits from

Constructor & Destructor Documentation

THuiConstantMappingFunction(TReal32)

IMPORT_CTHuiConstantMappingFunction(TReal32aValue = 0.0)

Constructor.

Parameters

TReal32 aValue = 0.0

Member Functions Documentation

MapValue(TReal32, TInt)

IMPORT_C TReal32MapValue(TReal32aValue,
TIntaMode
)const [virtual]

Perform the mapping. Defines a function y = f(x, mode).

Implement this method that calculates a output value for a timed value based on the input value and a component/mode parameter.

For example the aValue input could be an angle, and the aMode could be a X or Y component enumeration, then the MapValue could calculate return a x or y position on a curve path.

Parameters

TReal32 aValueUnmapped value.
TInt aModeMapping mode used for mapping this value.

Member Data Documentation

TReal32 iValue

TReal32 iValue