diff Framework/Widgets/LayerWidget.h @ 97:d18dcc963930 wasm

separation of the renderers vs. viewport slice
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 May 2017 14:09:11 +0200
parents f8bce1bebe01
children 474d85e76499
line wrap: on
line diff
--- a/Framework/Widgets/LayerWidget.h	Tue May 30 10:30:57 2017 +0200
+++ b/Framework/Widgets/LayerWidget.h	Tue May 30 14:09:11 2017 +0200
@@ -23,6 +23,7 @@
 
 #include "WorldSceneWidget.h"
 #include "../Layers/ILayerSource.h"
+#include "../Toolbox/Extent.h"
 
 #include <map>
 
@@ -49,11 +50,8 @@
     bool LookupLayer(size_t& index /* out */,
                      const ILayerSource& layer) const;
 
-    bool GetAndFixExtent(double& x1,
-                         double& y1,
-                         double& x2,
-                         double& y2,
-                         ILayerSource& source) const;
+    void GetLayerExtent(Extent& extent,
+                        ILayerSource& source) const;
 
     virtual void NotifyGeometryReady(const ILayerSource& source);