THuiTimedPoint Class Reference

class THuiTimedPoint

X/Y coordinate pair using timed values.

THuiTimedValue

Public Member Functions
THuiTimedPoint()
THuiTimedPoint(TReal32, TReal32)
TBool Changed()
voidClearChanged()
IMPORT_C voidFinish()
IMPORT_C TPointNow()
IMPORT_C THuiRealPointRealNow()
IMPORT_C THuiRealPointRealTarget()
IMPORT_C voidSet(const THuiRealPoint &, TInt)
IMPORT_C voidSet(TReal32, TInt)
IMPORT_C voidSetFunction(MHuiMappingFunction *)
IMPORT_C voidSetStyle(THuiInterpolationStyle)
IMPORT_C voidSetWithSpeed(const THuiRealPoint &, TReal32)
IMPORT_C voidSetWithSpeed(TReal32, TReal32)
IMPORT_C TPointTarget()
Public Attributes
THuiTimedValue iX
THuiTimedValue iY
Private Attributes
TInt iSpare1
TInt iSpare2

Constructor & Destructor Documentation

THuiTimedPoint()

IMPORT_CTHuiTimedPoint()

THuiTimedPoint(TReal32, TReal32)

IMPORT_CTHuiTimedPoint(TReal32aX,
TReal32aY
)

Constructor that sets default values.

Parameters

TReal32 aXSets the timed value's initial X component.
TReal32 aYSets the timed value's initial Y component.

Member Functions Documentation

Changed()

TBool Changed()const

Checks if the point has been changed.

THuiTimedValue::Changed()

ClearChanged()

voidClearChanged()

Clears the changed flags for X and Y values.

THuiTimedValue::Changed()

Finish()

IMPORT_C voidFinish()

Finishes the current interpolation.

Now()

IMPORT_C TPointNow()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.

RealNow()

IMPORT_C THuiRealPointRealNow()const

Returns the current value of the point.

RealTarget()

IMPORT_C THuiRealPointRealTarget()const

Returns the target value of the point.

Set(const THuiRealPoint &, TInt)

IMPORT_C voidSet(const THuiRealPoint &aPoint,
TIntaTransitionTime = 0
)

Sets the target for the timed point.

Parameters

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

Set(TReal32, TInt)

IMPORT_C voidSet(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.

SetFunction(MHuiMappingFunction *)

IMPORT_C voidSetFunction(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.

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.

Parameters

MHuiMappingFunction * aFunction

SetStyle(THuiInterpolationStyle)

IMPORT_C voidSetStyle(THuiInterpolationStyleaStyle)

Sets the interpolation style of both components of the point.

Parameters

THuiInterpolationStyle aStyleTimed value interpolation style.

SetWithSpeed(const THuiRealPoint &, TReal32)

IMPORT_C voidSetWithSpeed(const THuiRealPoint &aPoint,
TReal32aUnitsPerSecond
)

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

Parameters

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

SetWithSpeed(TReal32, TReal32)

IMPORT_C voidSetWithSpeed(TReal32aValue,
TReal32aUnitsPerSecond
)

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

Parameters

TReal32 aValueNew target value.
TReal32 aUnitsPerSecondSpeed of change.

Target()

IMPORT_C TPointTarget()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.

Member Data Documentation

TInt iSpare1

TInt iSpare1[private]

TInt iSpare2

TInt iSpare2[private]

THuiTimedValue iX

THuiTimedValue iX

X coordinate.

THuiTimedValue iY

THuiTimedValue iY

Y coordinate.