CAnimationValue Class

Implements the functionality of animation object that has one value.

class CAnimationValue : public CAnimationBaseObject;

Members

Public Constructors

Name

Description

CAnimationValue::CAnimationValue

Overloaded. Constructs a CAnimationValue object.

Public Methods

Name

Description

CAnimationValue::AddTransition

Adds a transition to be applied to a value.

CAnimationValue::GetValue

Overloaded. Retrieves the current value.

CAnimationValue::GetVariable

Provides access to encapsulated animation variable.

CAnimationValue::SetDefaultValue

Sets default value.

Protected Methods

Name

Description

CAnimationValue::GetAnimationVariableList

Puts the encapsulated animation variable into a list. (Overrides CAnimationBaseObject::GetAnimationVariableList.)

Public Operators

Name

Description

CAnimationValue::operator DOUBLE

Provides conversion between CAnimationValue and DOUBLE.

CAnimationValue::operator INT32

Provides conversion between CAnimationValue and INT32.

CAnimationValue::operator=

Overloaded. Assigns an INT32 value to CAnimationValue.

Protected Data Members

Name

Description

CAnimationValue::m_value

The encapsulated animation variable that represents animation value.

Remarks

The CAnimationValue class encapsulates a single CAnimationVariable object and can represent in applications a single animated value. For example, you can use this class for animated transparency (fade effect), angle (to rotate objects), or for any other case when you need to create an animation depending on a single animated value. To use this class in application, just instantiate an object of this class, add it to animation controller using CAnimationController::AddAnimationObject and call AddTransition for each transition to be applied to the value.

Inheritance Hierarchy

CObject

CAnimationBaseObject

CAnimationValue

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes