AlPlayBack
A static class for managing animation playback.
Synopsis
#include <AlPlayBack.h>
class AlPlayBack
static void playForward ();
static void playReverse ();
static void stop ();
static boolean inPlayBack ();
static void nextFrame ();
static void previousFrame ();
static void nextKeyframe ();
static void previousKeyframe ();
static void gotoStart ();
static void gotoEnd ();
static void gotoFrame (const double frame);
static AlCallBack *setCallBack (AlCallBack *callBack);
static void getStartEndBy (double &start, double &end, double &by);
Description
These set of static methods provide a plug-in developer with the ability to initiate and manage animation playback. A callback facility is also provided, which allows polling type plug-ins to perform a limited set of operations after each frame has been displayed.
Be VERY CAREFUL about what you do in this callback. As part of its optimisation technique, a lot of animation information is cached outside of the normal messaging system. This means that if you delete some animation objects while playback is active, at some stage PowerAnimator will become very confused (as in core dump confused).
Note that this class only functions in OpenAlias. In OpenModel the class exists but does not do anything.
Summary
void AlPlayBack::playForward ()
Description
Begin (or continue) playback forward.
void AlPlayBack::playReverse ()
Description
Begin (or continue) playback reverse.
void AlPlayBack::stop ()
Description
Stop playback.
boolean AlPlayBack::inPlayBack ()
Description
Return TRUE if Alias is currently in playback.
void AlPlayBack::nextFrame ()
Description
Increment the current playing frame (or view the next frame if you are not in playback mode).
void AlPlayBack::previousFrame ()
Description
Decrement the current playing frame (or view the previous frame if you are not in playback mode).
void AlPlayBack::nextKeyframe ()
Description
Advance the current playing frame to the next keyframe for currently selected objects (or view that frame if you are not in playback mode).
void AlPlayBack::previousKeyframe ()
Description
Back up the current playing frame to the previous keyframe for currently selected objects (or view that frame if you are not in playback mode).
void AlPlayBack::gotoStart ()
Description
Set the current playing frame to the start of the animation (or view that frame if you are not in playback mode).
void AlPlayBack::gotoEnd ()
Description
Set the current playing frame to the end of the animation (or view that frame if you are not in playback mode).
void AlPlayBack::gotoFrame (const double frame)
Description
Set the current playing frame to the requested frame (or view that frame if you are not in playback mode).
void AlPlayBack::getStartEndBy (double &start, double &end, double &by)
Description
Get the current start/end/by values specified by the user.
AlCallBack *AlPlayBack::setCallBack (AlCallBack *callBack)
Description
Set the current playback callback function. During playback, this function will be called after each frame is displayed. This function is primarily intended to be used by device polling plug-ins that may wish to alter playback conditions. The current callback function is returned, and you should restore that function when you are done.
aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.