class THuiLinearMappingFunction : public MHuiMappingFunction |
Linear mapping function.
Does not implement change flags, which means that if iFactor or iOffset is changed while the mapping function is in use, timed values will not notify the change.
Public Member Functions | |
---|---|
THuiLinearMappingFunction(TReal32, TReal32) | |
IMPORT_C TReal32 | MapValue(TReal32, TInt) |
Inherited Functions | |
---|---|
MHuiMappingFunction::MappingFunctionChanged()const | |
MHuiMappingFunction::MappingFunctionClearChanged() | |
MHuiMappingFunction::~MHuiMappingFunction() |
Public Attributes | |
---|---|
TReal32 | iFactor |
TReal32 | iOffset |
IMPORT_C | THuiLinearMappingFunction | ( | TReal32 | aFactor = 1.0, |
TReal32 | aOffset = 0.0 | |||
) |
Constructor.
IMPORT_C TReal32 | MapValue | ( | TReal32 | aValue, |
TInt | aMode | |||
) | 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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.