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

Method pick

imagepy/tools/Measure/area_tol.py:41–47  ·  view source on GitHub ↗
(self, x, y, lim)

Source from the content-addressed store, hash-verified

39 return cur, cur.index(cid)
40
41 def pick(self, x, y, lim):
42 rst = self.snap(x, y, lim)
43 if rst!=None:return rst
44 for i in self.body:
45 if Polygon(i).contains(Point(x,y)):
46 return True, i
47 return None
48
49 def draged(self, ox, oy, nx, ny, i):
50 self.update, self.infoupdate(), True

Callers 10

mouse_downMethod · 0.45
mouse_downMethod · 0.45
mouse_downMethod · 0.45
mouse_downMethod · 0.45
mouse_downMethod · 0.45
mouse_downMethod · 0.45
mouse_downMethod · 0.45
mouse_downMethod · 0.45
mouse_downMethod · 0.45
mouse_downMethod · 0.45

Calls 1

snapMethod · 0.95

Tested by

no test coverage detected