TAlfTimedPoint Class Reference

class TAlfTimedPoint

Constructor & Destructor Documentation

TAlfTimedPoint()

IMPORT_C TAlfTimedPoint ( )

Default constructor.

TAlfTimedPoint(TReal32, TReal32)

IMPORT_C TAlfTimedPoint ( TReal32 aX,
TReal32 aY
)

Constructor that sets default values.

Parameters

TReal32 aX
TReal32 aY

TAlfTimedPoint(TReal32, TReal32, TInt)

IMPORT_C TAlfTimedPoint ( TReal32 aXTarget,
TReal32 aYTarget,
TInt aTransitionTime
)

Constructor. Enables target value setting.

Parameters

TReal32 aXTarget Target X value.
TReal32 aYTarget Target Y value.
TInt aTransitionTime When the target value will be in effect. Transition duration in milliseconds.

Member Functions Documentation

IntTarget()

IMPORT_C TPoint IntTarget ( ) const

Returns the target value of the point rounded to nearest integer values. Note that the TAlfTimedPoint values are floating-point.

Target() For returning the floating-point values.

IntValueNow()

IMPORT_C TPoint IntValueNow ( ) const

Returns the current interpolatad value of the point rounded to nearest integer values. Note that the TAlfTimedPoint values are floating-point.

ValueNow() For returning the floating-point current value.

SetMappingFunctionIdentifier(TInt)

IMPORT_C void SetMappingFunctionIdentifier ( TInt aIdentifier )

Sets identifier of a mapping function that affects the timed value for both components of the point.

Parameters

TInt aIdentifier Identifier of a function that will map the current value to required number space.

SetStyle(TAlfInterpolationStyle)

IMPORT_C void SetStyle ( TAlfInterpolationStyle aStyle )

Sets the interpolation style of both components of the point.

Parameters

TAlfInterpolationStyle aStyle Timed value interpolation style.

SetTarget(const TAlfRealPoint &, TInt)

IMPORT_C void SetTarget ( const TAlfRealPoint & aPoint,
TInt aTransitionTime = 0
)

Sets the target for the timed point.

Parameters

const TAlfRealPoint & aPoint Target point.
TInt aTransitionTime = 0 Duration for reaching the target.

SetTarget(TReal32, TInt)

IMPORT_C void SetTarget ( 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.

SetTargetWithSpeed(const TAlfRealPoint &, TReal32)

IMPORT_C void SetTargetWithSpeed ( const TAlfRealPoint & aPoint,
TReal32 aUnitsPerSecond
)

Sets the target value for the timed point, with a transition that is done using a specific speed.

Parameters

const TAlfRealPoint & aPoint Target point.
TReal32 aUnitsPerSecond Units per second during the transition.

SetTargetWithSpeed(TReal32, TReal32)

IMPORT_C void SetTargetWithSpeed ( TReal32 aValue,
TReal32 aUnitsPerSecond
)

Sets the target value of both components of the timed point.

Parameters

TReal32 aValue New target value.
TReal32 aUnitsPerSecond Speed of change.

Target()

TAlfRealPoint Target ( ) const [inline]

Returns the target value of the point.

TimeToTargetinMilliSeconds()

TAlfRealPoint TimeToTargetinMilliSeconds ( ) const [inline]

Returns the transition time value of the point.

ValueNow()

TAlfRealPoint ValueNow ( ) const [inline]

Returns the current value of the point.

Member Data Documentation

TInt iSpare1

TInt iSpare1 [private]

TInt iSpare2

TInt iSpare2 [private]

TAlfTimedValue iX

TAlfTimedValue iX

TAlfTimedValue iY

TAlfTimedValue iY