vtkObservation Class Reference
#include <vtkObservation.h>
List of all members.
Public Member Functions |
| void | AssignObserver (vtkObject *observer) |
| void | AssignSubject (vtkObject *subject) |
| std::deque< void * > * | GetCallDataList () |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| | vtkGetMacro (TotalElapsedTime, double) |
| | vtkGetMacro (LastElapsedTime, double) |
| | vtkGetMacro (ObserverDeleteEventTag, unsigned long) |
| | vtkGetMacro (SubjectDeleteEventTag, unsigned long) |
| | vtkGetMacro (EventTag, unsigned long) |
| | vtkGetMacro (Event, unsigned long) |
| | vtkGetMacro (InEventQueue, int) |
| | vtkGetObjectMacro (Observer, vtkObject) |
| | vtkGetObjectMacro (CallbackCommand, vtkCallbackCommand) |
| | vtkGetObjectMacro (Subject, vtkObject) |
| | vtkGetObjectMacro (ObservationCallbackCommand, vtkCallbackCommand) |
| | vtkGetObjectMacro (EventBroker, vtkEventBroker) |
| | vtkGetStringMacro (Comment) |
| | vtkGetStringMacro (Script) |
| | vtkSetMacro (TotalElapsedTime, double) |
| | vtkSetMacro (LastElapsedTime, double) |
| | vtkSetMacro (ObserverDeleteEventTag, unsigned long) |
| | vtkSetMacro (SubjectDeleteEventTag, unsigned long) |
| | vtkSetMacro (EventTag, unsigned long) |
| | vtkSetMacro (Event, unsigned long) |
| | vtkSetMacro (InEventQueue, int) |
| | vtkSetObjectMacro (CallbackCommand, vtkCallbackCommand) |
| | vtkSetObjectMacro (EventBroker, vtkEventBroker) |
| | vtkSetStringMacro (Comment) |
| | vtkSetStringMacro (Script) |
| | vtkTypeRevisionMacro (vtkObservation, vtkObject) |
Static Public Member Functions |
| static vtkObservation * | New () |
| | The Usual vtk class functions.
|
Protected Member Functions |
| void | operator= (const vtkObservation &) |
| | vtkObservation (const vtkObservation &) |
| | vtkObservation () |
| virtual | ~vtkObservation () |
Protected Attributes |
| vtkCallbackCommand * | CallbackCommand |
| std::deque< void * > | CallDataList |
| char * | Comment |
| unsigned long | Event |
| vtkEventBroker * | EventBroker |
| unsigned long | EventTag |
| int | InEventQueue |
| double | LastElapsedTime |
| vtkCallbackCommand * | ObservationCallbackCommand |
| vtkObject * | Observer |
| unsigned long | ObserverDeleteEventTag |
| char * | Script |
| vtkObject * | Subject |
| unsigned long | SubjectDeleteEventTag |
| double | TotalElapsedTime |
Detailed Description
vtkObservation - class that stores information about the relationship between a Subject and an Observer
The Observation is a record of
- a subject (vtkObject)
- an event type (unsigned long)
- an objserver (vtkObject)
- a callback (vtkCallbackCommand)
- optional comment strings This class can be used by the vtkEventBroker to keep track of the registered observers that it manages, and it can be used by the event queue to keep track of which events have been triggered so it can invoke them later .NOTES This class does not add or remove observers itself; it just keeps track of them for the event broker.
Constructor & Destructor Documentation
| vtkObservation::vtkObservation |
( |
|
) |
[protected] |
References vtkEventBroker::Callback(), CallbackCommand, Comment, Event, EventBroker, EventTag, InEventQueue, LastElapsedTime, New(), ObservationCallbackCommand, Observer, ObserverDeleteEventTag, Script, Subject, SubjectDeleteEventTag, and TotalElapsedTime.
| vtkObservation::~vtkObservation |
( |
|
) |
[protected, virtual] |
Member Function Documentation
| void vtkObservation::AssignObserver |
( |
vtkObject * |
observer |
) |
[inline] |
| void vtkObservation::AssignSubject |
( |
vtkObject * |
subject |
) |
[inline] |
| std::deque<void *>* vtkObservation::GetCallDataList |
( |
|
) |
[inline] |
| void vtkObservation::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent | |
|
) |
| | |
References CallbackCommand, Comment, Event, EventBroker, EventTag, LastElapsedTime, Observer, ObserverDeleteEventTag, Script, Subject, SubjectDeleteEventTag, and TotalElapsedTime.
Description Elapsed time of last invocation and total elaspsed time (in synchronous mode, elapsed time include children)
| vtkObservation::vtkGetMacro |
( |
EventTag |
, |
|
|
unsigned |
long | |
|
) |
| | |
| vtkObservation::vtkGetMacro |
( |
Event |
, |
|
|
unsigned |
long | |
|
) |
| | |
| vtkObservation::vtkGetStringMacro |
( |
Comment |
|
) |
|
| vtkObservation::vtkGetStringMacro |
( |
Script |
|
) |
|
| vtkObservation::vtkSetMacro |
( |
EventTag |
, |
|
|
unsigned |
long | |
|
) |
| | |
| vtkObservation::vtkSetMacro |
( |
Event |
, |
|
|
unsigned |
long | |
|
) |
| | |
Accessors
- note that AssignObject methods do not register the pointers
- it is assumed that the EventBroker will attach DeleteEvent observers to these objects and will thereby know when they are no longer valid
| vtkObservation::vtkSetStringMacro |
( |
Comment |
|
) |
|
| vtkObservation::vtkSetStringMacro |
( |
Script |
|
) |
|
Member Data Documentation
data passed to the observation by the subject
keep track of the tags returned by vtkObject::AddObserver so this observation will be easy to remove when the time comes
Referenced by PrintSelf(), and vtkObservation().
Flag that tells the broker that this observation is already in the event queue and doesn't need to be re-added
Referenced by vtkObservation().
The documentation for this class was generated from the following files: