개정판 c1d03a50
cad text
Change-Id: I770bb70576bfa06573289cd3932e62c02a87d4ba
DTI_PID/DTI_PID/ImportTextFromCADDialog.py | ||
---|---|---|
1496 | 1496 |
if abs(angle - 1.57) < allowed_error: |
1497 | 1497 |
# height, _width = _width, _height |
1498 | 1498 |
# loc[0], loc[1] = loc[0] - _width, loc[1] - _height + _width |
1499 |
loc[0] -= _width |
|
1499 |
loc[0] -= _width - 4 |
|
1500 |
loc[1] -= 4 |
|
1500 | 1501 |
elif abs(angle - 4.71) < allowed_error: |
1501 | 1502 |
# _height, _width = _width, _height |
1502 | 1503 |
# loc[0], loc[1] = loc[0] - _width, loc[1] + _height - _width |
1503 |
loc[0] -= _width |
|
1504 |
loc[0] -= _width - 4 |
|
1505 |
loc[1] -= 4 |
|
1504 | 1506 |
|
1505 | 1507 |
#_height = round(float(text_node.attrib['Height']) * self.scales[1]) |
1506 |
loc[1] -= _height |
|
1507 | 1508 |
#_width = round(_height * len(text) * self.text_scale) |
1508 | 1509 |
##_width = round(float(text_node.attrib['Width'])) |
1510 |
loc[1] -= _height - 4 |
|
1509 | 1511 |
|
1510 | 1512 |
item = QEngineeringTextItem() |
1511 | 1513 |
item.setPlainText(text) |
내보내기 Unified diff