CCubicTransition 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 CCubicTransition Class.

Encapsulates a cubic transition.

class CCubicTransition : public CBaseTransition;  

Public Constructors

NameDescription
CCubicTransition::CCubicTransitionConstructs a transition object and initializes its parameters.

Public Methods

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

Public Data Members

NameDescription
CCubicTransition::m_dblFinalValueThe value of the animation variable at the end of the transition.
CCubicTransition::m_dblFinalVelocityThe velocity of the variable at the end of the transition.
CCubicTransition::m_durationThe duration of the transition.

During a cubic transition, the value of the animation variable changes from its initial value to a specified final value over the duration of the transition, ending at a specified 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.

CObject

CBaseTransition

CCubicTransition

Header: afxanimationcontroller.h

Constructs a transition object and initializes its parameters.

CCubicTransition(
    UI_ANIMATION_SECONDS duration,  
    DOUBLE finalValue,  
    DOUBLE finalVelocity);

Parameters

duration
The duration of the transition.

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

finalVelocity
The velocity of the variable at the end of the transition.

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.

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

DOUBLE m_dblFinalValue;  

The velocity of the variable at the end of the transition.

DOUBLE m_dblFinalVelocity;  

The duration of the transition.

UI_ANIMATION_SECONDS m_duration;  

Classes

Show: