Abstract base class of data observer. More...
#include <data_observer.hh>
Inherited by Argand, DataViewerPanelBase, and ParentDataObserver.
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 ~DataObserver | ( | ) | [virtual] |
virtual const ImageHandle& GetObservedData | ( | ) | const [virtual] |
Returns data that is observed.
bool is_valid | ( | ) | const [protected] |
bool IsDataValid | ( | ) | const [inline] |
Definition at line 96 of file data_observer.hh.
void ObserverInvalidate | ( | ) |
Called after ObserverRelease.
virtual void ObserverRelease | ( | ) | [pure virtual] |
Called if data is released from memory.
Implemented in Argand, DataViewerPanelBase, and ParentDataObserver.
virtual void ObserverUpdate | ( | const Point & | ) | [virtual] |
special update, calls ObserverUpdate() by default
Reimplemented in Argand, and DataViewerPanelBase.
virtual void ObserverUpdate | ( | const Extent & | ) | [virtual] |
special update, calls ObserverUpdate() by default
Reimplemented in Argand, and DataViewerPanelBase.
virtual void ObserverUpdate | ( | ) | [virtual] |
called upon data change, noop by default
Reimplemented in Argand, DataViewerPanelBase, and FFTPanel.
DataObserver& operator= | ( | const DataObserver & | o | ) |
void SetObservedData | ( | const ImageHandle & | d | ) | [protected] |
Set new data to observe.
Automatically unregister previously observed data