Commit fd6166669bb91315308844a461bd7b8d579f4e79
1 parent
3eeb17e1
Exists in
interactor_style
Removed code which handle angular measurements from viewer_slice
Showing
1 changed file
with
0 additions
and
18 deletions
Show diff stats
invesalius/data/viewer_slice.py
@@ -254,10 +254,6 @@ class Viewer(wx.Panel): | @@ -254,10 +254,6 @@ class Viewer(wx.Panel): | ||
254 | const.STATE_DEFAULT: | 254 | const.STATE_DEFAULT: |
255 | { | 255 | { |
256 | }, | 256 | }, |
257 | - const.STATE_MEASURE_ANGLE: | ||
258 | - { | ||
259 | - "LeftButtonPressEvent": self.OnInsertAngularMeasurePoint | ||
260 | - }, | ||
261 | } | 257 | } |
262 | 258 | ||
263 | 259 | ||
@@ -1459,20 +1455,6 @@ class Viewer(wx.Panel): | @@ -1459,20 +1455,6 @@ class Viewer(wx.Panel): | ||
1459 | coord[index] = extent_min[index] | 1455 | coord[index] = extent_min[index] |
1460 | return coord | 1456 | return coord |
1461 | 1457 | ||
1462 | - def OnInsertAngularMeasurePoint(self, obj, evt): | ||
1463 | - x,y = self.interactor.GetEventPosition() | ||
1464 | - render = self.interactor.FindPokedRenderer(x, y) | ||
1465 | - slice_data = self.get_slice_data(render) | ||
1466 | - slice_number = slice_data.number | ||
1467 | - self.pick.Pick(x, y, 0, render) | ||
1468 | - x, y, z = self.pick.GetPickPosition() | ||
1469 | - if self.pick.GetViewProp(): | ||
1470 | - self.render_to_add = slice_data.renderer | ||
1471 | - Publisher.sendMessage("Add measurement point", | ||
1472 | - ((x, y,z), const.ANGULAR, ORIENTATIONS[self.orientation], | ||
1473 | - slice_number)) | ||
1474 | - self.interactor.Render() | ||
1475 | - | ||
1476 | def ReloadActualSlice(self, pubsub_evt): | 1458 | def ReloadActualSlice(self, pubsub_evt): |
1477 | pos = self.scroll.GetThumbPosition() | 1459 | pos = self.scroll.GetThumbPosition() |
1478 | self.set_slice_number(pos) | 1460 | self.set_slice_number(pos) |