개정판 9c4fde10
issue #492: fix from to opc item
Change-Id: I03908804c591c1247599dd4ab9f1826659d6150e
DTI_PID/DTI_PID/Shapes/QEngineeringOPCItem.py | ||
---|---|---|
60 | 60 |
def includes(self, item): |
61 | 61 |
topLeft = [item.loc[0], item.loc[1]] |
62 | 62 |
bottomRight = [item.loc[0] + item.size[0], item.loc[1] + item.size[1]] |
63 |
if self.contains(topLeft) and self.contains(bottomRight):
|
|
63 |
if self.contains_without_scene(topLeft) and self.contains_without_scene(bottomRight):
|
|
64 | 64 |
return True |
65 | 65 |
else: |
66 | 66 |
return False |
67 | 67 |
|
68 |
def contains(self, pt): |
|
68 |
def contains_without_scene(self, pt):
|
|
69 | 69 |
minX = self.loc[0] |
70 | 70 |
minY = self.loc[1] |
71 | 71 |
maxX = minX + self.size[0] |
내보내기 Unified diff