Mercurial > hg > orthanc-stone
diff Samples/Common/MeasureCommands.h @ 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 | 1e9ed656318e |
children |
line wrap: on
line diff
--- a/Samples/Common/MeasureCommands.h Tue May 14 13:49:12 2019 +0200 +++ b/Samples/Common/MeasureCommands.h Tue May 14 13:51:00 2019 +0200 @@ -77,7 +77,7 @@ { public: CreateLineMeasureCommand( - Scene2D& scene, MeasureToolList& measureTools, ScenePoint2D point); + MessageBroker& broker, Scene2D& scene, MeasureToolList& measureTools, ScenePoint2D point); // the starting position is set in the ctor void SetEnd(ScenePoint2D scenePos); @@ -97,7 +97,7 @@ public: /** Ctor sets end of side 1*/ CreateAngleMeasureCommand( - Scene2D& scene, MeasureToolList& measureTools, ScenePoint2D point); + MessageBroker& broker, Scene2D& scene, MeasureToolList& measureTools, ScenePoint2D point); /** This method sets center*/ void SetCenter(ScenePoint2D scenePos);