CSinusoidalTransitionFromVelocity Class

Encapsulates a sinusoidal-velocity transition that has an amplitude that is determined by the initial velocity of the animation variable.

Syntax

class CSinusoidalTransitionFromVelocity : public CBaseTransition;

Members

Public Constructors

Name Description
CSinusoidalTransitionFromVelocity::CSinusoidalTransitionFromVelocity Constructs a transition object.

Public Methods

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

Public Data Members

Name Description
CSinusoidalTransitionFromVelocity::m_duration The duration of the transition.
CSinusoidalTransitionFromVelocity::m_period The period of oscillation of the sinusoidal wave in seconds.

Remarks

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.

Inheritance Hierarchy

CObject

CBaseTransition

CSinusoidalTransitionFromVelocity

Requirements

Header: afxanimationcontroller.h

CSinusoidalTransitionFromVelocity::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.

CSinusoidalTransitionFromVelocity::CSinusoidalTransitionFromVelocity

Constructs a transition object.

CSinusoidalTransitionFromVelocity(
    UI_ANIMATION_SECONDS duration,
    UI_ANIMATION_SECONDS period);

Parameters

duration
The duration of the transition.

period
The period of oscillation of the sinusoidal wave in seconds.

CSinusoidalTransitionFromVelocity::m_duration

The duration of the transition.

UI_ANIMATION_SECONDS m_duration;

CSinusoidalTransitionFromVelocity::m_period

The period of oscillation of the sinusoidal wave in seconds.

UI_ANIMATION_SECONDS m_period;

See also

Classes