Commit 6b2136366c4b94c223eab304ce5e1de8a3e3c570
1 parent
9dae93cc
Exists in
master
and in
26 other branches
Doc for draw_arc
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -321,6 +321,16 @@ class CanvasRendererCTX: |
321 | 321 | gc.DrawText(text, tpx, tpy) |
322 | 322 | |
323 | 323 | def draw_arc(self, center, p0, p1, line_colour=(255, 0, 0, 128), width=2): |
324 | + """ | |
325 | + Draw an arc passing in p0 and p1 centered at center. | |
326 | + | |
327 | + Params: | |
328 | + center: (x, y) center of the arc. | |
329 | + p0: (x, y). | |
330 | + p1: (x, y). | |
331 | + line_colour: RGBA line colour. | |
332 | + width: width of the line. | |
333 | + """ | |
324 | 334 | if self.gc is None: |
325 | 335 | return None |
326 | 336 | gc = self.gc | ... | ... |