Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
102:fcec0ab44054 | 103:474d85e76499 |
---|---|
43 std::vector<ILayerSource*> layers_; | 43 std::vector<ILayerSource*> layers_; |
44 std::vector<RenderStyle> styles_; | 44 std::vector<RenderStyle> styles_; |
45 SliceGeometry slice_; | 45 SliceGeometry slice_; |
46 std::auto_ptr<Scene> currentScene_; | 46 std::auto_ptr<Scene> currentScene_; |
47 std::auto_ptr<Scene> pendingScene_; | 47 std::auto_ptr<Scene> pendingScene_; |
48 | 48 std::vector<bool> changedLayers_; |
49 | 49 |
50 bool LookupLayer(size_t& index /* out */, | 50 bool LookupLayer(size_t& index /* out */, |
51 const ILayerSource& layer) const; | 51 const ILayerSource& layer) const; |
52 | 52 |
53 void GetLayerExtent(Extent& extent, | 53 void GetLayerExtent(Extent& extent, |
65 virtual void NotifyLayerReady(std::auto_ptr<ILayerRenderer>& renderer, | 65 virtual void NotifyLayerReady(std::auto_ptr<ILayerRenderer>& renderer, |
66 const ILayerSource& source, | 66 const ILayerSource& source, |
67 const Slice& slice, | 67 const Slice& slice, |
68 bool isError); | 68 bool isError); |
69 | 69 |
70 void ResetChangedLayers(); | |
70 | 71 |
71 protected: | 72 protected: |
72 virtual void GetSceneExtent(double& x1, | 73 virtual void GetSceneExtent(double& x1, |
73 double& y1, | 74 double& y1, |
74 double& x2, | 75 double& x2, |
106 | 107 |
107 const SliceGeometry& GetSlice() const | 108 const SliceGeometry& GetSlice() const |
108 { | 109 { |
109 return slice_; | 110 return slice_; |
110 } | 111 } |
112 | |
113 virtual bool HasUpdateContent() const | |
114 { | |
115 return true; | |
116 } | |
117 | |
118 virtual void UpdateContent(); | |
111 }; | 119 }; |
112 } | 120 } |