TAlfPointCommand Class Reference

class TAlfPointCommand : public TAlfObjectCommand
TAlfPointCommand is a command that operates on a timed point. Usage:
  //Create timed point command to set visual size
   TAlfRealPoint p1( 0.1, 0.1 );
   TAlfPointCommand command1( iVisual, EAlfValueCommandVisualSize, p1, 1 );
  
  //Send command , Primary image will be set
   iEnv->Send( command, 1 );

Inherits from

Constructor & Destructor Documentation

TAlfPointCommand(TAny *, TAlfPointCommandTarget, TAlfOp)

IMPORT_CTAlfPointCommand(TAny *aObject,
TAlfPointCommandTargetaObjectType,
TAlfOpaOperation
)

Constructs a new timed point command.

Parameters

TAny * aObjectObject. Needs to match with aObjectType
TAlfPointCommandTarget aObjectTypeTimed value to modify.
TAlfOp aOperationOperation to perform.

TAlfPointCommand(TAny *, TAlfPointCommandTarget, TAlfRealPoint, TInt, TParameterTarget)

IMPORT_CTAlfPointCommand(TAny *aObject,
TAlfPointCommandTargetaObjectType,
TAlfRealPointaTarget,
TIntaTransitionTime = 0,
TParameterTargetaParameterTarget = EBoth
)

Constructs a new timed point command.

Parameters

TAny * aObjectObject. Needs to match with aObjectType
TAlfPointCommandTarget aObjectTypeTimed value to modify.
TAlfRealPoint aTargetTarget value
TInt aTransitionTime = 0Time (in milliseconds) for the transition to occur.
TParameterTarget aParameterTarget = EBoth

TAlfPointCommand(TAny *, TAlfPointCommandTarget, TAlfOp, TAlfRealPoint, TReal32, TParameterTarget)

IMPORT_CTAlfPointCommand(TAny *aObject,
TAlfPointCommandTargetaObjectType,
TAlfOpaOperation,
TAlfRealPointaTarget,
TReal32aTiming = 0.0,
TParameterTargetaParameterTarget = EBoth
)

Constructs a new timed point command. This constructor takes an operation parameter in addition to the target and timing values.

Parameters

TAny * aObjectObject. Needs to match with aObjectType
TAlfPointCommandTarget aObjectTypeTimed value to modify.
TAlfOp aOperationOperation to perform.
TAlfRealPoint aTargetTarget value.
TReal32 aTiming = 0.0Time (in milliseconds) for the transition to occur.
TParameterTarget aParameterTarget = EBoth

Member Functions Documentation

CommandExtension(const TUid &, TAny **)

IMPORT_C voidCommandExtension(const TUid &aExtensionUid,
TAny **aExtensionParams
)[protected, virtual]

Parameters

const TUid & aExtensionUid
TAny ** aExtensionParams

ExecuteL(CAlfEnv &)

IMPORT_C voidExecuteL(CAlfEnv &aEnv)const [virtual]

Executes the command.

Parameters

CAlfEnv & aEnvThe environment in which the command is being executed.

Size()

IMPORT_C TIntSize()const [virtual]

Returns the size of the command.

Speed()

IMPORT_C TReal32Speed()const

Returns the transition speed. Zero, if not set.

Target()

IMPORT_C TAlfRealPointTarget()const

Returns the target value.

TimedPoint()

IMPORT_C TAlfPointCommandTargetTimedPoint()const

Returns the object type that the command operates on.

TransitionTime()

IMPORT_C TIntTransitionTime()const

Returns the transition time.

Member Enumerations Documentation

Enum TParameterTarget

Enumerators

EBoth = 0
EXOnly
EYOnly

Member Data Documentation

TParameterTarget iParameterTarget

TParameterTarget iParameterTarget[private]

TInt iSpare1

TInt iSpare1[private]

TInt iSpare2

TInt iSpare2[private]

TReal32 iSpeed

TReal32 iSpeed[private]

Optionally, transition speed in units/second.

TAlfRealPoint iTarget

TAlfRealPoint iTarget[private]

Target value.

TAlfPointCommandTarget iTimedPoint

TAlfPointCommandTarget iTimedPoint[private]

Timed point being operated on.

TInt iTransitionTime

TInt iTransitionTime[private]

Transition time in milliseconds.