CAnimationPoint Class
Implements the functionality of a point whose coordinates can be animated.
class CAnimationPoint : public CAnimationBaseObject;
Members
Public Constructors
Name |
Description |
---|---|
Overloaded. Constructs CAnimationPoint object. |
Public Methods
Name |
Description |
---|---|
Adds transitions for X and Y coordinates. |
|
Returns the default values for X and Y coordinates. |
|
Returns current value. |
|
Provides access to CAnimationVariable for X coordinate. |
|
Provides access to CAnimationVariable for Y coordinate. |
|
Sets default value. |
Protected Methods
Name |
Description |
---|---|
Puts the encapsulated animation variables into a list. (Overrides CAnimationBaseObject::GetAnimationVariableList.) |
Public Operators
Name |
Description |
---|---|
Converts a CAnimationPoint to a CPoint. |
|
Assigns ptSrc to CAnimationPoint. |
Protected Data Members
Name |
Description |
---|---|
The encapsulated animation variable that represents X coordinate of animation point. |
|
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
Requirements
Header: afxanimationcontroller.h