Commit c6f28051ab7663a98bc3147855eb20abb34bf7bb
1 parent
80c49b32
Exists in
master
and in
26 other branches
Drawing the arc from angular measurement
Showing
1 changed file
with
4 additions
and
5 deletions
Show diff stats
invesalius/data/viewer_slice.py
@@ -237,7 +237,7 @@ class CanvasRendererCTX: | @@ -237,7 +237,7 @@ class CanvasRendererCTX: | ||
237 | path.AddLineToPoint(*p) | 237 | path.AddLineToPoint(*p) |
238 | gc.StrokePath(path) | 238 | gc.StrokePath(path) |
239 | if m.type == const.ANGULAR: | 239 | if m.type == const.ANGULAR: |
240 | - txt = u"%.3f°" % m.value | 240 | + txt = u"%.3f° / %.3f" % (m.value, 360.0 - m.value) |
241 | 241 | ||
242 | if len(lines) == 3: | 242 | if len(lines) == 3: |
243 | path = gc.CreatePath() | 243 | path = gc.CreatePath() |
@@ -259,11 +259,10 @@ class CanvasRendererCTX: | @@ -259,11 +259,10 @@ class CanvasRendererCTX: | ||
259 | sa = a1 | 259 | sa = a1 |
260 | ea = a0 | 260 | ea = a0 |
261 | 261 | ||
262 | - path.AddArc((c[0], c[1]), min(s0, s1), sa, ea) | ||
263 | - gc.StrokePath(path) | ||
264 | - | 262 | + # path.AddArc((c[0], c[1]), min(s0, s1), sa, ea) |
263 | + # gc.StrokePath(path) | ||
265 | else: | 264 | else: |
266 | - txt = u"%.3f mm ひらがな - Hiragana, 히라가나" % m.value | 265 | + txt = u"%.3f mm" % m.value |
267 | gc.DrawText(txt, *lines[0]) | 266 | gc.DrawText(txt, *lines[0]) |
268 | 267 | ||
269 | gc.Destroy() | 268 | gc.Destroy() |