Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/CreateLineMeasureTracker.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 | 8b6adfb62a2f |
children | 28b9e3a54200 |
comparison
equal
deleted
inserted
replaced
699:5c551f078c18 | 700:059e1fd05fd6 |
---|---|
34 In turn, a container for these commands to store the actual measuring | 34 In turn, a container for these commands to store the actual measuring |
35 must be supplied, too | 35 must be supplied, too |
36 */ | 36 */ |
37 CreateLineMeasureTracker( | 37 CreateLineMeasureTracker( |
38 MessageBroker& broker, | 38 MessageBroker& broker, |
39 Scene2DWPtr scene, | 39 ViewportControllerWPtr controllerW, |
40 std::vector<TrackerCommandPtr>& undoStack, | 40 std::vector<TrackerCommandPtr>& undoStack, |
41 MeasureToolList& measureTools, | 41 MeasureToolList& measureTools, |
42 const PointerEvent& e); | 42 const PointerEvent& e); |
43 | 43 |
44 ~CreateLineMeasureTracker(); | 44 ~CreateLineMeasureTracker(); |