개정판 c7fdab5c
fix line no cache, line type copy
Change-Id: Ib6e8f0c02087edcfb63cfc24fc34ff47472cfd0f
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
1063 | 1063 |
if res: |
1064 | 1064 |
for _prop in res: |
1065 | 1065 |
if str(_prop.UID) not in self._lineNoPropertiesUID: |
1066 |
self._lineNoPropertiesUID[str(_prop.UID)] = res
|
|
1066 |
self._lineNoPropertiesUID[str(_prop.UID)] = [_prop]
|
|
1067 | 1067 |
# Catch the exception |
1068 | 1068 |
except Exception as ex: |
1069 | 1069 |
print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
DTI_PID/DTI_PID/QtImageViewerScene.py | ||
---|---|---|
204 | 204 |
delta = origin - loc |
205 | 205 |
line = QEngineeringLineItem(vertices=[[startPoint[0] + delta.x(), startPoint[1] + delta.y()], |
206 | 206 |
[endPoint[0] + delta.x(), endPoint[1] + delta.y()]]) #.fromXml(node) |
207 |
line.lineType = node.find('TYPE').text if node.find('TYPE') is not None else 'Secondary' |
|
207 | 208 |
if line: |
208 | 209 |
'''lineF = line.line() |
209 | 210 |
loc = QPointF(lineF.x1(), lineF.y1()) |
내보내기 Unified diff