VTK
|
record and play VTK events passing through a vtkRenderWindowInteractor More...
#include <vtkInteractorEventRecorder.h>
Public Types | |
typedef vtkInteractorObserver | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetEnabled (int) |
virtual void | SetInteractor (vtkRenderWindowInteractor *iren) |
void | Record () |
void | Play () |
void | Stop () |
void | Rewind () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetReadFromInputString (int) |
virtual int | GetReadFromInputString () |
virtual void | ReadFromInputStringOn () |
virtual void | ReadFromInputStringOff () |
virtual void | SetInputString (const char *) |
virtual char * | GetInputString () |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | OnChar () |
int | GetEnabled () |
void | EnabledOn () |
void | EnabledOff () |
void | On () |
void | Off () |
virtual vtkRenderWindowInteractor * | GetInteractor () |
virtual void | SetPriority (float) |
virtual float | GetPriority () |
virtual void | SetKeyPressActivation (int) |
virtual int | GetKeyPressActivation () |
virtual void | KeyPressActivationOn () |
virtual void | KeyPressActivationOff () |
virtual void | SetKeyPressActivationValue (char) |
virtual char | GetKeyPressActivationValue () |
virtual vtkRenderer * | GetDefaultRenderer () |
virtual void | SetDefaultRenderer (vtkRenderer *) |
virtual vtkRenderer * | GetCurrentRenderer () |
virtual void | SetCurrentRenderer (vtkRenderer *) |
void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | ReleaseFocus () |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkInteractorEventRecorder * | New () |
static int | IsTypeOf (const char *type) |
static vtkInteractorEventRecorder * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkInteractorObserver * | SafeDownCast (vtkObject *o) |
static void | ComputeDisplayToWorld (vtkRenderer *ren, double x, double y, double z, double worldPt[4]) |
static void | ComputeWorldToDisplay (vtkRenderer *ren, double x, double y, double z, double displayPt[3]) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObject *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
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 () |
![]() | |
vtkInteractorObserver () | |
~vtkInteractorObserver () | |
int | RequestCursorShape (int requestedShape) |
virtual void | StartInteraction () |
virtual void | EndInteraction () |
void | ComputeDisplayToWorld (double x, double y, double z, double worldPt[4]) |
void | ComputeWorldToDisplay (double x, double y, double z, double displayPt[3]) |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
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) |
![]() | |
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 |
![]() | |
int | Enabled |
vtkCallbackCommand * | EventCallbackCommand |
vtkCallbackCommand * | KeyPressCallbackCommand |
float | Priority |
int | KeyPressActivation |
char | KeyPressActivationValue |
vtkRenderWindowInteractor * | Interactor |
vtkRenderer * | CurrentRenderer |
vtkRenderer * | DefaultRenderer |
unsigned long | CharObserverTag |
unsigned long | DeleteObserverTag |
vtkObserverMediator * | ObserverMediator |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Static Protected Attributes | |
static float | StreamVersion |
record and play VTK events passing through a vtkRenderWindowInteractor
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.
Definition at line 49 of file vtkInteractorEventRecorder.h.
|
protected |
Definition at line 119 of file vtkInteractorEventRecorder.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkInteractorObserver.
|
static |
|
virtual |
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkInteractorObserver.
|
static |
|
virtual |
|
virtual |
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()). Initial value is 0.
Reimplemented from vtkInteractorObserver.
|
virtual |
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.
|
virtual |
Set/Get the name of a file events should be written to/from.
|
virtual |
Set/Get the name of a file events should be written to/from.
void vtkInteractorEventRecorder::Record | ( | ) |
Invoke this method to begin recording events. The events will be recorded to the filename indicated.
void vtkInteractorEventRecorder::Play | ( | ) |
Invoke this method to begin playing events from the current position. The events will be played back from the filename indicated.
void vtkInteractorEventRecorder::Stop | ( | ) |
Invoke this method to stop recording/playing events.
void vtkInteractorEventRecorder::Rewind | ( | ) |
Rewind to the beginning of the file.
|
virtual |
Enable reading from an InputString as compared to the default behavior, which is to read from a file.
|
virtual |
Enable reading from an InputString as compared to the default behavior, which is to read from a file.
|
virtual |
Enable reading from an InputString as compared to the default behavior, which is to read from a file.
|
virtual |
Enable reading from an InputString as compared to the default behavior, which is to read from a file.
|
virtual |
Set/Get the string to read from.
|
virtual |
Set/Get the string to read from.
|
staticprotected |
|
staticprotected |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Definition at line 95 of file vtkInteractorEventRecorder.h.
|
protected |
Definition at line 98 of file vtkInteractorEventRecorder.h.
|
protected |
Definition at line 99 of file vtkInteractorEventRecorder.h.
|
protected |
Definition at line 102 of file vtkInteractorEventRecorder.h.
|
protected |
Definition at line 103 of file vtkInteractorEventRecorder.h.
|
protected |
Definition at line 118 of file vtkInteractorEventRecorder.h.
|
staticprotected |
Definition at line 127 of file vtkInteractorEventRecorder.h.