Mercurial > hg > orthanc-stone
diff Framework/Scene2DViewport/MeasureToolsToolbox.cpp @ 1212:ab06dfdf3b75 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Dec 2019 16:54:24 +0100 |
parents | f3bb9a6dd949 b5dec783ba08 |
children | 0ca50d275b9a |
line wrap: on
line diff
--- a/Framework/Scene2DViewport/MeasureToolsToolbox.cpp Wed Dec 04 16:47:21 2019 +0100 +++ b/Framework/Scene2DViewport/MeasureToolsToolbox.cpp Wed Dec 04 16:54:24 2019 +0100 @@ -65,6 +65,11 @@ const ScenePoint2D& centerS, const double& sideLengthS) { + /* + The scene is required here because we need to draw the square with its + sides parallel to the SCREEN axis, not the SCENE axis + */ + // get the scaling factor const double sceneToCanvas = scene.GetSceneToCanvasTransform().ComputeZoom(); @@ -204,9 +209,9 @@ #endif void AddCircle(PolylineSceneLayer::Chain& chain, - const ScenePoint2D& centerS, - const double& radiusS, - const int numSubdivisions) + const ScenePoint2D& centerS, + const double& radiusS, + const int numSubdivisions) { //ScenePoint2D centerC = centerS.Apply(scene.GetSceneToCanvasTransform()); //TODO: take DPI into account