Mercurial > hg > orthanc-stone
diff Framework/Widgets/LayerWidget.h @ 103:474d85e76499 wasm
mpr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 31 May 2017 18:05:33 +0200 |
parents | d18dcc963930 |
children | 53bd9277b025 |
line wrap: on
line diff
--- a/Framework/Widgets/LayerWidget.h Wed May 31 17:01:18 2017 +0200 +++ b/Framework/Widgets/LayerWidget.h Wed May 31 18:05:33 2017 +0200 @@ -45,7 +45,7 @@ SliceGeometry slice_; std::auto_ptr<Scene> currentScene_; std::auto_ptr<Scene> pendingScene_; - + std::vector<bool> changedLayers_; bool LookupLayer(size_t& index /* out */, const ILayerSource& layer) const; @@ -67,6 +67,7 @@ const Slice& slice, bool isError); + void ResetChangedLayers(); protected: virtual void GetSceneExtent(double& x1, @@ -108,5 +109,12 @@ { return slice_; } + + virtual bool HasUpdateContent() const + { + return true; + } + + virtual void UpdateContent(); }; }