Skip to content

Latest commit

 

History

History
124 lines (81 loc) · 4.93 KB

cparabolictransitionfromacceleration-class.md

File metadata and controls

124 lines (81 loc) · 4.93 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CParabolicTransitionFromAcceleration Class
CParabolicTransitionFromAcceleration Class
11/04/2016
CParabolicTransitionFromAcceleration
AFXANIMATIONCONTROLLER/CParabolicTransitionFromAcceleration
AFXANIMATIONCONTROLLER/CParabolicTransitionFromAcceleration::CParabolicTransitionFromAcceleration
AFXANIMATIONCONTROLLER/CParabolicTransitionFromAcceleration::Create
AFXANIMATIONCONTROLLER/CParabolicTransitionFromAcceleration::m_dblAcceleration
AFXANIMATIONCONTROLLER/CParabolicTransitionFromAcceleration::m_dblFinalValue
AFXANIMATIONCONTROLLER/CParabolicTransitionFromAcceleration::m_dblFinalVelocity
CParabolicTransitionFromAcceleration [MFC], CParabolicTransitionFromAcceleration
CParabolicTransitionFromAcceleration [MFC], Create
CParabolicTransitionFromAcceleration [MFC], m_dblAcceleration
CParabolicTransitionFromAcceleration [MFC], m_dblFinalValue
CParabolicTransitionFromAcceleration [MFC], m_dblFinalVelocity
1e59b86f-358b-4da0-a4fd-8eaf5e85e00f

CParabolicTransitionFromAcceleration Class

Encapsulates a parabolic-acceleration transition.

Syntax

class CParabolicTransitionFromAcceleration : public CBaseTransition;

Members

Public Constructors

Name Description
CParabolicTransitionFromAcceleration::CParabolicTransitionFromAcceleration Constructs a parabolic-acceleration transition and initializes it with specified parameters.

Public Methods

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

Public Data Members

Name Description
CParabolicTransitionFromAcceleration::m_dblAcceleration The acceleration of the animation variable during the transition.
CParabolicTransitionFromAcceleration::m_dblFinalValue The value of the animation variable at the end of the transition.
CParabolicTransitionFromAcceleration::m_dblFinalVelocity The velocity of the animation variable at the end of the transition.

Remarks

During a parabolic-acceleration transition, the value of the animation variable changes from the initial value to the final value ending at a specified velocity. You can control how quickly the variable reaches the final value by specifying the rate of acceleration. 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

CParabolicTransitionFromAcceleration

Requirements

Header: afxanimationcontroller.h

CParabolicTransitionFromAcceleration::CParabolicTransitionFromAcceleration

Constructs a parabolic-acceleration transition and initializes it with specified parameters.

CParabolicTransitionFromAcceleration(
    DOUBLE dblFinalValue,
    DOUBLE dblFinalVelocity,
    DOUBLE dblAcceleration);

Parameters

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

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

dblAcceleration
The acceleration of the animation variable during the transition.

CParabolicTransitionFromAcceleration::Create

Calls the transition library to create encapsulated transition COM object.

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

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.

CParabolicTransitionFromAcceleration::m_dblAcceleration

The acceleration of the animation variable during the transition.

DOUBLE m_dblAcceleration;

CParabolicTransitionFromAcceleration::m_dblFinalValue

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

DOUBLE m_dblFinalValue;

CParabolicTransitionFromAcceleration::m_dblFinalVelocity

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

DOUBLE m_dblFinalVelocity;

See also

Classes