CLinearTransitionFromSpeed 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 CLinearTransitionFromSpeed Class.
Encapsulates a linear-speed transition.
class CLinearTransitionFromSpeed : public CBaseTransition;
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. |
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.
Header: afxanimationcontroller.h
Constructs a linear-speed transition object and initializes it with speed and final value.
CLinearTransitionFromSpeed(
DOUBLE dblSpeed,
DOUBLE dblFinalValue);
Parameters
dblSpeed
The absolute value of the variable's velocity.
dblFinalValue
The value of the animation 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 absolute value of the variable's velocity.
DOUBLE m_dblSpeed;