ParaView
Public Member Functions
pqPythonEventObserver Class Reference

Observes high-level ParaView events, and serializes them to a stream as Python for possible playback (as a test-case, demo, tutorial, etc). More...

#include <pqPythonEventObserver.h>

Inheritance diagram for pqPythonEventObserver:
Inheritance graph
[legend]
Collaboration diagram for pqPythonEventObserver:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 pqPythonEventObserver (QObject *p=0)
 ~pqPythonEventObserver ()
void onRecordEvent (const QString &Widget, const QString &Command, const QString &Arguments)
void setStream (QTextStream *)

Detailed Description

Observes high-level ParaView events, and serializes them to a stream as Python for possible playback (as a test-case, demo, tutorial, etc).

To use, connect the onRecordEvent() slot to the pqEventTranslator::recordEvent() signal.

Note:
Output is sent to the stream from this object's destructor, so you must ensure that it goes out of scope before trying to playback the stream.
See also:
pqEventTranslator, pqStdoutEventObserver, pqPythonEventSource.

Definition at line 52 of file pqPythonEventObserver.h.


Constructor & Destructor Documentation

pqPythonEventObserver::pqPythonEventObserver ( QObject *  p = 0)
pqPythonEventObserver::~pqPythonEventObserver ( )

Member Function Documentation

void pqPythonEventObserver::onRecordEvent ( const QString &  Widget,
const QString &  Command,
const QString &  Arguments 
) [virtual]

Implements pqEventObserver.

void pqPythonEventObserver::setStream ( QTextStream *  ) [virtual]

Reimplemented from pqEventObserver.


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