CAnimationController Class
Implements the animation controller, which provides a central interface for creating and managing animations.
class CAnimationController : public CObject;
Members
Public Constructors
Name |
Description |
---|---|
Constructs an animation controller. |
|
The destructor. Called when animation controller object is being destroyed. |
Public Methods
Name |
Description |
---|---|
Adds an animation object to a group that belongs to the animation controller. |
|
Adds a keyframe to group. |
|
Prepares a group to run animation and optionally schedules it. |
|
Overloaded. Called by the framework to clean up the group when animation has been scheduled. |
|
Overloaded. Creates a keyframe that depends on transition and adds it to the specified group. |
|
Sets or releases a handler to call when animation manager's status changes. |
|
Sets or releases a handler for timing events and handler for timing updates. |
|
Sets or releases the priority comparison handler to call to determine whether a scheduled storyboard can be cancelled, concluded, trimmed or compressed. |
|
Sets or releases a handler for storyboard status and update events. |
|
Overloaded. Finds an animation group by its storyboard. |
|
Finds animation object containing a specified animation variable. |
|
Returns a keyframe that identifies start of storyboard. |
|
Provides access to encapsulated IUIAnimationManager object. |
|
Provides access to encapsulated IUIAnimationTimer object. |
|
A pointer to IUIAnimationTransitionFactory interface or NULL, if creation of transition library failed. |
|
Provides access to encapsulated IUIAnimationTransitionLibrary object. |
|
Tells whether at least one group is playing animation. |
|
Tells whether animation controller is valid. |
|
Called by the framework when integer value of animation variable has changed. |
|
Called by the framework in response to StatusChanged event from animation manager. |
|
Called by the framework after an animation update is finished. |
|
Called by the framework before an animation update begins. |
|
Called by the framework when the rendering frame rate for an animation falls below a minimum desirable frame rate. |
|
Called by the framework when value of animation variable has changed. |
|
Called by the framework right before the animation is scheduled. |
|
Called by the framework to resolve scheduling conflicts. |
|
Called by the framework to resolve scheduling conflicts. |
|
Called by the framework to resolve scheduling conflicts. |
|
Called by the framework to resolve scheduling conflicts. |
|
Called by the framework when storyboard status has changed. |
|
Called by the framework when storyboard has been updated. |
|
Removes all animation groups from animation controller. |
|
Removes an animation group with specified ID from animation controller. |
|
Remove an animation object from animation controller. |
|
Removes transitions from animation objects that belong to the specified group. |
|
Schedules an animation. |
|
Establishes a relationship between animation controller and a window. |
|
Directs the animation manager to update the values of all animation variables. |
Protected Methods
Name |
Description |
---|---|
Overloaded. A helper that cleans up the group. |
|
Called by the framework when an animation for the specified group has just been scheduled. |
Protected Data Members
Name |
Description |
---|---|
A keyframe that represents start of storyboard. |
|
Specifies whether an animation controller is valid or not. This member is set to FALSE if current OS does not support Windows Animation API. |
|
A list of animation groups that belong to this animation controller. |
|
Stores a pointer to Animation Manager COM object. |
|
Stores a pointer to Animation Timer COM object. |
|
A pointer to a related CWnd object, which can be automatically redrawn when the status of animation manager has changed, or post update event has occurred. Can be NULL. |
|
Stores a pointer to Transition Factory COM object. |
|
Stores a pointer to Transition Library COM object. |
Remarks
The CAnimationController class is the key class that manages animations. You may create one or more instances of animation controller in an application and, optionally, connect an instance of animation controller to a CWnd object using CAnimationController::SetRelatedWnd. This connection is required to send WM_PAINT messages to the related window automatically when animation manager status has changed or animation timer has been updated. If you do not enable this relation, you must redraw a window that displays an animation manually. For this purpose you can derive a class from CAnimationController and override OnAnimationManagerStatusChanged and/or OnAnimationTimerPostUpdate and invalidate one or more windows when necessary.
Inheritance Hierarchy
Requirements
Header: afxanimationcontroller.h