개정판 948eb153
issue #537: improve connection symbol to symbol
Change-Id: I3e6e830cdc4335c92958099031390f736d910eb3
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
280 | 280 |
self.setLine(line[0][0], line[0][1], line[1][0], line[1][1]) |
281 | 281 |
self.connectors[0].setPos(line[0]) |
282 | 282 |
self.connectors[1].setPos(line[1]) |
283 |
self.update_arrow() |
|
283 | 284 |
|
284 | 285 |
''' |
285 | 286 |
@brief return start point |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
761 | 761 |
res.append(obj) |
762 | 762 |
elif issubclass(type(obj), SymbolSvgItem): |
763 | 763 |
for i in range(len(self.connectors)): |
764 |
if i > 3: break |
|
764 | 765 |
for j in range(len(obj.connectors)): |
766 |
if j > 3: break |
|
765 | 767 |
_pt = Point(obj.connectors[j].sceneConnectPoint[0], obj.connectors[j].sceneConnectPoint[1]) |
766 | 768 |
if (_pt.distance(Point(self.connectors[i].sceneConnectPoint[0], |
767 | 769 |
self.connectors[i].sceneConnectPoint[1])) < toler): |
내보내기 Unified diff