#include <vtkInteractorEventRecorder.h>
Inheritance diagram for vtkInteractorEventRecorder:
vtkInteractorEventRecorder records all VTK events invoked from a vtkRenderWindowInteractor. The events are recorded to a file. vtkInteractorEventRecorder can also be used to play those events back and invoke them on an vtkRenderWindowInteractor. (Note: the events can also be played back from a file or string.)
The format of the event file is simple. It is: EventName X Y ctrl shift keycode repeatCount keySym The format also allows "#" comments.
Definition at line 45 of file vtkInteractorEventRecorder.h.
Public Types | |
typedef vtkInteractorObserver | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetEnabled (int) |
void | Record () |
void | Play () |
void | Stop () |
virtual void | SetInteractor (vtkRenderWindowInteractor *iren) |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
void | Rewind () |
virtual void | SetReadFromInputString (int) |
virtual int | GetReadFromInputString () |
virtual void | ReadFromInputStringOn () |
virtual void | ReadFromInputStringOff () |
virtual void | SetInputString (const char *) |
virtual char * | GetInputString () |
Static Public Member Functions | |
static vtkInteractorEventRecorder * | New () |
static int | IsTypeOf (const char *type) |
static vtkInteractorEventRecorder * | SafeDownCast (vtkObject *o) |
Protected Types | |
enum | WidgetState { Start = 0, Playing, Recording } |
Protected Member Functions | |
vtkInteractorEventRecorder () | |
~vtkInteractorEventRecorder () | |
virtual void | WriteEvent (const char *event, int pos[2], int ctrlKey, int shiftKey, int keyCode, int repeatCount, char *keySym) |
virtual void | ReadEvent () |
Static Protected Member Functions | |
static void | ProcessCharEvent (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
static void | ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Protected Attributes | |
char * | FileName |
int | ReadFromInputString |
char * | InputString |
istream * | InputStream |
ostream * | OutputStream |
int | State |
Static Protected Attributes | |
static float | StreamVersion |
|
Reimplemented from vtkInteractorObserver. Definition at line 49 of file vtkInteractorEventRecorder.h. |
|
Definition at line 119 of file vtkInteractorEventRecorder.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject. |
|
Reimplemented from vtkInteractorObserver. |
|
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 vtkInteractorObserver. |
|
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 vtkInteractorObserver. |
|
Reimplemented from vtkInteractorObserver. |
|
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 vtkInteractorObserver. |
|
Methods for turning the interactor observer on and off, and determining its state. All subclasses must provide the SetEnabled() method. Enabling a vtkInteractorObserver has the side effect of adding observers; disabling it removes the observers. Prior to enabling the vtkInteractorObserver you must set the render window interactor (via SetInteractor()). Reimplemented from vtkInteractorObserver. |
|
This method is used to associate the widget with the render window interactor. Observers of the appropriate events invoked in the render window interactor are set up as a result of this method invocation. The SetInteractor() method must be invoked prior to enabling the vtkInteractorObserver. Reimplemented from vtkInteractorObserver. |
|
Set/Get the name of a file events should be written to/from. |
|
|
|
Invoke this method to begin recording events. The events will be recorded to the filename indicated. |
|
Invoke this method to begin playing events from the current position. The events will be played back from the filename indicated. |
|
Invoke this method to stop recording/playing events. |
|
Rewind to the beginning of the file. |
|
Enable reading from an InputString as compared to the default behavior, which is to read from a file. |
|
Rewind to the beginning of the file. |
|
Rewind to the beginning of the file. |
|
Rewind to the beginning of the file. |
|
Set/Get the string to read from. |
|
Set/Get the string to read from. |
|
|
|
Handles the char widget activation event. Also handles the delete event. Reimplemented from vtkInteractorObserver. |
|
|
|
|
|
Definition at line 95 of file vtkInteractorEventRecorder.h. |
|
Definition at line 98 of file vtkInteractorEventRecorder.h. |
|
Definition at line 99 of file vtkInteractorEventRecorder.h. |
|
Definition at line 102 of file vtkInteractorEventRecorder.h. |
|
Definition at line 103 of file vtkInteractorEventRecorder.h. |
|
Definition at line 118 of file vtkInteractorEventRecorder.h. |
|
Definition at line 127 of file vtkInteractorEventRecorder.h. |