From 6b2136366c4b94c223eab304ce5e1de8a3e3c570 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Thu, 21 Jul 2016 11:08:21 -0300 Subject: [PATCH] Doc for draw_arc --- invesalius/data/viewer_slice.py | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index be15c89..ec1664f 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -321,6 +321,16 @@ class CanvasRendererCTX: gc.DrawText(text, tpx, tpy) def draw_arc(self, center, p0, p1, line_colour=(255, 0, 0, 128), width=2): + """ + Draw an arc passing in p0 and p1 centered at center. + + Params: + center: (x, y) center of the arc. + p0: (x, y). + p1: (x, y). + line_colour: RGBA line colour. + width: width of the line. + """ if self.gc is None: return None gc = self.gc -- libgit2 0.21.2