#include <vtkAnimationScene.h>
Inheritance diagram for vtkAnimationScene:
vtkAnimationCue and vtkAnimationScene provide the framework to support animations in VTK. vtkAnimationCue represents an entity that changes/ animates with time, while vtkAnimationScene represents scene or setup for the animation, which consists on individual cues or other scenes.
A scene can be played in real time mode, or as a seqence of frames 1/frame rate apart in time.
Definition at line 39 of file vtkAnimationScene.h.
virtual void | SetPlayMode (int) |
void | SetModeToSequence () |
void | SetModeToRealTime () |
virtual int | GetPlayMode () |
static vtkAnimationScene * | New () |
Public Types | |
typedef vtkAnimationCue | Superclass |
enum | PlayModes { PLAYMODE_SEQUENCE = 0, PLAYMODE_REALTIME = 1 } |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | Play () |
void | SetAnimationTime (double time) |
virtual void | SetTimeMode (int mode) |
int | IsInPlay () |
virtual void | SetFrameRate (double) |
virtual double | GetFrameRate () |
void | AddCue (vtkAnimationCue *cue) |
void | RemoveCue (vtkAnimationCue *cue) |
void | Stop () |
virtual void | SetLoop (int) |
virtual int | GetLoop () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkAnimationScene * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkAnimationScene () | |
void | InitializeChildren () |
void | FinalizeChildren () |
~vtkAnimationScene () | |
virtual void | TickInternal (double currenttime, double deltatime) |
virtual void | StartCueInternal () |
virtual void | EndCueInternal () |
Protected Attributes | |
int | PlayMode |
double | FrameRate |
int | Loop |
int | InPlay |
int | StopPlay |
double | AnimationTime |
vtkCollection * | AnimationCues |
vtkCollectionIterator * | AnimationCuesIterator |
vtkTimerLog * | AnimationTimer |
|
Reimplemented from vtkAnimationCue. Definition at line 42 of file vtkAnimationScene.h. |
|
Definition at line 96 of file vtkAnimationScene.h. |
|
|
|
|
|
Reimplemented from vtkAnimationCue. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkAnimationCue. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkAnimationCue. |
|
Reimplemented from vtkAnimationCue. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkAnimationCue. |
|
Get/Set the PlayMode for running/playing the animation scene. In the Sequence mode, all the frames are generated one after the other. The time reported to each Tick of the constituent cues (during Play) is incremented by 1/frame rate, irrespective of the current time. In the RealTime mode, time indicates the instance in time. Reimplemented from vtkAnimationCue. |
|
Get/Set the PlayMode for running/playing the animation scene. In the Sequence mode, all the frames are generated one after the other. The time reported to each Tick of the constituent cues (during Play) is incremented by 1/frame rate, irrespective of the current time. In the RealTime mode, time indicates the instance in time. |
|
Get/Set the PlayMode for running/playing the animation scene. In the Sequence mode, all the frames are generated one after the other. The time reported to each Tick of the constituent cues (during Play) is incremented by 1/frame rate, irrespective of the current time. In the RealTime mode, time indicates the instance in time. Definition at line 53 of file vtkAnimationScene.h. |
|
Get/Set the PlayMode for running/playing the animation scene. In the Sequence mode, all the frames are generated one after the other. The time reported to each Tick of the constituent cues (during Play) is incremented by 1/frame rate, irrespective of the current time. In the RealTime mode, time indicates the instance in time. Definition at line 54 of file vtkAnimationScene.h. |
|
Get/Set the PlayMode for running/playing the animation scene. In the Sequence mode, all the frames are generated one after the other. The time reported to each Tick of the constituent cues (during Play) is incremented by 1/frame rate, irrespective of the current time. In the RealTime mode, time indicates the instance in time. |
|
Get/Set the frame rate (in frames per second). This parameter affects only in the Sequence mode. The time interval indicated to each cue on every tick is progressed by 1/frame-rate seconds. |
|
Get/Set the frame rate (in frames per second). This parameter affects only in the Sequence mode. The time interval indicated to each cue on every tick is progressed by 1/frame-rate seconds. |
|
Add/Remove an AnimationCue to/from the Scene. It's an error to add a cue twice to the Scene. |
|
Add/Remove an AnimationCue to/from the Scene. It's an error to add a cue twice to the Scene. |
|
Starts playing the animation scene. |
|
Stops the animation scene that is running. |
|
Enable/Disable animation loop. |
|
Stops the animation scene that is running. |
|
Makes the state of the scene same as the given time. |
|
Overridden to allow change to Normalized mode only if none of the constituent cues is in Relative time mode. Reimplemented from vtkAnimationCue. |
|
Returns if the animation is being played. Definition at line 93 of file vtkAnimationScene.h. |
|
Called on every valid tick. Calls ticks on all the contained cues. Reimplemented from vtkAnimationCue. |
|
These are the internal methods that actually trigger they corresponding events. Subclasses can override these to do extra processing at start/end or on tick. Reimplemented from vtkAnimationCue. |
|
Reimplemented from vtkAnimationCue. |
|
|
|
|
|
Definition at line 117 of file vtkAnimationScene.h. |
|
Definition at line 118 of file vtkAnimationScene.h. |
|
Definition at line 119 of file vtkAnimationScene.h. |
|
Definition at line 120 of file vtkAnimationScene.h. |
|
Definition at line 121 of file vtkAnimationScene.h. |
|
Definition at line 122 of file vtkAnimationScene.h. |
|
Definition at line 124 of file vtkAnimationScene.h. |
|
Definition at line 125 of file vtkAnimationScene.h. |
|
Definition at line 126 of file vtkAnimationScene.h. |