comparison 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
comparison
equal deleted inserted replaced
650:200f7e1d57d1 651:62f6ff016085
158 158
159 // arc 159 // arc
160 { 160 {
161 PolylineSceneLayer::Chain chain; 161 PolylineSceneLayer::Chain chain;
162 162
163 AddArc(chain, GetScene(), side1End_, center_, side2End_, 163 AddShortestArc(chain, GetScene(), side1End_, center_, side2End_,
164 20.0*pixelToScene, true); //TODO: true means always clockwise 164 20.0*pixelToScene);
165 polylineLayer->AddChain(chain, true); 165 polylineLayer->AddChain(chain, false);
166 } 166 }
167 } 167 }
168 { 168 {
169 // Set the text layer proporeties 169 // Set the text layer proporeties
170 170