comparison Framework/Scene2DViewport/AngleMeasureTool.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 c0fcb2757b0a 712ff6ff3c19
comparison
equal deleted inserted replaced
699:5c551f078c18 700:059e1fd05fd6
36 namespace OrthancStone 36 namespace OrthancStone
37 { 37 {
38 class AngleMeasureTool : public MeasureTool 38 class AngleMeasureTool : public MeasureTool
39 { 39 {
40 public: 40 public:
41 AngleMeasureTool(MessageBroker& broker, Scene2DWPtr sceneW) 41 AngleMeasureTool(MessageBroker& broker, ViewportControllerWPtr controllerW)
42 : MeasureTool(broker, sceneW) 42 : MeasureTool(broker, controllerW)
43 , layersCreated(false) 43 , layersCreated(false)
44 , polylineZIndex_(-1) 44 , polylineZIndex_(-1)
45 , textBaseZIndex_(-1) 45 , textBaseZIndex_(-1)
46 { 46 {
47 47