Mercurial > hg > orthanc-stone
diff Framework/Layers/OrthancFrameLayerSource.h @ 252:40b21c1f8b8d am-2
more usage of IObservable/IObserver
author | am@osimis.io |
---|---|
date | Tue, 03 Jul 2018 10:26:56 +0200 |
parents | 192e6e349e69 |
children | c9cf95b49a86 |
line wrap: on
line diff
--- a/Framework/Layers/OrthancFrameLayerSource.h Mon Jul 02 18:13:46 2018 +0200 +++ b/Framework/Layers/OrthancFrameLayerSource.h Tue Jul 03 10:26:56 2018 +0200 @@ -29,23 +29,23 @@ { class OrthancFrameLayerSource : public LayerSourceBase, - private OrthancSlicesLoader::ICallback + private OrthancSlicesLoader::ISliceLoaderObserver { private: OrthancSlicesLoader loader_; SliceImageQuality quality_; - virtual void NotifyGeometryReady(const OrthancSlicesLoader& loader); + virtual void OnSliceGeometryReady(const OrthancSlicesLoader& loader); - virtual void NotifyGeometryError(const OrthancSlicesLoader& loader); + virtual void OnSliceGeometryError(const OrthancSlicesLoader& loader); - virtual void NotifySliceImageReady(const OrthancSlicesLoader& loader, + virtual void OnSliceImageReady(const OrthancSlicesLoader& loader, unsigned int sliceIndex, const Slice& slice, std::auto_ptr<Orthanc::ImageAccessor>& image, SliceImageQuality quality); - virtual void NotifySliceImageError(const OrthancSlicesLoader& loader, + virtual void OnSliceImageError(const OrthancSlicesLoader& loader, unsigned int sliceIndex, const Slice& slice, SliceImageQuality quality);