27 #ifndef IMG_DATA_OBSERVER
28 #define IMG_DATA_OBSERVER
33 namespace ost {
namespace img {
39 Error(
String(
"InvalidObserver exception occurred: ") + s)
Abstract base class of data observer.
DataObserver & operator=(const DataObserver &o)
virtual void ObserverRelease()=0
Called if data is released from memory.
DataObserver(const ImageHandle &d)
constructor
virtual const ImageHandle & GetObservedData() const
Returns data that is observed.
virtual void ObserverUpdate(const Point &)
special update, calls ObserverUpdate() by default
DataObserver(const DataObserver &o)
virtual void ObserverUpdate()
called upon data change, noop by default
void ObserverInvalidate()
Called after ObserverRelease.
void SetObservedData(const ImageHandle &d)
Set new data to observe.
virtual void ObserverUpdate(const Extent &)
special update, calls ObserverUpdate() by default
Defines lower and upper valid indices.
Manage shared instances of images.
InvalidObserver(const String &s=String("unknown"))
class encapsulating 1D to 3D point
#define DLLEXPORT_OST_IMG_BASE