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.
Public Member Functions | |
---|---|
THuiConstantMappingFunction(TReal32) | |
IMPORT_C TReal32 | MapValue(TReal32, TInt) |
Inherited Functions | |
---|---|
MHuiMappingFunction::MappingFunctionChanged()const | |
MHuiMappingFunction::MappingFunctionClearChanged() | |
MHuiMappingFunction::~MHuiMappingFunction() |
Public Attributes | |
---|---|
TReal32 | iValue |
IMPORT_C | THuiConstantMappingFunction | ( | TReal32 | aValue = 0.0 | ) |
Constructor.
TReal32 aValue = 0.0 |
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.