diff Framework/Viewport/ViewportBase.h @ 1071:6dd90b8d1589

Fixes related to refactorings in viewports.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 15 Oct 2019 14:30:19 +0200
parents af456106576c
children 5e164c629923 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Viewport/ViewportBase.h	Tue Oct 15 10:54:53 2019 +0200
+++ b/Framework/Viewport/ViewportBase.h	Tue Oct 15 14:30:19 2019 +0200
@@ -41,6 +41,14 @@
       return *scene_;
     }
 
-    virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) ORTHANC_OVERRIDE;
+    virtual ScenePoint2D GetPixelCenterCoordinates(int x, int y) const ORTHANC_OVERRIDE;
+
+    virtual const ICompositor& GetCompositor() const ORTHANC_OVERRIDE
+    {
+      IViewport* mutableThis = 
+        const_cast<IViewport*>(static_cast<const IViewport*>(this));
+      return mutableThis->GetCompositor();
+    }
+
   };
 }