diff Framework/Scene2DViewport/MeasureTools.h @ 722:28b9e3a54200

Undo mechanism implemented (not connected to UI yet). Undo stack and measuring tools are now handled by the ViewportController. Multi-touch does not crash trackers anymore.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 21 May 2019 10:27:54 +0200
parents 059e1fd05fd6
children c0fcb2757b0a 712ff6ff3c19
line wrap: on
line diff
--- a/Framework/Scene2DViewport/MeasureTools.h	Mon May 20 12:49:29 2019 +0200
+++ b/Framework/Scene2DViewport/MeasureTools.h	Tue May 21 10:27:54 2019 +0200
@@ -63,6 +63,13 @@
 
   protected:
     MeasureTool(MessageBroker& broker, ViewportControllerWPtr controllerW);
+
+    /**
+    The measuring tool may exist in a standalone fashion, without any available
+    scene (because the controller is dead or dying). This call allows to check 
+    before accessing the scene.
+    */
+    bool IsSceneAlive() const;
     
     /**
     This is the meat of the tool: this method must [create (if needed) and]