From c6f28051ab7663a98bc3147855eb20abb34bf7bb Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 18 Jul 2016 11:10:35 -0300 Subject: [PATCH] Drawing the arc from angular measurement --- invesalius/data/viewer_slice.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index feba7dc..69616e3 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -237,7 +237,7 @@ class CanvasRendererCTX: path.AddLineToPoint(*p) gc.StrokePath(path) if m.type == const.ANGULAR: - txt = u"%.3f°" % m.value + txt = u"%.3f° / %.3f" % (m.value, 360.0 - m.value) if len(lines) == 3: path = gc.CreatePath() @@ -259,11 +259,10 @@ class CanvasRendererCTX: sa = a1 ea = a0 - path.AddArc((c[0], c[1]), min(s0, s1), sa, ea) - gc.StrokePath(path) - + # path.AddArc((c[0], c[1]), min(s0, s1), sa, ea) + # gc.StrokePath(path) else: - txt = u"%.3f mm ひらがな - Hiragana, 히라가나" % m.value + txt = u"%.3f mm" % m.value gc.DrawText(txt, *lines[0]) gc.Destroy() -- libgit2 0.21.2