diff Framework/Scene2D/Scene2D.h @ 700:059e1fd05fd6 refactor-viewport-controller

Introduced the ViewportController that sits between the application and the Scene2D to handle the trackers and measuring tools. This is a work in progress. The Scene2D is no longer an observable. Message sending is managed by the ViewportController. Move some refs to shared and weak to prevent lifetime issues.
author Benjamin Golinvaux <bgo@osimis.io>
date Sun, 19 May 2019 16:26:17 +0200
parents 5c551f078c18
children c0fcb2757b0a
line wrap: on
line diff
--- a/Framework/Scene2D/Scene2D.h	Fri May 17 09:20:46 2019 +0200
+++ b/Framework/Scene2D/Scene2D.h	Sun May 19 16:26:17 2019 +0200
@@ -30,11 +30,9 @@
 
 namespace OrthancStone
 {
-  class Scene2D : public IObservable
+  class Scene2D : public boost::noncopyable
   {
   public:
-    ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, SceneTransformChanged, Scene2D);
-    
     class IVisitor : public boost::noncopyable
     {
     public:
@@ -60,9 +58,7 @@
     Scene2D(const Scene2D& other);
     
   public:
-    Scene2D(MessageBroker& broker) 
-      : IObservable(broker)
-      , layerCounter_(0)
+    Scene2D() : layerCounter_(0)
     {
     }