MCPcopy Create free account
hub / github.com/Kitware/VTK / mouseRightMove

Function mouseRightMove

Interaction/Style/Testing/Python/TestStyleUser.py:99–105  ·  view source on GitHub ↗
(iRen,ren)

Source from the content-addressed store, hash-verified

97# Right mouse button is rotate (left/right movement) and zoom in/out (up/down
98# movement)
99def mouseRightMove(iRen,ren):
100 getMotion(iRen,ren)
101 if abs(motionD[0]) > abs(motionD[1]):
102 cam.Azimuth(-2.0*motionD[0])
103 else:
104 cam.Zoom(1 + motionD[1]/100.0)
105 iRen.Render()
106
107# Mouse scroll wheel is zoom in/out
108def mouseWheelForward(iRen,ren):

Callers 1

mouseMoveFunction · 0.85

Calls 5

getMotionFunction · 0.85
RenderMethod · 0.65
absFunction · 0.50
AzimuthMethod · 0.45
ZoomMethod · 0.45

Tested by

no test coverage detected