comparison 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
comparison
equal deleted inserted replaced
721:af0aa0c149fa 722:28b9e3a54200
61 void OnSceneTransformChanged( 61 void OnSceneTransformChanged(
62 const ViewportController::SceneTransformChanged& message); 62 const ViewportController::SceneTransformChanged& message);
63 63
64 protected: 64 protected:
65 MeasureTool(MessageBroker& broker, ViewportControllerWPtr controllerW); 65 MeasureTool(MessageBroker& broker, ViewportControllerWPtr controllerW);
66
67 /**
68 The measuring tool may exist in a standalone fashion, without any available
69 scene (because the controller is dead or dying). This call allows to check
70 before accessing the scene.
71 */
72 bool IsSceneAlive() const;
66 73
67 /** 74 /**
68 This is the meat of the tool: this method must [create (if needed) and] 75 This is the meat of the tool: this method must [create (if needed) and]
69 update the layers and their data according to the measure tool kind and 76 update the layers and their data according to the measure tool kind and
70 current state. This is repeatedly called during user interaction 77 current state. This is repeatedly called during user interaction