|
QSDK 1.1 Documentation |
#include <Q/q.h>
Inheritance diagram for Q::Playback:

Public Types | |
| enum | Mode { replace, queue } |
Public Member Functions | |
| Utils::Result | playAnimation (Mode mode, const Animation &anim, float speed, float tweenDelay, float start, float end) |
| Utils::Result | playAnimation (Mode mode, const Animation &anim, float speed, float tweenDelay) |
| Utils::Result | seek (const Animation &, float time) |
| Utils::Result | getAnimation (Mode mode, Animation &anim, float &speed, float &tweenDelay, float &start, float &end) |
| float | speed () const |
| Utils::Result | setSpeed (float speed) |
| Utils::Result | addListener (PlaybackListener &listener) |
| Utils::Result | removeListener (PlaybackListener &listener) |
Static Public Member Functions | |
| Playback | create () |
| Playback | cast (const ObjectBase &) |
| ClassType | classType () |
The Playback object is used with the Animation object to initiate and control animation playback on an object.
|
|
A new animation playback can be started in various ways depending on how to handle cutting from the currently playing animation. |
|
|
Add a listener object which is called for animation events. |
|
|
If the object referenced by |
|
|
Return the type for this class. |
|
|
Create a new playback object. |
|
||||||||||||||||||||||||||||
|
Return the details of either the currently playing or queued animation segment, depending on the value of
|
|
||||||||||||||||||||
|
Play the entire contents of an animation (i.e. starting at the animation's start time and finishing at the animation's end time). |
|
||||||||||||||||||||||||||||
|
Play part of an animation at the given speed through this playback object. The new animation either replaces the current animation (if any) or is queued to start after it. Only one level of queued animation is supported - queueing an animation replaces any currently queued animation. If the new animation is replacing an existing one, any queued animation is also cancelled.
When the new animation starts (either now or after the current animation finishes), the current values of the playback's channels are interpolated from their current positions to the start position of the animation's channels. The time taken for this interpolation is
To cancel a queued animation, call Playback::playAnimation with a null animation handle and mode |
|
|
Remove a listener object which is called for animation events. |
|
||||||||||||
|
Synchronously move to the specified time in the specified animation. Unlike the asynchronous playAnimation, any objects being animated with this playback are immediately updated.
|
|
|
Set the speed of the currently playing animation. This speed is multiplied by the speed specified for the currently playing animation, allowing independent control of the entire sequence of animations. The value of |
|
|
Return the speed of the currently playing animation. |
|
|
|
Qube Software Limited © 2000-2004
|
|