CAnimationGroup Class
Implements an animation group, which combines an animation storyboard, animation objects, and transitions to define an animation.
class CAnimationGroup;
Members
Public Constructors
Name |
Description |
---|---|
Constructs an animation group. |
|
The destructor. Called when an animation group is being destroyed. |
Public Methods
Name |
Description |
---|---|
Animates a group. |
|
Applies transitions to animation objects. |
|
Finds an animation object that contains the specified animation variable. |
|
Returns GroupID. |
|
Removes and optionally destroys all keyframes that belong to an animation group. |
|
Removes transitions from animation objects that belong to an animation group. |
|
Schedules an animation at the specified time. |
|
Directs all animation objects that belong to group automatically destroy transitions. |
Protected Methods
Name |
Description |
---|---|
A helper that adds keyframes to a storyboard. |
|
A helper that adds transitions to a storyboard. |
|
A helper that creates COM transition objects. |
Public Data Members
Name |
Description |
---|---|
Specifies how to clear transitions from animation objects that belong to group. If this member is TRUE, transitions are removed automatically when an animation has been scheduled. Otherwise you need to remove transitions manually. |
|
Specifies how to destroy animation objects. If this parameter is TRUE, animation objects will be destroyed automatically when the group is destroyed. Otherwise animation objects must be destroyed manually. The default value is FALSE. Set this value to TRUE only if all animation objects that belong to group are allocated dynamically with operator new. |
|
Specifies how to destroy keyframes. If this value is TRUE, all keyframes are removed and destroyed; otherwise they are removed from the list only. The default value is TRUE. |
|
Contains a list of animation objects. |
|
Contains a list of keyframes. |
|
Points to animation storyboard. This pointer is valid only after call on Animate. |
Protected Data Members
Name |
Description |
---|---|
A unique identifier of animation group. |
|
A pointer to animation controller this group belongs to. |
Remarks
Animation groups are created automatically by animation controller (CAnimationController) when you add animation objects using CAnimationController::AddAnimationObject. An animation group is identified by GroupID, which is usually taken as a parameter to manipulate animation groups. The GroupID is taken from the first animation object being added to a new animation group. An encapsulated animation storyboard is created after you call CAnimationController::AnimateGroup and can be accessed via public member m_pStoryboard.
Inheritance Hierarchy
Requirements
Header: afxanimationcontroller.h