Mercurial > hg > orthanc-stone
diff Framework/Widgets/LayerWidget.h @ 89:f244018a4e4b wasm
BUGGY- trying to remove IVolumeSlicesObserver
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 May 2017 18:27:59 +0200 |
parents | 4a541cd4fa83 |
children | 64e60018943f |
line wrap: on
line diff
--- a/Framework/Widgets/LayerWidget.h Fri May 26 16:11:52 2017 +0200 +++ b/Framework/Widgets/LayerWidget.h Fri May 26 18:27:59 2017 +0200 @@ -55,10 +55,6 @@ double& y2, ILayerSource& source) const; - virtual void NotifyGeometryReady(const ILayerSource& source); - - virtual void NotifyGeometryError(const ILayerSource& source); - virtual void NotifyContentChange(const ILayerSource& source); virtual void NotifySliceChange(const ILayerSource& source, @@ -86,6 +82,10 @@ void UpdateLayer(size_t index, ILayerRenderer* renderer, const Slice& slice); + + void InvalidateAllLayers(); + + void InvalidateLayer(size_t layer); public: LayerWidget(); @@ -94,6 +94,11 @@ size_t AddLayer(ILayerSource* layer); // Takes ownership + size_t GetLayerCount() const + { + return layers_.size(); + } + void SetLayerStyle(size_t layer, const RenderStyle& style);