wxTst::WxVtkInteractorEventRecorder Class Reference

Record and play VTK events passing through wxVtkRenderWindowInteractors. More...

#include <VtkInteractorEventRecorder.h>

Inheritance diagram for wxTst::WxVtkInteractorEventRecorder:

Inheritance graph
[legend]
Collaboration diagram for wxTst::WxVtkInteractorEventRecorder:

Collaboration graph
[legend]

List of all members.

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 WxVtkMapGetWxVtkMap () 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


Detailed Description

Record and play VTK events passing through wxVtkRenderWindowInteractors.

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.


Member Typedef Documentation

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.


Member Enumeration Documentation

Enumerator:
Start 
Playing 
Recording 

Definition at line 167 of file VtkInteractorEventRecorder.h.


Constructor & Destructor Documentation

wxTst::WxVtkInteractorEventRecorder::WxVtkInteractorEventRecorder (  )  [protected]

Constructor.

Definition at line 128 of file VtkInteractorEventRecorder.h.

wxTst::WxVtkInteractorEventRecorder::~WxVtkInteractorEventRecorder (  )  [protected, virtual]

Destructor.

Definition at line 64 of file VtkInteractorEventRecorder.cpp.

References ClearInteractors(), FileName, InputStream, InputString, m_wxVtkMap, and OutputStream.


Member Function Documentation

void wxTst::WxVtkInteractorEventRecorder::AddInteractor ( const wxString &  wxVtkId,
wxVTKRenderWindowInteractor wxVtkRwi 
) [virtual]

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]

Definition at line 485 of file VtkInteractorEventRecorder.cpp.

References m_wxVtkMap.

virtual int wxTst::WxVtkInteractorEventRecorder::GetReadFromInputString (  )  [virtual]

wxString wxTst::WxVtkInteractorEventRecorder::GetRecordingAsEmitString ( const wxString &  tab  )  const

Definition at line 652 of file VtkInteractorEventRecorder.cpp.

References FileName.

const WxVtkInteractorEventRecorder::WxVtkMap & wxTst::WxVtkInteractorEventRecorder::GetWxVtkMap (  )  const

Definition at line 282 of file VtkInteractorEventRecorder.cpp.

References m_wxVtkMap.

bool wxTst::WxVtkInteractorEventRecorder::HasInputStream (  )  const

Definition at line 640 of file VtkInteractorEventRecorder.cpp.

References InputStream.

virtual int wxTst::WxVtkInteractorEventRecorder::IsA ( const char *  type  )  [virtual]

bool wxTst::WxVtkInteractorEventRecorder::IsEmptyRecording (  )  const

Definition at line 646 of file VtkInteractorEventRecorder.cpp.

References FileName.

static int wxTst::WxVtkInteractorEventRecorder::IsTypeOf ( const char *  type  )  [static]

static WxVtkInteractorEventRecorder * wxTst::WxVtkInteractorEventRecorder::New (  )  [static]

void wxTst::WxVtkInteractorEventRecorder::Play (  ) 

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 (  ) 

void wxTst::WxVtkInteractorEventRecorder::ResetRecording (  ) 

Definition at line 672 of file VtkInteractorEventRecorder.cpp.

References FileName, InputStream, m_wxVtkMap, and OutputStream.

void wxTst::WxVtkInteractorEventRecorder::RestoreWxVtkSettings (  ) 

Definition at line 229 of file VtkInteractorEventRecorder.cpp.

References m_wxVtkMap.

void wxTst::WxVtkInteractorEventRecorder::Rewind (  ) 

Definition at line 409 of file VtkInteractorEventRecorder.cpp.

References InputStream.

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]

virtual void wxTst::WxVtkInteractorEventRecorder::SetInputString ( const char *   )  [virtual]

void wxTst::WxVtkInteractorEventRecorder::SetInteractor ( vtkRenderWindowInteractor iren  )  [virtual]

Definition at line 421 of file VtkInteractorEventRecorder.cpp.

References SetEnabled().

virtual void wxTst::WxVtkInteractorEventRecorder::SetReadFromInputString ( int   )  [virtual]

void wxTst::WxVtkInteractorEventRecorder::Stop (  ) 

Definition at line 402 of file VtkInteractorEventRecorder.cpp.

References Start, and State.

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]

Definition at line 595 of file VtkInteractorEventRecorder.cpp.

References OutputStream.


Member Data Documentation

Definition at line 159 of file VtkInteractorEventRecorder.h.

Referenced by Play(), PrintSelf(), and ~WxVtkInteractorEventRecorder().

Definition at line 158 of file VtkInteractorEventRecorder.h.

Referenced by Play(), and PrintSelf().

Definition at line 166 of file VtkInteractorEventRecorder.h.

Referenced by Play(), Record(), and Stop().

float wxTst::WxVtkInteractorEventRecorder::StreamVersion = 2.0 [static, protected]

Definition at line 174 of file VtkInteractorEventRecorder.h.

Referenced by Record().


The documentation for this class was generated from the following files:

wxWidgets Logo Get wxGuiTesting at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on Tue Mar 17 17:29:31 2009 for wxGuiTesting by doxygen 1.5.5