Location:
Animator.h
Link against: animationshared.lib
class CAnimator : public CBase;
Pure virtual base class for animators.
Each data type supported by the animation framework is represented by an animator, which handles the data interpretation, timing and control. Each animator is provided in the form of an ECOM plugin.
You do not need to instatiate animators in a client application. This is handled by the animation classes.
CBase
- Base class for all classes to be instantiated on the heap
CAnimator
- Pure virtual base class for animators
Defined in CAnimator
:
DataEventL()
, Draw()
, DrawMask()
, Hold()
, NewL()
, Pause()
, Resume()
, Start()
, Stop()
, Unhold()
, iDtor_ID_Key
, iLoop
, ~CAnimator()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CAnimator *NewL(MAnimationDrawer *aRenderer);
Locates and constructs an animator.
The MAnimationDrawer
passed as an argument returns a string through the function AnimatorDataType. If a matching animator plugin can be found
then it will be loaded and constructed.
|
|
virtual void Start(const TAnimationConfig &aConfig)=0;
Starts the animation running.
|
virtual void DataEventL(TInt aEvent, TAny *aData, TInt aDataSize)=0;
Receives data from a data provider. The mechanism by which data is actually passed depends on the animation type.
|
virtual void Draw(CBitmapContext &aBitmapContext) const=0;
Called from the renderer and draws the animation.
|
virtual void DrawMask(CBitmapContext &aBitmapContext) const=0;
Called from the renderer and draws the mask for the animation.
|
protected: TInt iLoop;
Data