Share via


CLinearTransitionFromSpeed Class

Encapsulates a linear-speed transition.

class CLinearTransitionFromSpeed : public CBaseTransition;

Members

Public Constructors

Name

Description

CLinearTransitionFromSpeed::CLinearTransitionFromSpeed

Constructs a linear-speed transition object and initializes it with speed and final value.

Public Methods

Name

Description

CLinearTransitionFromSpeed::Create

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

Public Data Members

Name

Description

CLinearTransitionFromSpeed::m_dblFinalValue

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

CLinearTransitionFromSpeed::m_dblSpeed

The absolute value of the variable's velocity.

Remarks

During a linear-speed transition, the value of the animation variable changes at a specified rate. The duration of the transition is determined by the difference between the initial value and the specified final value. 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

CLinearTransitionFromSpeed

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes