Condividi tramite


CAnimationPoint Class

Implements the functionality of a point whose coordinates can be animated.

class CAnimationPoint : public CAnimationBaseObject;

Members

Public Constructors

Name

Description

CAnimationPoint::CAnimationPoint

Overloaded. Constructs CAnimationPoint object.

Public Methods

Name

Description

CAnimationPoint::AddTransition

Adds transitions for X and Y coordinates.

CAnimationPoint::GetDefaultValue

Returns the default values for X and Y coordinates.

CAnimationPoint::GetValue

Returns current value.

CAnimationPoint::GetX

Provides access to CAnimationVariable for X coordinate.

CAnimationPoint::GetY

Provides access to CAnimationVariable for Y coordinate.

CAnimationPoint::SetDefaultValue

Sets default value.

Protected Methods

Name

Description

CAnimationPoint::GetAnimationVariableList

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

Public Operators

Name

Description

CAnimationPoint::operator CPoint

Converts a CAnimationPoint to a CPoint.

CAnimationPoint::operator=

Assigns ptSrc to CAnimationPoint.

Protected Data Members

Name

Description

CAnimationPoint::m_xValue

The encapsulated animation variable that represents X coordinate of animation point.

CAnimationPoint::m_yValue

The encapsulated animation variable that represents Y coordinate of animation point.

Remarks

The CAnimationPoint class encapsulates two CAnimationVariable objects and can represent in applications a point. For example, you can use this class to animate a position of any object on the screen (like text string, circle, point etc). 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 X and/or Y coordinates.

Inheritance Hierarchy

CObject

CAnimationBaseObject

CAnimationPoint

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes