THuiTimedPoint Class Reference
Constructor & Destructor Documentation
THuiTimedPoint(TReal32, TReal32)
Constructor that sets default values.
Parameters
TReal32 aX | Sets the timed value's initial X component. |
TReal32 aY | Sets the timed value's initial Y component. |
Member Functions Documentation
Finish()
Finishes the current interpolation.
Now()
Returns the current interpolatad value of the point rounded to nearest integer values. Note that the THuiTimedPoint values are floating-point.
RealNow() For returning the floating-point current value.
RealNow()
Returns the current value of the point.
RealTarget()
Returns the target value of the point.
Set(const THuiRealPoint &, TInt)
Sets the target for the timed point.
Parameters
const THuiRealPoint & aPoint | Target point. |
TInt aTransitionTime = 0 | Duration for reaching the target. |
Set(TReal32, TInt)
IMPORT_C void | Set | ( | TReal32 | aValue, |
| TInt | aTransitionTime = 0 |
| ) | |
Sets the target value of both components of the timed point.
Parameters
TReal32 aValue | New target value. |
TInt aTransitionTime = 0 | Duration for reaching the target. |
SetFunction(MHuiMappingFunction *)
Sets the mapping function for both the X and Y components. For example you can use a mapping function to constrain your visuals onto a path.
Note:
If the mapping function does not support multiple modes (mode for X calculation and mode for Y calculation), both the X and Y components of the timed point will share the same value.
The mapping component/mode parameter used to calculate value for X is mode 0, and the value for U is mode 1.
MHuiMappingFunction::MapValue() is called twice with mode 0 for X and mode 1 for Y.
CHuiCurvePath for curve path mapping fuction.
SetStyle(THuiInterpolationStyle)
Sets the interpolation style of both components of the point.
SetWithSpeed(const THuiRealPoint &, TReal32)
Sets the target value for the timed point, with a transition that is done using a specific speed.
Parameters
const THuiRealPoint & aPoint | Target point. |
TReal32 aUnitsPerSecond | Units per second during the transition. |
SetWithSpeed(TReal32, TReal32)
Sets the target value of both components of the timed point.
Parameters
TReal32 aValue | New target value. |
TReal32 aUnitsPerSecond | Speed of change. |
Target()
Returns the target value of the point rounded to nearest integer values. Note that the THuiTimedPoint values are floating-point.
RealTarget() For returning the floating-point values.
Member Data Documentation
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.