|
VizKit
3.3.7
|
Queue of animations. More...
#include <VisualAnimationQueue.h>
Static Public Member Functions | |
| static void | dispose (void) |
| Cleans up the VisualAnimationQueue singleton. | |
| static void | push (const VisualAnimationComponent &anAnimation, const VisualItemIdentifier &anOwnerIdentifier) |
| Pushes a pointer to a VisualAnimationComponent at the end of the VisualAnimationQueue. | |
| static size_t | size (void) |
| Returns the number of animations currently stored in VisualAnimationQueue. | |
| static void | removeVisualAnimationsWithOwnerIdentifier (const VisualItemIdentifier &anOwnerIdentifier, const AnimatedProperty anAnimatedProperty) |
| Removes all VisualAnimations where the associated VisualItemIdentifier matches. | |
| static void | removeVisualAnimationsWithOwnerIdentifier (const VisualItemIdentifier &anOwnerIdentifier) |
| Removes all VisualAnimations where the associated VisualItemIdentifier matches. | |
| static void | removeVisualAnimationsOfAsset (const VisualAsset *const anAsset) |
| Removes VisualAnimations of an asset. | |
| static void | copyAnimationsFromAssetToAsset (const VisualAsset &sourceAsset, VisualAsset &destinationAsset) |
| Copies animations from one asset to another. | |
| static void | removeVisualAnimation (const VisualItemIdentifier &animationIdentifier) |
| Removes the VisualAnimation where the VisualItemIdentifier matches. | |
| static VisualAnimationComponent * | getVisualAnimation (const VisualItemIdentifier &anAnimationIdentifier) |
| Returns the VisualAnimation with the specified VisualItemIdentifier. | |
| static const VisualAnimationComponent *const | getFirstVisualAnimationWithOwnerIdentifier (const VisualItemIdentifier &anOwnerIdentifier, const AnimatedProperty &anAnimatedProperty) |
| Returns the VisualAnimation where the VisualItemIdentifier and the animated property matches. | |
| static void | processAnimations (void) |
| Processes te animations of the queue. | |
Private Types | |
| typedef std::multimap < VisualItemIdentifier, VisualAnimationComponent * > | AnimationQueue |
| An AnimationQueue is a queue of animations. | |
| typedef AnimationQueue::iterator | AnimationQueueIterator |
| A AnimationQueueIterator is an iterator of a AnimationQueue. | |
| typedef AnimationQueue::const_iterator | ConstAnimationQueueIterator |
| A ConstAnimationQueueIterator is a constant iterator of a AnimationQueue. | |
Private Member Functions | |
| VisualAnimationQueue () | |
| The constructor. | |
| ~VisualAnimationQueue () | |
| The destructor. | |
| VisualAnimationQueue (const VisualAnimationQueue &other) | |
| Copy constructor. | |
| VisualAnimationQueue & | operator= (const VisualAnimationQueue &other) |
| Assignment operator. | |
Static Private Member Functions | |
| static VisualAnimationQueue * | getInstance (void) |
| Returns a pointer to the instance. | |
Private Attributes | |
| AnimationQueue | animationQueue |
| The queue of the animations. | |
Static Private Attributes | |
| static VisualAnimationQueue * | theVisualAnimationQueue = NULL |
| VisualAnimationQueue is a singleton class. | |
Queue of animations.
Singleton. All methods are static for convenient access.
typedef std::multimap<VisualItemIdentifier, VisualAnimationComponent*> VizKit::VisualAnimationQueue::AnimationQueue [private] |
An AnimationQueue is a queue of animations.
typedef AnimationQueue::iterator VizKit::VisualAnimationQueue::AnimationQueueIterator [private] |
A AnimationQueueIterator is an iterator of a AnimationQueue.
typedef AnimationQueue::const_iterator VizKit::VisualAnimationQueue::ConstAnimationQueueIterator [private] |
A ConstAnimationQueueIterator is a constant iterator of a AnimationQueue.
| VisualAnimationQueue::VisualAnimationQueue | ( | ) | [private] |
The constructor.
VisualAnimationQueue is a singleton class. The constructor is private. New instance of class can only be created internally.
| VisualAnimationQueue::~VisualAnimationQueue | ( | ) | [private] |
The destructor.
VisualAnimationQueue is a singleton class. The destructor is private. Instance of class can only be destructed internally.
| VizKit::VisualAnimationQueue::VisualAnimationQueue | ( | const VisualAnimationQueue & | other | ) | [private] |
Copy constructor.
| other | Another VisualAnimationQueue. |
| void VisualAnimationQueue::copyAnimationsFromAssetToAsset | ( | const VisualAsset & | sourceAsset, |
| VisualAsset & | destinationAsset | ||
| ) | [static] |
Copies animations from one asset to another.
| sourceAsset | The source asset (the asset from which the animations are copied). |
| destinationAsset | The destination asset (the asset to which the animations are copied). |
| void VisualAnimationQueue::dispose | ( | void | ) | [static] |
Cleans up the VisualAnimationQueue singleton.
| const VisualAnimationComponent *const VisualAnimationQueue::getFirstVisualAnimationWithOwnerIdentifier | ( | const VisualItemIdentifier & | anOwnerIdentifier, |
| const AnimatedProperty & | anAnimatedProperty | ||
| ) | [static] |
Returns the VisualAnimation where the VisualItemIdentifier and the animated property matches.
| anOwnerIdentifier | An identifier that is connected with the animation. |
| anAnimatedProperty | Parameter that specifies the animated property of the animations. |
| VisualAnimationQueue * VisualAnimationQueue::getInstance | ( | void | ) | [static, private] |
Returns a pointer to the instance.
Initializes the VisualAnimationQueue class if neccessary. The VisualAnimationQueue is of singleton type.
| VisualAnimationComponent * VisualAnimationQueue::getVisualAnimation | ( | const VisualItemIdentifier & | anAnimationIdentifier | ) | [static] |
Returns the VisualAnimation with the specified VisualItemIdentifier.
| anAnimationIdentifier | The identifier of the animation. |
| VisualAnimationQueue& VizKit::VisualAnimationQueue::operator= | ( | const VisualAnimationQueue & | other | ) | [private] |
Assignment operator.
| void VisualAnimationQueue::processAnimations | ( | void | ) | [static] |
Processes te animations of the queue.
| void VisualAnimationQueue::push | ( | const VisualAnimationComponent & | anAnimation, |
| const VisualItemIdentifier & | anOwnerIdentifier | ||
| ) | [static] |
Pushes a pointer to a VisualAnimationComponent at the end of the VisualAnimationQueue.
| anAnimation | The animation. |
| anOwnerIdentifier | Identifier associated with the animation. |
| void VisualAnimationQueue::removeVisualAnimation | ( | const VisualItemIdentifier & | animationIdentifier | ) | [static] |
Removes the VisualAnimation where the VisualItemIdentifier matches.
| animationIdentifier | The identifier of the VisualAnimation which should be removed. |
| void VisualAnimationQueue::removeVisualAnimationsOfAsset | ( | const VisualAsset *const | anAsset | ) | [static] |
Removes VisualAnimations of an asset.
| anAsset | The asset. |
| void VisualAnimationQueue::removeVisualAnimationsWithOwnerIdentifier | ( | const VisualItemIdentifier & | anOwnerIdentifier, |
| const AnimatedProperty | anAnimatedProperty | ||
| ) | [static] |
Removes all VisualAnimations where the associated VisualItemIdentifier matches.
| anOwnerIdentifier | An identifier that is connected with the animation. |
| anAnimatedProperty | The animated property of the animation. |
| void VisualAnimationQueue::removeVisualAnimationsWithOwnerIdentifier | ( | const VisualItemIdentifier & | anOwnerIdentifier | ) | [static] |
Removes all VisualAnimations where the associated VisualItemIdentifier matches.
| anOwnerIdentifier | An identifier that is connected with the animation. |
| size_t VisualAnimationQueue::size | ( | void | ) | [static] |
Returns the number of animations currently stored in VisualAnimationQueue.
The queue of the animations.
VisualAnimationQueue * VisualAnimationQueue::theVisualAnimationQueue = NULL [static, private] |
VisualAnimationQueue is a singleton class.
Pointer to private instance is handled internally.