ParaView
|
abstract proxy for manipulators used in animation. More...
#include <vtkPVCueManipulator.h>
Public Types | |
enum | { StateModifiedEvent = 2000 } |
StateModifiedEvent - This event is fired when the manipulator modifies the animated proxy. More... | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPVCueManipulator * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
virtual void | Initialize (vtkPVAnimationCue *) |
This method is called when the AnimationCue's StartAnimationCueEvent is triggerred, to let the animation manipulator know that the cue has been restarted. More... | |
virtual void | Finalize (vtkPVAnimationCue *) |
This method is called when the AnimationCue's EndAnimationCueEvent is triggerred. More... | |
virtual void | UpdateValue (double currenttime, vtkPVAnimationCue *cueproxy)=0 |
This updates the values based on currenttime. More... | |
vtkPVCueManipulator () | |
~vtkPVCueManipulator () | |
Friends | |
class | vtkPVAnimationCue |
abstract proxy for manipulators used in animation.
An animation cue proxy delegates the operation of modifying the property on the proxy being animated to a Manipulator. An example of a manipulator is a vtkPVKeyFrameCueManipulator. Subclasses must override UpdateValue
to perform the actual property manipulation. Just like all proxies involved in Animation, this is a client side proxy, with no VTK objects created on the server. A manipulator fires two kinds of events:
Definition at line 45 of file vtkPVCueManipulator.h.
typedef vtkObject vtkPVCueManipulator::Superclass |
Definition at line 48 of file vtkPVCueManipulator.h.
anonymous enum |
StateModifiedEvent - This event is fired when the manipulator modifies the animated proxy.
vtkCommand::Modified - is fired when the keyframes are changed i.e. added/removed/modified.
Enumerator | |
---|---|
StateModifiedEvent |
Definition at line 55 of file vtkPVCueManipulator.h.
|
protected |
|
protected |
|
virtual |
Reimplemented in vtkPVKeyFrameCueManipulator, and vtkPVCameraCueManipulator.
|
static |
|
virtual |
Reimplemented in vtkPVKeyFrameCueManipulator, and vtkPVCameraCueManipulator.
|
static |
void vtkPVCueManipulator::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
inlineprotectedvirtual |
This method is called when the AnimationCue's StartAnimationCueEvent is triggerred, to let the animation manipulator know that the cue has been restarted.
This is here for one major reason: after the last key frame, the state of the scene must be as it was left a the the last key frame. This does not happend automatically, since if while animating the currentime never coincides with the last key frame's key time, then it never gets a chance to update the properties value. Hence, we note when the cue begins. Then, if the currentime is beyond that of the last key frame we pretend that the current time coincides with that of the last key frame and let it update the properties. This is done only once per Animation cycle. The Initialize method is used to indicate that a new animation cycle has begun.
Reimplemented in vtkPVKeyFrameCueManipulator, and vtkPVCameraCueManipulator.
Definition at line 73 of file vtkPVCueManipulator.h.
|
inlineprotectedvirtual |
This method is called when the AnimationCue's EndAnimationCueEvent is triggerred.
Typically, the Manipulator will set the state of the Cue to that at the end of the cue.
Reimplemented in vtkPVKeyFrameCueManipulator, and vtkPVCameraCueManipulator.
Definition at line 80 of file vtkPVCueManipulator.h.
|
protectedpure virtual |
This updates the values based on currenttime.
currenttime is normalized to the time range of the Cue.
Implemented in vtkPVKeyFrameCueManipulator, and vtkPVCameraCueManipulator.
|
friend |
Definition at line 90 of file vtkPVCueManipulator.h.