Commit a5ba7b5c authored by Thomas Dowrick's avatar Thomas Dowrick

Issue #90: Remove left/right mouse button interactions from widgets. Only want...

Issue #90: Remove left/right mouse button interactions from widgets. Only want to scroll using mouse wheel
parent dd15128c
Pipeline #3929 passed with stages
in 6 minutes and 13 seconds
......@@ -73,9 +73,11 @@ class VTKResliceWidget(QVTKRenderWindowInteractor):
self.renderer.ResetCamera(self.actor.GetBounds())
self.GetRenderWindow().AddRenderer(self.renderer)
# Remove zoom behaviour for mouse wheel
self._Iren.RemoveObservers('MouseWheelForwardEvent')
self._Iren.RemoveObservers('MouseWheelBackwardEvent')
# Remove unwanted mouse interaction behaviours
actions = ['MouseWheelForwardEvent', 'MouseWheeBackwardEvent', \
'LeftButtonPressEvent', 'RightButtonPressEvent']
for action in actions:
self._Iren.RemoveObservers(action)
def set_slice_position(self, pos):
""" Set the slice position in the volume """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment