Mercurial > hg > orthanc-stone
diff Samples/Sdl/TrackerSampleApp.cpp @ 654:462a5074f914
Turned the scene into an observable to be able to dynamically react to
scene to canvas transform changes --> now the handles and angle measure
adornments are immune to zoom changes
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 14 May 2019 13:51:00 +0200 |
parents | 62f6ff016085 |
children | 002d9562c8f5 |
line wrap: on
line diff
--- a/Samples/Sdl/TrackerSampleApp.cpp Tue May 14 13:49:12 2019 +0200 +++ b/Samples/Sdl/TrackerSampleApp.cpp Tue May 14 13:51:00 2019 +0200 @@ -273,10 +273,10 @@ // return new EllipseMeasureTracker(scene_, measureTools_, undoStack_, e); case GuiTool_LineMeasure: return FlexiblePointerTrackerPtr(new CreateLineMeasureTracker( - scene_, undoStack_, measureTools_, e)); + IObserver::GetBroker(), scene_, undoStack_, measureTools_, e)); case GuiTool_AngleMeasure: return FlexiblePointerTrackerPtr(new CreateAngleMeasureTracker( - scene_, undoStack_, measureTools_, e)); + IObserver::GetBroker(), scene_, undoStack_, measureTools_, e)); return NULL; case GuiTool_CircleMeasure: LOG(ERROR) << "Not implemented yet!";