Partager via


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;

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

See Also

Other Resources

MFC Classes