class THuiTimedPoint |
X/Y coordinate pair using timed values.
THuiTimedValue
Public Member Functions | |
---|---|
THuiTimedPoint () | |
THuiTimedPoint ( TReal32 , TReal32 ) | |
TBool | Changed () |
void | ClearChanged () |
IMPORT_C void | Finish () |
IMPORT_C TPoint | Now () |
IMPORT_C THuiRealPoint | RealNow () |
IMPORT_C THuiRealPoint | RealTarget () |
IMPORT_C void | Set (const THuiRealPoint &, TInt ) |
IMPORT_C void | Set ( TReal32 , TInt ) |
IMPORT_C void | SetFunction ( MHuiMappingFunction *) |
IMPORT_C void | SetStyle ( THuiInterpolationStyle ) |
IMPORT_C void | SetWithSpeed (const THuiRealPoint &, TReal32 ) |
IMPORT_C void | SetWithSpeed ( TReal32 , TReal32 ) |
IMPORT_C TPoint | Target () |
Public Attributes | |
---|---|
THuiTimedValue | iX |
THuiTimedValue | iY |
Private Attributes | |
---|---|
TInt | iSpare1 |
TInt | iSpare2 |
IMPORT_C | THuiTimedPoint | ( | TReal32 | aX, |
TReal32 | aY | |||
) |
Constructor that sets default values.
void | ClearChanged | ( | ) |
Clears the changed flags for X and Y values.
THuiTimedValue::Changed()
IMPORT_C TPoint | Now | ( | ) | const |
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.
IMPORT_C void | Set | ( | const THuiRealPoint & | aPoint, |
TInt | aTransitionTime = 0 | |||
) |
Sets the target for the timed point.
const THuiRealPoint & aPoint | Target point. |
TInt aTransitionTime = 0 | Duration for reaching the target. |
IMPORT_C void | Set | ( | TReal32 | aValue, |
TInt | aTransitionTime = 0 | |||
) |
Sets the target value of both components of the timed point.
IMPORT_C void | SetFunction | ( | MHuiMappingFunction * | aFunction | ) |
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.
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.
MHuiMappingFunction * aFunction |
IMPORT_C void | SetStyle | ( | THuiInterpolationStyle | aStyle | ) |
Sets the interpolation style of both components of the point.
THuiInterpolationStyle aStyle | Timed value interpolation style. |
IMPORT_C void | SetWithSpeed | ( | const THuiRealPoint & | aPoint, |
TReal32 | aUnitsPerSecond | |||
) |
Sets the target value for the timed point, with a transition that is done using a specific speed.
const THuiRealPoint & aPoint | Target point. |
TReal32 aUnitsPerSecond | Units per second during the transition. |
IMPORT_C void | SetWithSpeed | ( | TReal32 | aValue, |
TReal32 | aUnitsPerSecond | |||
) |
Sets the target value of both components of the timed point.
IMPORT_C TPoint | Target | ( | ) | const |
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.
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.