class THuiAverageMappingFunction : public MHuiMappingFunction |
Weighted average function between two other mapping functions. By default calculates the average of the two functions.
Public Member Functions | |
---|---|
THuiAverageMappingFunction(MHuiMappingFunction *, MHuiMappingFunction *) | |
IMPORT_C TReal32 | MapValue(TReal32, TInt) |
IMPORT_C TBool | MappingFunctionChanged() |
IMPORT_C void | MappingFunctionClearChanged() |
Inherited Functions | |
---|---|
MHuiMappingFunction::~MHuiMappingFunction() |
Public Attributes | |
---|---|
THuiTimedValue | iFactor |
MHuiMappingFunction * | iFunc1 |
MHuiMappingFunction * | iFunc2 |
THuiTimedValue | iWeight |
IMPORT_C | THuiAverageMappingFunction | ( | MHuiMappingFunction * | aFunc1 = 0, |
MHuiMappingFunction * | aFunc2 = 0 | |||
) |
Constructor.
MHuiMappingFunction * aFunc1 = 0 | Function 1. |
MHuiMappingFunction * aFunc2 = 0 | Function 2. |
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.
IMPORT_C TBool | MappingFunctionChanged | ( | ) | const [virtual] |
Determines whether the mapping function has changed since the last call to MHuiMappingFunction::MappingFunctionClearChanged().
By default, mapping functions themselves are assumed to be constant (not changing over time).
IMPORT_C void | MappingFunctionClearChanged | ( | ) | [virtual] |
Clears the change flags of the mapping function. This is called by the refresh loop after a frame has been fully drawn.
THuiTimedValue | iFactor |
Defaults to 0.5. Applied to the sum of the functions 1 and 2.
THuiTimedValue | iWeight |
Weight. 0.0 means function 2 does not contribute to the result, 1.0 means that function 1 does not contribute to the result. The default is 0.5, which means both functions contribute equally.
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.