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

Method draged

imagepy/tools/Measure/area_tol.py:49–59  ·  view source on GitHub ↗
(self, ox, oy, nx, ny, i)

Source from the content-addressed store, hash-verified

47 return None
48
49 def draged(self, ox, oy, nx, ny, i):
50 self.update, self.infoupdate(), True
51 if i[0]==True:
52 for j in range(len(i[1])):
53 i[1][j] = (i[1][j][0]+(nx-ox), i[1][j][1]+(ny-oy))
54 else:
55 i[0][i[1]] = (nx, ny)
56 #print('drag,',i,self.body[0][0][i]hasattr(ips.roi, 'topolygon'))
57 if i[1]==0:i[0][-1] = (nx,ny)
58 if i[1]==len(i[0])-1:
59 i[0][0] = (nx, ny)
60
61 def report(self, title):
62 rst = []

Callers 11

mouse_moveMethod · 0.45
mouse_moveMethod · 0.45
mouse_moveMethod · 0.45
mouse_moveMethod · 0.45
mouse_moveMethod · 0.45
mouse_moveMethod · 0.45
mouse_moveMethod · 0.45
mouse_wheelMethod · 0.45
mouse_moveMethod · 0.45
mouse_moveMethod · 0.45
mouse_moveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected