Mercurial > hg > orthanc-stone
diff Framework/Widgets/LayerWidget.h @ 87:4a541cd4fa83 wasm
OrthancVolumeImageLoader
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 May 2017 15:31:58 +0200 |
parents | 02c3a7a4938f |
children | f244018a4e4b |
line wrap: on
line diff
--- a/Framework/Widgets/LayerWidget.h Fri May 26 13:42:50 2017 +0200 +++ b/Framework/Widgets/LayerWidget.h Fri May 26 15:31:58 2017 +0200 @@ -35,7 +35,7 @@ private: class Scene; - typedef std::map<ILayerSource*, size_t> LayersIndex; + typedef std::map<const ILayerSource*, size_t> LayersIndex; bool started_; LayersIndex layersIndex_; @@ -47,7 +47,7 @@ bool LookupLayer(size_t& index /* out */, - ILayerSource& layer) const; + const ILayerSource& layer) const; bool GetAndFixExtent(double& x1, double& y1, @@ -55,20 +55,20 @@ double& y2, ILayerSource& source) const; - virtual void NotifyGeometryReady(ILayerSource& source); + virtual void NotifyGeometryReady(const ILayerSource& source); - virtual void NotifyGeometryError(ILayerSource& source); + virtual void NotifyGeometryError(const ILayerSource& source); - virtual void NotifySourceChange(ILayerSource& source); + virtual void NotifyContentChange(const ILayerSource& source); - virtual void NotifySliceChange(ILayerSource& source, + virtual void NotifySliceChange(const ILayerSource& source, const Slice& slice); virtual void NotifyLayerReady(ILayerRenderer* renderer, - ILayerSource& source, + const ILayerSource& source, const Slice& slice); - virtual void NotifyLayerError(ILayerSource& source, + virtual void NotifyLayerError(const ILayerSource& source, const SliceGeometry& slice);