diff Samples/Common/AngleMeasureTool.cpp @ 651:62f6ff016085

Iteration in angle measuring tool. Text label is not ok and handles and arcs (and maybe angle sides) should not scale with zoom.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 14 May 2019 09:48:14 +0200
parents 1e9ed656318e
children 462a5074f914
line wrap: on
line diff
--- a/Samples/Common/AngleMeasureTool.cpp	Tue May 14 09:48:01 2019 +0200
+++ b/Samples/Common/AngleMeasureTool.cpp	Tue May 14 09:48:14 2019 +0200
@@ -160,9 +160,9 @@
         {
           PolylineSceneLayer::Chain chain;
 
-          AddArc(chain, GetScene(), side1End_, center_, side2End_, 
-            20.0*pixelToScene, true); //TODO: true means always clockwise
-          polylineLayer->AddChain(chain, true);
+          AddShortestArc(chain, GetScene(), side1End_, center_, side2End_, 
+            20.0*pixelToScene);
+          polylineLayer->AddChain(chain, false);
         }
       }
       {