VizKit  3.3.7
Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
VizKit::VisualAnimationQueue Class Reference

Queue of animations. More...

#include <VisualAnimationQueue.h>

List of all members.

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 VisualAnimationComponentgetVisualAnimation (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.
VisualAnimationQueueoperator= (const VisualAnimationQueue &other)
 Assignment operator.

Static Private Member Functions

static VisualAnimationQueuegetInstance (void)
 Returns a pointer to the instance.

Private Attributes

AnimationQueue animationQueue
 The queue of the animations.

Static Private Attributes

static VisualAnimationQueuetheVisualAnimationQueue = NULL
 VisualAnimationQueue is a singleton class.

Detailed Description

Queue of animations.

Singleton. All methods are static for convenient access.


Member Typedef Documentation

An AnimationQueue is a queue of animations.

Remarks:
The VisualAnimationQueue stores its events as pointers to VisualAnimationComponents and VisualItemIdentifiers as keys for later retrieval.
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.


Constructor & Destructor Documentation

The constructor.

VisualAnimationQueue is a singleton class. The constructor is private. New instance of class can only be created internally.

The destructor.

VisualAnimationQueue is a singleton class. The destructor is private. Instance of class can only be destructed internally.

Copy constructor.

Parameters:
otherAnother VisualAnimationQueue.
Remarks:
Explicitely declared in private section and not implemented to enforce uniqueness of singleton pattern.

Member Function Documentation

void VisualAnimationQueue::copyAnimationsFromAssetToAsset ( const VisualAsset sourceAsset,
VisualAsset destinationAsset 
) [static]

Copies animations from one asset to another.

Parameters:
sourceAssetThe source asset (the asset from which the animations are copied).
destinationAssetThe 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.

Parameters:
anOwnerIdentifierAn identifier that is connected with the animation.
anAnimatedPropertyParameter that specifies the animated property of the animations.
Returns:
The VisualAnimation where the VisualItemIdentifier and the animated property matches.
Remarks:
Return value can be NULL.

Returns a pointer to the instance.

Initializes the VisualAnimationQueue class if neccessary. The VisualAnimationQueue is of singleton type.

Returns:
A pointer to the initialized VisualAnimationQueue.

Returns the VisualAnimation with the specified VisualItemIdentifier.

Parameters:
anAnimationIdentifierThe identifier of the animation.
Returns:
The VisualAnimation with the specified VisualItemIdentifier.
Remarks:
Return value can be NULL if no VisualAnimation with the specified VisualItemIdentifier is found.
VisualAnimationQueue& VizKit::VisualAnimationQueue::operator= ( const VisualAnimationQueue other) [private]

Assignment operator.

Remarks:
Explicitely declared in private section and not implemented to enforce uniqueness of singleton pattern.
void VisualAnimationQueue::processAnimations ( void  ) [static]

Processes te animations of the queue.

Remarks:
Called by VisualStageControl prior to show of ensemble.
void VisualAnimationQueue::push ( const VisualAnimationComponent anAnimation,
const VisualItemIdentifier anOwnerIdentifier 
) [static]

Pushes a pointer to a VisualAnimationComponent at the end of the VisualAnimationQueue.

Parameters:
anAnimationThe animation.
anOwnerIdentifierIdentifier associated with the animation.
Remarks:
The animation is copied by calling clone() before it is added to the queue.
void VisualAnimationQueue::removeVisualAnimation ( const VisualItemIdentifier animationIdentifier) [static]

Removes the VisualAnimation where the VisualItemIdentifier matches.

Parameters:
animationIdentifierThe identifier of the VisualAnimation which should be removed.
void VisualAnimationQueue::removeVisualAnimationsOfAsset ( const VisualAsset *const  anAsset) [static]

Removes VisualAnimations of an asset.

Parameters:
anAssetThe asset.
void VisualAnimationQueue::removeVisualAnimationsWithOwnerIdentifier ( const VisualItemIdentifier anOwnerIdentifier,
const AnimatedProperty  anAnimatedProperty 
) [static]

Removes all VisualAnimations where the associated VisualItemIdentifier matches.

Parameters:
anOwnerIdentifierAn identifier that is connected with the animation.
anAnimatedPropertyThe animated property of the animation.

Removes all VisualAnimations where the associated VisualItemIdentifier matches.

Parameters:
anOwnerIdentifierAn identifier that is connected with the animation.
size_t VisualAnimationQueue::size ( void  ) [static]

Returns the number of animations currently stored in VisualAnimationQueue.


Member Data Documentation

The queue of the animations.

VisualAnimationQueue is a singleton class.

Pointer to private instance is handled internally.


The documentation for this class was generated from the following files:

Generated on Sun May 3 2015 20:26:31 for VizKit by doxygen 1.8.0