MCPcopy Create free account
hub / github.com/Image-Py/imagepy / mouse_wheel

Method mouse_wheel

imagepy/tools/Standard/point_tol.py:48–54  ·  view source on GitHub ↗
(self, ips, x, y, d, **key)

Source from the content-addressed store, hash-verified

46 self.odx, self.ody = x, y
47
48 def mouse_wheel(self, ips, x, y, d, **key):
49 lim = 5.0/key['canvas'].get_scale()
50 if not isinstance(ips.roi, pointroi.PointRoi):return
51 if not self.onobj is None:
52 cur = ips.roi.body[self.onobj][2]
53 ips.roi.draged(self.odx, self.ody, x, y, cur+d, self.onobj)
54 ips.update()

Callers

nothing calls this directly

Calls 3

get_scaleMethod · 0.80
dragedMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected