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

Function mouseLeftMove

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

Source from the content-addressed store, hash-verified

75
76# Left mouse button is pan
77def mouseLeftMove(iRen,ren):
78 getMotion(iRen,ren)
79 cam.SetFocalPoint(fpW[0]+motionW[0],fpW[1]+motionW[1],fpW[2]+motionW[2])
80 cam.SetPosition(posW[0]+motionW[0],posW[1]+motionW[1],posW[2]+motionW[2])
81 iRen.Render()
82
83# Mouse middle button up/down is elevation, and left and right is azimuth
84def mouseMiddleMove(iRen,ren):

Callers 1

mouseMoveFunction · 0.85

Calls 4

getMotionFunction · 0.85
RenderMethod · 0.65
SetFocalPointMethod · 0.45
SetPositionMethod · 0.45

Tested by

no test coverage detected