|
VizKit
3.3.7
|
Abstract base class for composite implementation of Animation. More...
#include <VisualAnimationComponent.h>
Public Member Functions | |
| virtual | ~VisualAnimationComponent () |
| The destructor. | |
| virtual VisualAnimationComponent * | clone (void) const =0 |
| Copies the current VisualAnimationComponent and returns a pointer to a new VisualAnimationComponent. | |
| virtual void | animate (void)=0 |
| Executes the callback function to animate a property. | |
| virtual void | update (void)=0 |
| Updates the state of the animation. | |
| virtual bool | isRunning (void) const =0 |
| Answers the question whether the animation is (still) running. | |
| virtual bool | isReadyToDie (void) const =0 |
| Answers the question whether the animation ended and is ready to be destroyed. | |
| virtual void | start (void)=0 |
| Starts the Animation. | |
| virtual void | stop (void)=0 |
| Stops the Animation. | |
| virtual AnimatedProperty | getAnimatedProperty (void) const =0 |
| Returns the animated property of the animation. | |
| virtual void | preparePriorToAddingToAsset (VisualAsset &anAsset)=0 |
| Prepares the animation before it is added to an asset. | |
| virtual const VisualAsset *const | getEnclosingAsset (void) const =0 |
| Returns the asset the animation has been added to. | |
| virtual void | setIdentifierOfParentCollection (const VisualItemIdentifier &aCollectionIdentifier)=0 |
| Sets the identifier of the parent collection (the collection which the current animation is part of). | |
| virtual void | setCallbackToPerformAnyAdditionalAction (VisualAnimationPerformAnyAdditionalActionCallback theCallback, void *userData=NULL)=0 |
| Sets the callback function that is repeatedly called back during animation component's duration time. | |
| virtual void | setCallbackToNotifyBeforeDeath (VisualAnimationWillDieCallback theCallback, void *userData=NULL)=0 |
| Sets the callback function that is called right before the death of the animation component. | |
| virtual void | handleOneCollectionItemAnimationDied (void)=0 |
| Executes the appropriate action for the case that one animation of the current collection died. | |
| virtual VisualAnimationComponent * | getVisualAnimation (const VisualItemIdentifier &anAnimationIdentifier)=0 |
| Returns the VisualAnimation with the specified VisualItemIdentifier. | |
| virtual void | notifyBeforeDeath (void)=0 |
| Calls any callback functions right before the death of the animation component. | |
Protected Member Functions | |
| VisualAnimationComponent () | |
| The constructor. | |
| VisualAnimationComponent (const VisualAnimationComponent &other) | |
| Copy constructor. | |
Abstract base class for composite implementation of Animation.
| VisualAnimationComponent::~VisualAnimationComponent | ( | ) | [virtual] |
The destructor.
| VisualAnimationComponent::VisualAnimationComponent | ( | ) | [protected] |
The constructor.
| VisualAnimationComponent::VisualAnimationComponent | ( | const VisualAnimationComponent & | other | ) | [protected] |
Copy constructor.
| other | Reference to another VisualAnimationComponent. |
| virtual void VizKit::VisualAnimationComponent::animate | ( | void | ) | [pure virtual] |
Executes the callback function to animate a property.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual VisualAnimationComponent* VizKit::VisualAnimationComponent::clone | ( | void | ) | const [pure virtual] |
Copies the current VisualAnimationComponent and returns a pointer to a new VisualAnimationComponent.
Implements VizKit::VisualObject.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual AnimatedProperty VizKit::VisualAnimationComponent::getAnimatedProperty | ( | void | ) | const [pure virtual] |
Returns the animated property of the animation.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual const VisualAsset* const VizKit::VisualAnimationComponent::getEnclosingAsset | ( | void | ) | const [pure virtual] |
Returns the asset the animation has been added to.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual VisualAnimationComponent* VizKit::VisualAnimationComponent::getVisualAnimation | ( | const VisualItemIdentifier & | anAnimationIdentifier | ) | [pure virtual] |
Returns the VisualAnimation with the specified VisualItemIdentifier.
| anAnimationIdentifier | The identifier of the animation. |
Implemented in VizKit::VisualAnimationCluster, VizKit::VisualAnimationSequence, and VizKit::VisualAnimation.
| virtual void VizKit::VisualAnimationComponent::handleOneCollectionItemAnimationDied | ( | void | ) | [pure virtual] |
Executes the appropriate action for the case that one animation of the current collection died.
Implemented in VizKit::VisualAnimationCluster, VizKit::VisualAnimationSequence, and VizKit::VisualAnimation.
| virtual bool VizKit::VisualAnimationComponent::isReadyToDie | ( | void | ) | const [pure virtual] |
Answers the question whether the animation ended and is ready to be destroyed.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual bool VizKit::VisualAnimationComponent::isRunning | ( | void | ) | const [pure virtual] |
Answers the question whether the animation is (still) running.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual void VizKit::VisualAnimationComponent::notifyBeforeDeath | ( | void | ) | [pure virtual] |
Calls any callback functions right before the death of the animation component.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual void VizKit::VisualAnimationComponent::preparePriorToAddingToAsset | ( | VisualAsset & | anAsset | ) | [pure virtual] |
Prepares the animation before it is added to an asset.
| anAsset | The asset the animation is supposed to be added to. |
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual void VizKit::VisualAnimationComponent::setCallbackToNotifyBeforeDeath | ( | VisualAnimationWillDieCallback | theCallback, |
| void * | userData = NULL |
||
| ) | [pure virtual] |
Sets the callback function that is called right before the death of the animation component.
| theCallback | Pointer to c-style function (static class function). |
| userData | Additional data (e.g. pointer to instance variable of initialized class). |
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual void VizKit::VisualAnimationComponent::setCallbackToPerformAnyAdditionalAction | ( | VisualAnimationPerformAnyAdditionalActionCallback | theCallback, |
| void * | userData = NULL |
||
| ) | [pure virtual] |
Sets the callback function that is repeatedly called back during animation component's duration time.
| theCallback | Pointer to c-style function (static class function). |
| userData | Additional data (e.g. pointer to instance variable of initialized class). |
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual void VizKit::VisualAnimationComponent::setIdentifierOfParentCollection | ( | const VisualItemIdentifier & | aCollectionIdentifier | ) | [pure virtual] |
Sets the identifier of the parent collection (the collection which the current animation is part of).
| aCollectionIdentifier | The identifier of the parent collection. |
Implemented in VizKit::VisualAnimationCluster, VizKit::VisualAnimationSequence, and VizKit::VisualAnimation.
| virtual void VizKit::VisualAnimationComponent::start | ( | void | ) | [pure virtual] |
Starts the Animation.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual void VizKit::VisualAnimationComponent::stop | ( | void | ) | [pure virtual] |
Stops the Animation.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.
| virtual void VizKit::VisualAnimationComponent::update | ( | void | ) | [pure virtual] |
Updates the state of the animation.
Implemented in VizKit::VisualAnimation, VizKit::VisualAnimationCluster, and VizKit::VisualAnimationSequence.