Commit f463ccdafdd0ced96ea4eaf4988fba0720b8d696
1 parent
b13cd163
Exists in
master
and in
25 other branches
Better comments to draw_line
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -240,6 +240,15 @@ class CanvasRendererCTX: |
240 | 240 | def draw_line(self, pos0, pos1, arrow_start=False, arrow_end=False, colour=(255, 0, 0, 128), width=2, style=wx.SOLID): |
241 | 241 | """ |
242 | 242 | Draw a line from pos0 to pos1 |
243 | + | |
244 | + Params: | |
245 | + pos0: the start of the line position (x, y). | |
246 | + pos1: the end of the line position (x, y). | |
247 | + arrow_start: if to draw a arrow at the start of the line. | |
248 | + arrow_end: if to draw a arrow at the end of the line. | |
249 | + colour: RGBA line colour. | |
250 | + width: the width of line. | |
251 | + style: default wx.SOLID. | |
243 | 252 | """ |
244 | 253 | if self.gc is None: |
245 | 254 | return None | ... | ... |