#include <VtkInteractorEventRecorder.h>


Public Types | |
| typedef std::list< wxSize > | SizeList |
| typedef vtkInteractorObserver | Superclass |
| typedef WxVtkStruct | WxVtk |
| typedef std::map< wxString, WxVtk * > | WxVtkMap |
Public Member Functions | |
| virtual void | AddInteractor (const wxString &wxVtkId, wxVTKRenderWindowInteractor *wxVtkRwi) |
| virtual const char * | GetClassName () |
| virtual char * | GetFileName () |
| virtual char * | GetInputString () |
| virtual wxVTKRenderWindowInteractor * | GetInteractor (const wxString &wxVtkId) const |
| virtual int | GetReadFromInputString () |
| wxString | GetRecordingAsEmitString (const wxString &tab) const |
| const WxVtkMap & | GetWxVtkMap () const |
| bool | HasInputStream () const |
| virtual int | IsA (const char *type) |
| bool | IsEmptyRecording () const |
| void | Play () |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual void | ReadFromInputStringOff () |
| virtual void | ReadFromInputStringOn () |
| void | Record () |
| void | ResetRecording () |
| void | RestoreWxVtkSettings () |
| void | Rewind () |
| virtual void | SetEnabled (int) |
| virtual void | SetFileName (const char *) |
| virtual void | SetInputString (const char *) |
| virtual void | SetInteractor (vtkRenderWindowInteractor *iren) |
| virtual void | SetReadFromInputString (int) |
| void | Stop () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static WxVtkInteractorEventRecorder * | New () |
| static WxVtkInteractorEventRecorder * | SafeDownCast (vtkObject *o) |
Protected Types | |
| enum | WidgetState { Start = 0, Playing, Recording } |
Protected Member Functions | |
| virtual void | ClearInteractors () |
| virtual wxString | GetInteractorId (wxVTKRenderWindowInteractor *wxVtkRwi) const |
| virtual void | ReadEvent () |
| virtual void | WriteEvent (const char *event, int pos[2], int ctrlKey, int shiftKey, int keyCode, int repeatCount, char *keySym, const char *wxVtkId) |
| WxVtkInteractorEventRecorder () | |
| Constructor. | |
| virtual | ~WxVtkInteractorEventRecorder () |
| Destructor. | |
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 |
| istream * | InputStream |
| char * | InputString |
| WxVtkMap | m_wxVtkMap |
| ostream * | OutputStream |
| int | ReadFromInputString |
| int | State |
Static Protected Attributes | |
| static float | StreamVersion = 2.0 |
Classes | |
| struct | WxVtkStruct |
Heavily based on standard VTK class vtkInteractorEventRecorder, but with support for several render window interactors, i.e. allowing multiplexing.
vtkInteractorEventRecorder: Records all VTK events invoked from a vtkRenderWindowInteractor. The events are recorded to a file. Those events can be played back by invocation on an vtkRenderWindowInteractor. The format of the event file is simple. It is: EventName X Y ctrl shift keycode repeatCount keySym
WxVtkInteractorEventRecorder uses this file during recording, and extends the format by appending the wxVTKRenderWindowInteractor ID.
Definition at line 47 of file VtkInteractorEventRecorder.h.
| typedef std::list< wxSize > wxTst::WxVtkInteractorEventRecorder::SizeList |
Definition at line 51 of file VtkInteractorEventRecorder.h.
Definition at line 66 of file VtkInteractorEventRecorder.h.
Definition at line 60 of file VtkInteractorEventRecorder.h.
| typedef std::map< wxString, WxVtk * > wxTst::WxVtkInteractorEventRecorder::WxVtkMap |
Definition at line 62 of file VtkInteractorEventRecorder.h.
enum wxTst::WxVtkInteractorEventRecorder::WidgetState [protected] |
| wxTst::WxVtkInteractorEventRecorder::WxVtkInteractorEventRecorder | ( | ) | [protected] |
| wxTst::WxVtkInteractorEventRecorder::~WxVtkInteractorEventRecorder | ( | ) | [protected, virtual] |
Destructor.
Definition at line 64 of file VtkInteractorEventRecorder.cpp.
References ClearInteractors(), FileName, InputStream, InputString, m_wxVtkMap, and OutputStream.
| void wxTst::WxVtkInteractorEventRecorder::AddInteractor | ( | const wxString & | wxVtkId, | |
| wxVTKRenderWindowInteractor * | wxVtkRwi | |||
| ) | [virtual] |
Definition at line 452 of file VtkInteractorEventRecorder.cpp.
References m_wxVtkMap.
Referenced by wxTst::VtkWxGuiTestHelper::RegisterForRecording().
| void wxTst::WxVtkInteractorEventRecorder::ClearInteractors | ( | ) | [protected, virtual] |
Definition at line 506 of file VtkInteractorEventRecorder.cpp.
References m_wxVtkMap, and SetEnabled().
Referenced by ~WxVtkInteractorEventRecorder().
| virtual const char* wxTst::WxVtkInteractorEventRecorder::GetClassName | ( | ) | [virtual] |
| virtual char* wxTst::WxVtkInteractorEventRecorder::GetFileName | ( | ) | [virtual] |
| virtual char* wxTst::WxVtkInteractorEventRecorder::GetInputString | ( | ) | [virtual] |
| wxVTKRenderWindowInteractor * wxTst::WxVtkInteractorEventRecorder::GetInteractor | ( | const wxString & | wxVtkId | ) | const [virtual] |
Definition at line 476 of file VtkInteractorEventRecorder.cpp.
References m_wxVtkMap.
Referenced by Play().
| wxString wxTst::WxVtkInteractorEventRecorder::GetInteractorId | ( | wxVTKRenderWindowInteractor * | wxVtkRwi | ) | const [protected, virtual] |
| virtual int wxTst::WxVtkInteractorEventRecorder::GetReadFromInputString | ( | ) | [virtual] |
| wxString wxTst::WxVtkInteractorEventRecorder::GetRecordingAsEmitString | ( | const wxString & | tab | ) | const |
| const WxVtkInteractorEventRecorder::WxVtkMap & wxTst::WxVtkInteractorEventRecorder::GetWxVtkMap | ( | ) | const |
| bool wxTst::WxVtkInteractorEventRecorder::HasInputStream | ( | ) | const |
| virtual int wxTst::WxVtkInteractorEventRecorder::IsA | ( | const char * | type | ) | [virtual] |
| bool wxTst::WxVtkInteractorEventRecorder::IsEmptyRecording | ( | ) | const |
| static int wxTst::WxVtkInteractorEventRecorder::IsTypeOf | ( | const char * | type | ) | [static] |
| static WxVtkInteractorEventRecorder * wxTst::WxVtkInteractorEventRecorder::New | ( | ) | [static] |
Referenced by wxTst::VtkWxGuiTestHelper::RegisterForRecording().
| void wxTst::WxVtkInteractorEventRecorder::Play | ( | ) |
Definition at line 288 of file VtkInteractorEventRecorder.cpp.
References FileName, GetInteractor(), InputStream, InputString, Playing, ReadFromInputString, Start, and State.
| void wxTst::WxVtkInteractorEventRecorder::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) |
Definition at line 617 of file VtkInteractorEventRecorder.cpp.
References FileName, InputString, and ReadFromInputString.
| static void wxTst::WxVtkInteractorEventRecorder::ProcessCharEvent | ( | vtkObject * | object, | |
| unsigned long | event, | |||
| void * | clientdata, | |||
| void * | calldata | |||
| ) | [static, protected] |
| static void wxTst::WxVtkInteractorEventRecorder::ProcessEvents | ( | vtkObject * | object, | |
| unsigned long | event, | |||
| void * | clientdata, | |||
| void * | calldata | |||
| ) | [static, protected] |
| void wxTst::WxVtkInteractorEventRecorder::ReadEvent | ( | ) | [protected, virtual] |
Definition at line 611 of file VtkInteractorEventRecorder.cpp.
| virtual void wxTst::WxVtkInteractorEventRecorder::ReadFromInputStringOff | ( | ) | [virtual] |
| virtual void wxTst::WxVtkInteractorEventRecorder::ReadFromInputStringOn | ( | ) | [virtual] |
| void wxTst::WxVtkInteractorEventRecorder::Record | ( | ) |
Definition at line 161 of file VtkInteractorEventRecorder.cpp.
References FileName, m_wxVtkMap, OutputStream, Recording, Start, State, and StreamVersion.
| void wxTst::WxVtkInteractorEventRecorder::ResetRecording | ( | ) |
Definition at line 672 of file VtkInteractorEventRecorder.cpp.
References FileName, InputStream, m_wxVtkMap, and OutputStream.
| void wxTst::WxVtkInteractorEventRecorder::RestoreWxVtkSettings | ( | ) |
| void wxTst::WxVtkInteractorEventRecorder::Rewind | ( | ) |
| static WxVtkInteractorEventRecorder* wxTst::WxVtkInteractorEventRecorder::SafeDownCast | ( | vtkObject * | o | ) | [static] |
| void wxTst::WxVtkInteractorEventRecorder::SetEnabled | ( | int | enabling | ) | [virtual] |
Definition at line 108 of file VtkInteractorEventRecorder.cpp.
References m_wxVtkMap.
Referenced by ClearInteractors(), and SetInteractor().
| virtual void wxTst::WxVtkInteractorEventRecorder::SetFileName | ( | const char * | ) | [virtual] |
Referenced by wxTst::VtkWxGuiTestHelper::RegisterForRecording().
| virtual void wxTst::WxVtkInteractorEventRecorder::SetInputString | ( | const char * | ) | [virtual] |
| void wxTst::WxVtkInteractorEventRecorder::SetInteractor | ( | vtkRenderWindowInteractor * | iren | ) | [virtual] |
| virtual void wxTst::WxVtkInteractorEventRecorder::SetReadFromInputString | ( | int | ) | [virtual] |
| void wxTst::WxVtkInteractorEventRecorder::Stop | ( | ) |
| void wxTst::WxVtkInteractorEventRecorder::WriteEvent | ( | const char * | event, | |
| int | pos[2], | |||
| int | ctrlKey, | |||
| int | shiftKey, | |||
| int | keyCode, | |||
| int | repeatCount, | |||
| char * | keySym, | |||
| const char * | wxVtkId | |||
| ) | [protected, virtual] |
char* wxTst::WxVtkInteractorEventRecorder::FileName [protected] |
Definition at line 155 of file VtkInteractorEventRecorder.h.
Referenced by GetRecordingAsEmitString(), IsEmptyRecording(), Play(), PrintSelf(), Record(), ResetRecording(), and ~WxVtkInteractorEventRecorder().
istream* wxTst::WxVtkInteractorEventRecorder::InputStream [protected] |
Definition at line 162 of file VtkInteractorEventRecorder.h.
Referenced by HasInputStream(), Play(), ResetRecording(), Rewind(), and ~WxVtkInteractorEventRecorder().
char* wxTst::WxVtkInteractorEventRecorder::InputString [protected] |
Definition at line 159 of file VtkInteractorEventRecorder.h.
Referenced by Play(), PrintSelf(), and ~WxVtkInteractorEventRecorder().
Definition at line 182 of file VtkInteractorEventRecorder.h.
Referenced by AddInteractor(), ClearInteractors(), GetInteractor(), GetInteractorId(), GetWxVtkMap(), Record(), ResetRecording(), RestoreWxVtkSettings(), SetEnabled(), and ~WxVtkInteractorEventRecorder().
ostream* wxTst::WxVtkInteractorEventRecorder::OutputStream [protected] |
Definition at line 163 of file VtkInteractorEventRecorder.h.
Referenced by Record(), ResetRecording(), WriteEvent(), and ~WxVtkInteractorEventRecorder().
int wxTst::WxVtkInteractorEventRecorder::ReadFromInputString [protected] |
int wxTst::WxVtkInteractorEventRecorder::State [protected] |
Definition at line 166 of file VtkInteractorEventRecorder.h.
float wxTst::WxVtkInteractorEventRecorder::StreamVersion = 2.0 [static, protected] |
1.5.5