Partager via


CSinusoidalTransitionFromRange Class

Encapsulates a sinusoidal-range transition that has a given range of oscillation.

class CSinusoidalTransitionFromRange : public CBaseTransition;

Members

Public Constructors

Name

Description

CSinusoidalTransitionFromRange::CSinusoidalTransitionFromRange

Constructs a transition object.

Public Methods

Name

Description

CSinusoidalTransitionFromRange::Create

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

Public Data Members

Name

Description

CSinusoidalTransitionFromRange::m_dblMaximumValue

The value of the animation variable at a peak of the sinusoidal wave.

CSinusoidalTransitionFromRange::m_dblMinimumValue

The value of the animation variable at a trough of the sinusoidal wave.

CSinusoidalTransitionFromRange::m_duration

The duration of the transition.

CSinusoidalTransitionFromRange::m_period

The period of oscillation of the sinusoidal wave in seconds.

CSinusoidalTransitionFromRange::m_slope

The slope at the start of the transition.

Remarks

The value of the animation variable fluctuates between the specified minimum and maximum values over the entire duration of a sinusoidal-range transition. The slope parameter is used to disambiguate between the two possible sine waves specified by the other parameters. 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

CSinusoidalTransitionFromRange

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes