#include <AnimationServices.h>

Public Member Functions | |
| virtual AnimationController * | createAnimationController (const std::string &name, FrameType frameType)=0 |
| virtual bool | hasAnimationController (const std::string &name) const =0 |
| virtual AnimationController * | getAnimationController (const std::string &name) const =0 |
| virtual const std::vector < AnimationController * > & | getAnimationControllers () const =0 |
| virtual unsigned int | getNumAnimationControllers () const =0 |
| virtual void | setCurrentAnimationController (AnimationController *pController)=0 |
| virtual AnimationController * | getCurrentAnimationController () const =0 |
| virtual bool | renameAnimationController (AnimationController *pController, const std::string &newName)=0 |
| virtual void | destroyAnimationController (AnimationController *pController)=0 |
| virtual std::string | frameToString (const AnimationFrame &frame, FrameType frameType) const =0 |
Static Public Member Functions | |
| static const std::string & | signalControllerCreated () |
| static const std::string & | signalControllerDestroyed () |
Protected Member Functions | |
| virtual | ~AnimationServices () |
This class provides the capability to create and destroy animation controllers. A pointer to this class can be obtained by creating a Service<AnimationServices> instance.
This subclass of Subject will notify upon the following conditions:
Definition at line 38 of file AnimationServices.h.
| virtual AnimationServices::~AnimationServices | ( | ) | [protected, virtual] |
This class will be destroyed during application close.
Plug-ins do not need to destroy it.
Definition at line 225 of file AnimationServices.h.
| static const std::string& AnimationServices::signalControllerCreated | ( | ) | [static] |
Emitted with any<AnimationController*> when an animation controller is created.
Definition at line 45 of file AnimationServices.h.
| static const std::string& AnimationServices::signalControllerDestroyed | ( | ) | [static] |
Emitted with any<AnimationController*> when an animation controller is destroyed.
Definition at line 51 of file AnimationServices.h.
| virtual AnimationController* AnimationServices::createAnimationController | ( | const std::string & | name, | |
| FrameType | frameType | |||
| ) | [pure virtual] |
Creates a new animation controller.
This method creates a new animation controller with the given name and frame type. The controller name must be unique within the application.
| name | The animation controller name. This name cannot be empty and must be unique for all controllers in the application. | |
| frameType | The frame type for the animation controller. Once the controller is created, the frame type cannot be changed. |
| virtual bool AnimationServices::hasAnimationController | ( | const std::string & | name | ) | const [pure virtual] |
Queries whether an animation controller with a given name exists.
| name | The controller name. |
| virtual AnimationController* AnimationServices::getAnimationController | ( | const std::string & | name | ) | const [pure virtual] |
Returns the animation controller with a given name.
| name | The controller name. |
| virtual const std::vector<AnimationController*>& AnimationServices::getAnimationControllers | ( | ) | const [pure virtual] |
Retrieves all animation controllers.
| virtual unsigned int AnimationServices::getNumAnimationControllers | ( | ) | const [pure virtual] |
Returns the current number of animation controllers.
This is a convenience method that is identical to getAnimationControllers().size().
| virtual void AnimationServices::setCurrentAnimationController | ( | AnimationController * | pController | ) | [pure virtual] |
Sets the current animation controller on the Animation toolbar.
This method is a convenience method that calls AnimationToolBar::setAnimationController() passing in the given controller.
| pController | The animation controller to activate on the Animation toolbar. |
| virtual AnimationController* AnimationServices::getCurrentAnimationController | ( | ) | const [pure virtual] |
Returns the current animation controller on the Animation toolbar.
This method is a convenience method that calls AnimationToolBar::getAnimationController().
| virtual bool AnimationServices::renameAnimationController | ( | AnimationController * | pController, | |
| const std::string & | newName | |||
| ) | [pure virtual] |
Sets a new name for an animation controller.
| pController | The animation controller to rename. | |
| newName | The new name for the controller. The name cannot be the same as the name of any existing controller. |
| virtual void AnimationServices::destroyAnimationController | ( | AnimationController * | pController | ) | [pure virtual] |
Destroys an existing animation controller.
This method destroys the given animation controller and all of the animations that it contains.
| pController | The animation controller to destroy. |
| virtual std::string AnimationServices::frameToString | ( | const AnimationFrame & | frame, | |
| FrameType | frameType | |||
| ) | const [pure virtual] |
Returns a frame value as a formatted string.
| frame | The animation frame containing the value to convert to a string. | |
| frameType | The frame type that specifies the format of the returned string. |
| Frame Type | Format | Description |
| FRAME_ID | "n" | One-based numeric frame number |
| FRAME_TIME | "yyyy/MM/dd hh:mm:ss.zzz" | Year, month, day, hours, minutes, seconds, and milliseconds |
| FRAME_ELAPSED_TIME | "hh:mm:ss.zzz" | Hours, minutes, seconds, and milliseconds |