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

Constructor & Destructor Documentation

CAlfConstantMappingFunction()

CAlfConstantMappingFunction ( ) [private]

~CAlfConstantMappingFunction()

IMPORT_C ~CAlfConstantMappingFunction ( )

Member Functions Documentation

ConstructL(CAlfEnv &, TReal32)

void ConstructL ( CAlfEnv & aEnv,
TReal32 aValue
) [private]

Parameters

CAlfEnv & aEnv
TReal32 aValue

MapValue(TReal32, TInt)

TReal32 MapValue ( TReal32 aValue,
TInt aComponent
) const

Parameters

TReal32 aValue
TInt aComponent

MappingFunctionIdentifier()

TInt MappingFunctionIdentifier ( ) const

NewL(CAlfEnv &, TReal32)

IMPORT_C CAlfConstantMappingFunction * NewL ( CAlfEnv & aEnv,
TReal32 aValue = 0.0
) [static]

Constructor.

Parameters

CAlfEnv & aEnv
TReal32 aValue = 0.0

SetValue(TReal32)

IMPORT_C void SetValue ( TReal32 aValue )

Parameters

TReal32 aValue

Value()

IMPORT_C TReal32 Value ( ) const

Member Data Documentation

TPrivateData * iData

TPrivateData * iData [private]