35#ifndef vtkInteractorEventRecorder_h
36#define vtkInteractorEventRecorder_h
39#include "vtkRenderingCoreModule.h"
43VTK_ABI_NAMESPACE_BEGIN
120 vtkSetStringMacro(InputString);
121 vtkGetStringMacro(InputString);
132 vtkSetMacro(ShowCursor,
bool);
133 vtkGetMacro(ShowCursor,
bool);
134 vtkBooleanMacro(ShowCursor,
bool);
157 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
159 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
161 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
163 virtual void WriteEvent(
const char* event,
int pos[2],
int modifiers,
int keyCode,
164 int repeatCount,
char* keySym,
void* callData =
nullptr);
195 bool ShowCursor =
false;
a actor that draws 2D data
supports function callbacks
a simple class to control print indentation
record and play VTK events passing through a vtkRenderWindowInteractor
virtual void ReadEvent(const std::string &line)
A method that parse a event line and invoke the corresponding event.
void Record()
Invoke this method to begin recording events.
vtkGetFilePathMacro(FileName)
Set/Get the name of a file events should be written to/from.
static void ProcessCharEvent(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
void SetEnabled(int) override
Methods for turning the interactor observer on and off, and determining its state.
void Rewind()
Rewind the play stream to the beginning of the file.
static float StreamVersion
void Play()
Invoke this method to begin playing events from the current position.
void SetInteractor(vtkRenderWindowInteractor *iren) override
This method is used to associate the widget with the render window interactor.
vtkInteractorEventRecorder()
virtual void WriteEvent(const char *event, int pos[2], int modifiers, int keyCode, int repeatCount, char *keySym, void *callData=nullptr)
~vtkInteractorEventRecorder() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool ReadFromInputString
void Stop()
Invoke this method to stop recording/playing events.
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
vtkSetFilePathMacro(FileName)
Set/Get the name of a file events should be written to/from.
static void ProcessDeleteEvent(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
float CurrentStreamVersion
void Clear()
Invoke this method to clear recording/playing stream and be able to open another file using the same ...
vtkCallbackCommand * DeleteEventCallbackCommand
static vtkInteractorEventRecorder * New()
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
Allocate and hold a VTK object.
abstract base class for most VTK objects
platform-independent render window interaction including picking and frame rate control.
a vtkAbstractArray subclass for strings