TAlfTimedPoint Class Reference

class TAlfTimedPoint

Constructor & Destructor Documentation

TAlfTimedPoint()

IMPORT_CTAlfTimedPoint()

Default constructor.

TAlfTimedPoint(TReal32, TReal32)

IMPORT_CTAlfTimedPoint(TReal32aX,
TReal32aY
)

Constructor that sets default values.

Parameters

TReal32 aX
TReal32 aY

TAlfTimedPoint(TReal32, TReal32, TInt)

IMPORT_CTAlfTimedPoint(TReal32aXTarget,
TReal32aYTarget,
TIntaTransitionTime
)

Constructor. Enables target value setting.

Parameters

TReal32 aXTargetTarget X value.
TReal32 aYTargetTarget Y value.
TInt aTransitionTimeWhen the target value will be in effect. Transition duration in milliseconds.

Member Functions Documentation

IntTarget()

IMPORT_C TPointIntTarget()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 TPointIntValueNow()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 voidSetMappingFunctionIdentifier(TIntaIdentifier)

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

Parameters

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

SetStyle(TAlfInterpolationStyle)

IMPORT_C voidSetStyle(TAlfInterpolationStyleaStyle)

Sets the interpolation style of both components of the point.

Parameters

TAlfInterpolationStyle aStyleTimed value interpolation style.

SetTarget(const TAlfRealPoint &, TInt)

IMPORT_C voidSetTarget(const TAlfRealPoint &aPoint,
TIntaTransitionTime = 0
)

Sets the target for the timed point.

Parameters

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

SetTarget(TReal32, TInt)

IMPORT_C voidSetTarget(TReal32aValue,
TIntaTransitionTime = 0
)

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

Parameters

TReal32 aValueNew target value.
TInt aTransitionTime = 0Duration for reaching the target.

SetTargetWithSpeed(const TAlfRealPoint &, TReal32)

IMPORT_C voidSetTargetWithSpeed(const TAlfRealPoint &aPoint,
TReal32aUnitsPerSecond
)

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

Parameters

const TAlfRealPoint & aPointTarget point.
TReal32 aUnitsPerSecondUnits per second during the transition.

SetTargetWithSpeed(TReal32, TReal32)

IMPORT_C voidSetTargetWithSpeed(TReal32aValue,
TReal32aUnitsPerSecond
)

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

Parameters

TReal32 aValueNew target value.
TReal32 aUnitsPerSecondSpeed 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