diff Framework/Viewport/IViewport.h @ 1213:86a8266b8888 broker

moving the scene from IViewport to ViewportController
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Dec 2019 17:54:10 +0100
parents 00e6bff9ea39
children 9efa66d8d3f8
line wrap: on
line diff
--- a/Framework/Viewport/IViewport.h	Wed Dec 04 16:54:24 2019 +0100
+++ b/Framework/Viewport/IViewport.h	Wed Dec 04 17:54:10 2019 +0100
@@ -47,8 +47,6 @@
       {
       }
 
-      virtual Scene2D& GetScene() = 0;
-
       // Get the center of the given pixel, in canvas coordinates
       virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) = 0;
 
@@ -56,7 +54,7 @@
 
       virtual ICompositor& GetCompositor() = 0;
 
-      virtual void FitContent() = 0;
+      virtual void FitContent(Scene2D& scene) = 0;
     };   
     
     virtual ~IViewport()
@@ -68,7 +66,7 @@
     virtual void Invalidate() = 0;
 
     // Must be invoked from the main (GUI) thread
-    virtual void Paint() = 0;
+    virtual void Paint(const Scene2D& scene) = 0;
 
     virtual void UpdateSize(unsigned int width,
                             unsigned int height) = 0;