OpenStructure
|
#include <data_observer.hh>
Public Member Functions | |
DataObserver (const ImageHandle &d) | |
DataObserver (const DataObserver &o) | |
DataObserver & | operator= (const DataObserver &o) |
virtual | ~DataObserver () |
virtual void | ObserverUpdate () |
virtual void | ObserverUpdate (const Extent &) |
virtual void | ObserverUpdate (const Point &) |
virtual void | ObserverRelease ()=0 |
void | ObserverInvalidate () |
virtual const ImageHandle & | GetObservedData () const |
bool | IsDataValid () const |
Protected Member Functions | |
void | SetObservedData (const ImageHandle &d) |
bool | is_valid () const |
Abstract base class of data observer.
Definition at line 59 of file data_observer.hh.
DataObserver | ( | const ImageHandle & | d | ) |
constructor
requires reference to data, then attaches itself to data
DataObserver | ( | const DataObserver & | o | ) |
|
virtual |
|
virtual |
Returns data that is observed.
|
protected |
|
inline |
Definition at line 96 of file data_observer.hh.
void ObserverInvalidate | ( | ) |
Called after ObserverRelease.
|
pure virtual |
Called if data is released from memory.
|
virtual |
called upon data change, noop by default
|
virtual |
special update, calls ObserverUpdate() by default
|
virtual |
special update, calls ObserverUpdate() by default
DataObserver& operator= | ( | const DataObserver & | o | ) |
|
protected |
Set new data to observe.
Automatically unregister previously observed data