CSinusoidalTransitionFromVelocity Class
Encapsulates a sinusoidal-velocity transition that has an amplitude that is determined by the initial velocity of the animation variable.
class CSinusoidalTransitionFromVelocity : public CBaseTransition;
Name | Description |
---|---|
CSinusoidalTransitionFromVelocity::CSinusoidalTransitionFromVelocity | Constructs a transition object. |
Name | Description |
---|---|
CSinusoidalTransitionFromVelocity::Create | Calls the transition library to create encapsulated transition COM object. (Overrides CBaseTransition::Create.) |
Name | Description |
---|---|
CSinusoidalTransitionFromVelocity::m_duration | The duration of the transition. |
CSinusoidalTransitionFromVelocity::m_period | The period of oscillation of the sinusoidal wave in seconds. |
The value of the animation variable oscillates around the initial value over the entire duration of a sinusoidal-range transition. The amplitude of the oscillation is determined by the animation variable's velocity when the transition begins. 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.
CSinusoidalTransitionFromVelocity
Header: afxanimationcontroller.h
Calls the transition library to create encapsulated transition COM object.
virtual BOOL Create(
IUIAnimationTransitionLibrary* pLibrary,
IUIAnimationTransitionFactory* \*not used*\);
pLibrary
A pointer to transition library, which is responsible for creation of standard transitions.
TRUE if transition is created successfully; otherwise FALSE.
Constructs a transition object.
CSinusoidalTransitionFromVelocity(
UI_ANIMATION_SECONDS duration,
UI_ANIMATION_SECONDS period);
duration
The duration of the transition.
period
The period of oscillation of the sinusoidal wave in seconds.
The duration of the transition.
UI_ANIMATION_SECONDS m_duration;
The period of oscillation of the sinusoidal wave in seconds.
UI_ANIMATION_SECONDS m_period;