Partager via


CSmoothStopTransition Class

Encapsulates a smooth-stop transition.

class CSmoothStopTransition : public CBaseTransition;

Members

Public Constructors

Name

Description

CSmoothStopTransition::CSmoothStopTransition

Constructs a smooth-stop transition and initializes its maximum duration and final value.

Public Methods

Name

Description

CSmoothStopTransition::Create

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

Public Data Members

Name

Description

CSmoothStopTransition::m_dblFinalValue

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

CSmoothStopTransition::m_maximumDuration

The maximum duration of the transition.

Remarks

A smooth-stop transition slows down as it approaches a given final value, and reaches it with a velocity of zero. The duration of the transition is determined by the initial velocity, the difference between the initial and final values, and the specified maximum duration. If there is no solution consisting of a single parabolic arc, this method creates a cubic transition. 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

CSmoothStopTransition

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes