15 #ifndef __vtkObservation_h 16 #define __vtkObservation_h 23 #include <vtkObject.h> 24 class vtkCallbackCommand;
50 void PrintSelf(ostream& os, vtkIndent indent)
override;
60 vtkGetMacro (InEventQueue,
int);
61 vtkSetMacro (InEventQueue,
int);
62 vtkGetObjectMacro (ObservationCallbackCommand, vtkCallbackCommand);
63 vtkGetObjectMacro (Subject, vtkObject);
65 vtkGetMacro (Event,
unsigned long);
66 vtkSetMacro (Event,
unsigned long);
67 virtual void SetCallbackCommand(vtkCallbackCommand* callbackCommand);
68 vtkGetObjectMacro (CallbackCommand, vtkCallbackCommand);
69 vtkSetStringMacro (Script);
70 vtkGetStringMacro (Script);
71 vtkGetObjectMacro (Observer, vtkObject);
73 vtkSetStringMacro (Comment);
74 vtkGetStringMacro (Comment);
75 vtkSetMacro(Priority,
float);
76 vtkGetMacro(Priority,
float);
78 vtkGetMacro (EventTag,
unsigned long);
79 vtkSetMacro (EventTag,
unsigned long);
80 vtkGetMacro (SubjectDeleteEventTag,
unsigned long);
81 vtkSetMacro (SubjectDeleteEventTag,
unsigned long);
82 vtkGetMacro (ObserverDeleteEventTag,
unsigned long);
83 vtkSetMacro (ObserverDeleteEventTag,
unsigned long);
88 vtkGetMacro (LastElapsedTime,
double);
89 vtkSetMacro (LastElapsedTime,
double);
90 vtkGetMacro (TotalElapsedTime,
double);
91 vtkSetMacro (TotalElapsedTime,
double);
95 inline CallType(
unsigned long eventID,
void* callData);
char * Script
Holder for script as an alternative to the callback command
void AssignSubject(vtkObject *subject)
vtkCallbackCommand * CallbackCommand
Holder for callback that the Observer wants to have run when Event happens
float Priority
Priority of the observer.
vtkObject * Subject
Holder for Subject
unsigned long Event
Holder for Event
unsigned long ObserverDeleteEventTag
Stores information about the relationship between a Subject and an Observer.
Class that manages adding and deleting of observers with events.
void AssignObserver(vtkObject *observer)
vtkObject * Observer
Holder for Observer
vtkCallbackCommand * ObservationCallbackCommand
std::deque< CallType > CallDataList
data passed to the observation by the subject
unsigned long SubjectDeleteEventTag
CallType(unsigned long eventID, void *callData)
char * Comment
Holder for comment string
vtkEventBroker * EventBroker
EventBroker that 'owns' this observation
std::deque< CallType > * GetCallDataList()