Mercurial > hg > orthanc-stone
comparison Framework/Widgets/LayerWidget.h @ 111:7665ccbf33db wasm
rename Extent as Extent2D
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Jun 2017 15:54:06 +0200 |
parents | 53025eecbc95 |
children | 948f86e61e83 |
comparison
equal
deleted
inserted
replaced
110:53025eecbc95 | 111:7665ccbf33db |
---|---|
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "WorldSceneWidget.h" | 24 #include "WorldSceneWidget.h" |
25 #include "../Layers/ILayerSource.h" | 25 #include "../Layers/ILayerSource.h" |
26 #include "../Toolbox/Extent.h" | 26 #include "../Toolbox/Extent2D.h" |
27 | 27 |
28 #include <map> | 28 #include <map> |
29 | 29 |
30 namespace OrthancStone | 30 namespace OrthancStone |
31 { | 31 { |
48 std::vector<bool> changedLayers_; | 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(Extent2D& extent, |
54 ILayerSource& source) const; | 54 ILayerSource& source) const; |
55 | 55 |
56 virtual void NotifyGeometryReady(const ILayerSource& source); | 56 virtual void NotifyGeometryReady(const ILayerSource& source); |
57 | 57 |
58 virtual void NotifyGeometryError(const ILayerSource& source); | 58 virtual void NotifyGeometryError(const ILayerSource& source); |
68 bool isError); | 68 bool isError); |
69 | 69 |
70 void ResetChangedLayers(); | 70 void ResetChangedLayers(); |
71 | 71 |
72 protected: | 72 protected: |
73 virtual Extent GetSceneExtent(); | 73 virtual Extent2D GetSceneExtent(); |
74 | 74 |
75 virtual bool RenderScene(CairoContext& context, | 75 virtual bool RenderScene(CairoContext& context, |
76 const ViewportGeometry& view); | 76 const ViewportGeometry& view); |
77 | 77 |
78 void ResetPendingScene(); | 78 void ResetPendingScene(); |