Commit c6f28051ab7663a98bc3147855eb20abb34bf7bb

Authored by Thiago Franco de Moraes
1 parent 80c49b32

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 237 path.AddLineToPoint(*p)
238 238 gc.StrokePath(path)
239 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 242 if len(lines) == 3:
243 243 path = gc.CreatePath()
... ... @@ -259,11 +259,10 @@ class CanvasRendererCTX:
259 259 sa = a1
260 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 264 else:
266   - txt = u"%.3f mm ひらがな - Hiragana, 히라가나" % m.value
  265 + txt = u"%.3f mm" % m.value
267 266 gc.DrawText(txt, *lines[0])
268 267  
269 268 gc.Destroy()
... ...