CReversalTransition Class

Encapsulates a reversal transition.

class CReversalTransition : public CBaseTransition;

Members

Public Constructors

Name

Description

CReversalTransition::CReversalTransition

Constructs a reversal transition object and initializes its duration.

Public Methods

Name

Description

CReversalTransition::Create

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

Public Data Members

Name

Description

CReversalTransition::m_duration

The duration of the transition.

Remarks

A reversal transition smoothly changes direction over a given duration. The final value will be the same as the initial value and the final velocity will be the negative of the initial velocity. 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

CReversalTransition

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes