Editare

Partajați prin


CInstantaneousTransition Class

Encapsulates an instantaneous transition.

Syntax

class CInstantaneousTransition : public CBaseTransition;

Members

Public Constructors

Name Description
CInstantaneousTransition::CInstantaneousTransition Constructs a transition object and initializes its final value.

Public Methods

Name Description
CInstantaneousTransition::Create Calls the transition library to create encapsulated transition COM object. (Overrides CBaseTransition::Create.)

Public Data Members

Name Description
CInstantaneousTransition::m_dblFinalValue The value of the animation variable at the end of the transition.

Remarks

During an instantaneous transition, the value of the animation variable changes instantly from its current value to a specified final value. The duration of this transition is always zero. Because all transitions are cleared automatically, it's recommended to allocated them using operator new. The encapsulated IUIAnimationTransition COM object is created by CAnimationController::AnimateGroup, until then it's NULL. Changing member variables after creation of this COM object has no effect.

Inheritance Hierarchy

CObject

CBaseTransition

CInstantaneousTransition

Requirements

Header: afxanimationcontroller.h

CInstantaneousTransition::CInstantaneousTransition

Constructs a transition object and initializes its final value.

CInstantaneousTransition(DOUBLE dblFinalValue);

Parameters

dblFinalValue
The value of the animation variable at the end of the transition.

CInstantaneousTransition::Create

Calls the transition library to create encapsulated transition COM object.

virtual BOOL Create(
    IUIAnimationTransitionLibrary* pLibrary,
    IUIAnimationTransitionFactory* \*not used*\);

Parameters

pLibrary
A pointer to an IUIAnimationTransitionLibrary interface, which defines a library of standard transitions.

Return Value

TRUE if transition is created successfully; otherwise FALSE.

CInstantaneousTransition::m_dblFinalValue

The value of the animation variable at the end of the transition.

DOUBLE m_dblFinalValue;

See also

Classes