Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
88:90bf4116a23c | 89:f244018a4e4b |
---|---|
53 double& y1, | 53 double& y1, |
54 double& x2, | 54 double& x2, |
55 double& y2, | 55 double& y2, |
56 ILayerSource& source) const; | 56 ILayerSource& source) const; |
57 | 57 |
58 virtual void NotifyGeometryReady(const ILayerSource& source); | |
59 | |
60 virtual void NotifyGeometryError(const ILayerSource& source); | |
61 | |
62 virtual void NotifyContentChange(const ILayerSource& source); | 58 virtual void NotifyContentChange(const ILayerSource& source); |
63 | 59 |
64 virtual void NotifySliceChange(const ILayerSource& source, | 60 virtual void NotifySliceChange(const ILayerSource& source, |
65 const Slice& slice); | 61 const Slice& slice); |
66 | 62 |
84 void ResetPendingScene(); | 80 void ResetPendingScene(); |
85 | 81 |
86 void UpdateLayer(size_t index, | 82 void UpdateLayer(size_t index, |
87 ILayerRenderer* renderer, | 83 ILayerRenderer* renderer, |
88 const Slice& slice); | 84 const Slice& slice); |
85 | |
86 void InvalidateAllLayers(); | |
87 | |
88 void InvalidateLayer(size_t layer); | |
89 | 89 |
90 public: | 90 public: |
91 LayerWidget(); | 91 LayerWidget(); |
92 | 92 |
93 virtual ~LayerWidget(); | 93 virtual ~LayerWidget(); |
94 | 94 |
95 size_t AddLayer(ILayerSource* layer); // Takes ownership | 95 size_t AddLayer(ILayerSource* layer); // Takes ownership |
96 | |
97 size_t GetLayerCount() const | |
98 { | |
99 return layers_.size(); | |
100 } | |
96 | 101 |
97 void SetLayerStyle(size_t layer, | 102 void SetLayerStyle(size_t layer, |
98 const RenderStyle& style); | 103 const RenderStyle& style); |
99 | 104 |
100 void SetSlice(const SliceGeometry& slice); | 105 void SetSlice(const SliceGeometry& slice); |