vtkObservation Class Reference

#include <vtkObservation.h>

Inheritance diagram for vtkObservation:
vtkObject

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 vtkObservationNew ()
 The Usual vtk class functions.

Protected Member Functions

void operator= (const vtkObservation &)
 vtkObservation (const vtkObservation &)
 vtkObservation ()
virtual ~vtkObservation ()

Protected Attributes

vtkCallbackCommandCallbackCommand
std::deque< void * > CallDataList
charComment
unsigned long Event
vtkEventBrokerEventBroker
unsigned long EventTag
int InEventQueue
double LastElapsedTime
vtkCallbackCommandObservationCallbackCommand
vtkObjectObserver
unsigned long ObserverDeleteEventTag
charScript
vtkObjectSubject
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


Constructor & Destructor Documentation

vtkObservation::vtkObservation (  )  [protected]
vtkObservation::~vtkObservation (  )  [protected, virtual]
vtkObservation::vtkObservation ( const vtkObservation  )  [protected]

Member Function Documentation

void vtkObservation::AssignObserver ( vtkObject observer  )  [inline]
void vtkObservation::AssignSubject ( vtkObject subject  )  [inline]
std::deque<void *>* vtkObservation::GetCallDataList (  )  [inline]
static vtkObservation* vtkObservation::New (  )  [static]

The Usual vtk class functions.

Referenced by vtkObservation().

void vtkObservation::operator= ( const vtkObservation  )  [protected]
void vtkObservation::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
vtkObservation::vtkGetMacro ( TotalElapsedTime  ,
double   
)
vtkObservation::vtkGetMacro ( LastElapsedTime  ,
double   
)

Description Elapsed time of last invocation and total elaspsed time (in synchronous mode, elapsed time include children)

vtkObservation::vtkGetMacro ( ObserverDeleteEventTag  ,
unsigned  long 
)
vtkObservation::vtkGetMacro ( SubjectDeleteEventTag  ,
unsigned  long 
)
vtkObservation::vtkGetMacro ( EventTag  ,
unsigned  long 
)
vtkObservation::vtkGetMacro ( Event  ,
unsigned  long 
)
vtkObservation::vtkGetMacro ( InEventQueue  ,
int   
)
vtkObservation::vtkGetObjectMacro ( Observer  ,
vtkObject   
)
vtkObservation::vtkGetObjectMacro ( CallbackCommand  ,
vtkCallbackCommand   
)
vtkObservation::vtkGetObjectMacro ( Subject  ,
vtkObject   
)
vtkObservation::vtkGetObjectMacro ( ObservationCallbackCommand  ,
vtkCallbackCommand   
)
vtkObservation::vtkGetObjectMacro ( EventBroker  ,
vtkEventBroker   
)
vtkObservation::vtkGetStringMacro ( Comment   ) 
vtkObservation::vtkGetStringMacro ( Script   ) 
vtkObservation::vtkSetMacro ( TotalElapsedTime  ,
double   
)
vtkObservation::vtkSetMacro ( LastElapsedTime  ,
double   
)
vtkObservation::vtkSetMacro ( ObserverDeleteEventTag  ,
unsigned  long 
)
vtkObservation::vtkSetMacro ( SubjectDeleteEventTag  ,
unsigned  long 
)
vtkObservation::vtkSetMacro ( EventTag  ,
unsigned  long 
)
vtkObservation::vtkSetMacro ( Event  ,
unsigned  long 
)
vtkObservation::vtkSetMacro ( InEventQueue  ,
int   
)
vtkObservation::vtkSetObjectMacro ( CallbackCommand  ,
vtkCallbackCommand   
)
vtkObservation::vtkSetObjectMacro ( EventBroker  ,
vtkEventBroker   
)

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   ) 
vtkObservation::vtkTypeRevisionMacro ( vtkObservation  ,
vtkObject   
)

Member Data Documentation

Holder for callback that the Observer wants to have run when Event happens

Referenced by PrintSelf(), vtkObservation(), and ~vtkObservation().

std::deque<void *> vtkObservation::CallDataList [protected]

data passed to the observation by the subject

Holder for comment string

Referenced by PrintSelf(), and vtkObservation().

unsigned long vtkObservation::Event [protected]

Holder for Event

Referenced by PrintSelf(), and vtkObservation().

EventBroker that 'owns' this observation

Referenced by PrintSelf(), vtkObservation(), and ~vtkObservation().

unsigned long vtkObservation::EventTag [protected]

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

double vtkObservation::LastElapsedTime [protected]

Referenced by PrintSelf(), and vtkObservation().

Holder for callback that this object wants called when either the subject or the observer triggers and event

Referenced by vtkObservation(), and ~vtkObservation().

Holder for Observer

Referenced by PrintSelf(), and vtkObservation().

unsigned long vtkObservation::ObserverDeleteEventTag [protected]

Referenced by PrintSelf(), and vtkObservation().

Holder for script as an alternative to the callback command

Referenced by PrintSelf(), and vtkObservation().

Holder for Subject

Referenced by PrintSelf(), and vtkObservation().

unsigned long vtkObservation::SubjectDeleteEventTag [protected]

Referenced by PrintSelf(), and vtkObservation().

Referenced by PrintSelf(), and vtkObservation().


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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1