CAlfConstantMappingFunction Class Reference
class CAlfConstantMappingFunction : public CBase |
Constant value mapping function.
Does not implement change flags, which means that if iValue is changed while the mapping function is in use, timed values will not notify the change. Usage:
//Create constant mapping function instant
CAlfConstantMappingFunction* imageXposMappingFun = CAlfConstantMappingFunction::NewL(*iEnv);
TAlfTimedPoint timedPoint;
//Set mapping function on x timed value
timedPoint.iX.SetValueNow(0);
timedPoint.iX.SetTarget( 2000 );
timedPoint.iX.SetMappingFunctionIdentifier( imageXposMappingFun->MappingFunctionIdentifier() );
//Set mapping function on Y timed value
timedPoint.iY.SetValueNow(0);
timedPoint.iY.SetTarget(2000);
timedPoint.iY.SetMappingFunctionIdentifier( imageYposMappingFunction->MappingFunctionIdentifier() );
//Set position of image visual
iImageVisual->SetPos( timedPoint );
Inherits from
- CAlfConstantMappingFunction
Nested Classes and Structures
Private Attributes |
---|
TPrivateData * | iData |
Constructor & Destructor Documentation
CAlfConstantMappingFunction()
CAlfConstantMappingFunction | ( | ) | [private] |
~CAlfConstantMappingFunction()
IMPORT_C | ~CAlfConstantMappingFunction | ( | ) | |
Member Functions Documentation
ConstructL(CAlfEnv &, TReal32)
void | ConstructL | ( | CAlfEnv & | aEnv, |
| TReal32 | aValue |
| ) | [private] |
MappingFunctionIdentifier()
TInt
| MappingFunctionIdentifier | ( | ) | const |
NewL(CAlfEnv &, TReal32)
Parameters
CAlfEnv & aEnv | |
TReal32 aValue = 0.0 | |
SetValue(TReal32)
IMPORT_C void | SetValue | ( | TReal32 | aValue | ) | |
Member Data Documentation
TPrivateData * iData
TPrivateData * | iData | [private] |
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.