개정판 871c7009
issue #000: 2-way auto added
Change-Id: Id3a19fd0e132acf0d6fcc5fdf70302f5d64f8c6b
DTI_PID/DTI_PID/QtImageViewer.py | ||
---|---|---|
621 | 621 |
dx, dy = ddx * dy, ddy * dx |
622 | 622 |
else: |
623 | 623 |
dx, dy = ddx * dx, ddy * dy |
624 |
svg.angle = connectors[0].parentItem().angle |
|
624 |
|
|
625 |
if connectors[0].parentItem().connectors.index(connectors[0]) == 0: |
|
626 |
svg.angle = connectors[0].parentItem().angle |
|
627 |
else: |
|
628 |
if connectors[0].parentItem().angle == 0: |
|
629 |
svg.angle = 3.14 |
|
630 |
elif connectors[0].parentItem().angle == 3.14: |
|
631 |
svg.angle = 0.0 |
|
632 |
elif connectors[0].parentItem().angle == 1.57: |
|
633 |
svg.angle = 4.71 |
|
634 |
elif connectors[0].parentItem().angle == 4.71: |
|
635 |
svg.angle = 1.57 |
|
636 |
|
|
625 | 637 |
x, y = connectors[0].sceneBoundingRect().center().x() + dx, connectors[0].sceneBoundingRect().center().y() + dy |
626 | 638 |
svg.loc = [x - svg.symbolOrigin[0], y - svg.symbolOrigin[1]] |
627 | 639 |
svg.origin = [x, y] |
내보내기 Unified diff