Partager via


CLinearTransition Class

Encapsulates a linear transition.

class CLinearTransition : public CBaseTransition;

Members

Public Constructors

Name

Description

CLinearTransition::CLinearTransition

Constructs a linear transition object and initializes it with duration and final value.

Public Methods

Name

Description

CLinearTransition::Create

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

Public Data Members

Name

Description

CLinearTransition::m_dblFinalValue

The value of the animation variable at the end of the transition.

CLinearTransition::m_duration

The duration of the transition.

Remarks

During a linear transition, the value of the animation variable transitions linearly from its initial value to a 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.

Inheritance Hierarchy

CObject

CBaseTransition

CLinearTransition

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes