CSmoothStopTransition Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CSmoothStopTransition Class.

Encapsulates a smooth-stop transition.

class CSmoothStopTransition : public CBaseTransition;  

Public Constructors

NameDescription
CSmoothStopTransition::CSmoothStopTransitionConstructs a smooth-stop transition and initializes its maximum duration and final value.

Public Methods

NameDescription
CSmoothStopTransition::CreateCalls the transition library to create encapsulated transition COM object. (Overrides CBaseTransition::Create.)

Public Data Members

NameDescription
CSmoothStopTransition::m_dblFinalValueThe value of the animation variable at the end of the transition.
CSmoothStopTransition::m_maximumDurationThe maximum duration of the transition.

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.

CObject

CBaseTransition

CSmoothStopTransition

Header: afxanimationcontroller.h

Calls the transition library to create encapsulated transition COM object.

virtual BOOL Create(
    IUIAnimationTransitionLibrary* pLibrary,  
    IUIAnimationTransitionFactory* */);

Parameters

pLibrary
A pointer to transition library, which is responsible for creation of standard transitions.

Return Value

TRUE if transition is created successfully; otherwise FALSE.

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

CSmoothStopTransition(
    UI_ANIMATION_SECONDS maximumDuration,  
    DOUBLE dblFinalValue);

Parameters

maximumDuration
The maximum duration of the transition.

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

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

DOUBLE m_dblFinalValue;  

The maximum duration of the transition.

UI_ANIMATION_SECONDS m_maximumDuration;  

Classes

Show: