Commit 2375c44ff3ef3b679f6547535f3aa8572f57ee08
1 parent
f2fcafb0
Exists in
master
and in
68 other branches
ENH: There isn't gaps in the cursors
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
invesalius/data/cursor_actors.py
| ... | ... | @@ -78,6 +78,7 @@ class CursorCircle: |
| 78 | 78 | yi = i |
| 79 | 79 | for k in utils.frange(xi,xf,xs): |
| 80 | 80 | self.pixel_list.append((k, yi)) |
| 81 | + print k,yi, xs, ys | |
| 81 | 82 | |
| 82 | 83 | def SetSize(self, diameter): |
| 83 | 84 | radius = self.radius = diameter/2.0 |
| ... | ... | @@ -107,6 +108,7 @@ class CursorCircle: |
| 107 | 108 | |
| 108 | 109 | def SetSpacing(self, spacing): |
| 109 | 110 | self.spacing = spacing |
| 111 | + self.__calculate_area_pixels() | |
| 110 | 112 | |
| 111 | 113 | def GetPixels(self): |
| 112 | 114 | px, py, pz = self.edition_position | ... | ... |