Mercurial > hg > orthanc-stone
diff Samples/Common/MeasureToolsToolbox.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 |
line wrap: on
line diff
--- a/Samples/Common/MeasureToolsToolbox.cpp Tue May 14 13:49:12 2019 +0200 +++ b/Samples/Common/MeasureToolsToolbox.cpp Tue May 14 13:51:00 2019 +0200 @@ -43,7 +43,7 @@ chain.clear(); chain.reserve(4); ScenePoint2D centerC = centerS.Apply(scene.GetSceneToCanvasTransform()); - //TODO: take DPI into account + //TODO: take DPI into account double handleLX = centerC.GetX() - sideLength / 2; double handleTY = centerC.GetY() - sideLength / 2; double handleRX = centerC.GetX() + sideLength / 2;