From 76d185e26bbbda28c2e1c25487a0488d570236d0 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 29 Aug 2016 11:39:32 -0300 Subject: [PATCH] Better doc get_coordinate_cursor --- invesalius/data/viewer_slice.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 8de79e2..f61a9bd 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -976,7 +976,18 @@ class Viewer(wx.Panel): return mx, my def get_coordinate_cursor(self, mx, my, picker=None): - # Find position + """ + Given the mx, my screen position returns the x, y, z position in world + coordinates. + + Parameters + mx (int): x position. + my (int): y position + picker: the picker used to get calculate the voxel coordinate. + + Returns: + world coordinate (x, y, z) + """ if picker is None: picker = self.pick -- libgit2 0.21.2