개정판 0de0c0c4
issue #589: flow and line testing
Change-Id: I299273491a5420d198b9acd8b396e7ed57ad4141
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2491 | 2491 |
self.graphicsView.scene.addItem(item) |
2492 | 2492 |
|
2493 | 2493 |
# connect flow item to line |
2494 |
for line in lines: |
|
2495 |
line.update_arrow() |
|
2494 | 2496 |
#for flowMark in [item for item in symbols if type(item) is QEngineeringFlowMarkItem]: |
2495 | 2497 |
# for line in lines: |
2496 | 2498 |
# if flowMark.owner is line: |
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
409 | 409 |
textInfoList = textDetector.textInfoList.copy() if textDetector.textInfoList is not None else None |
410 | 410 |
otherTextInfoList = textDetector.otherTextInfoList.copy() if textDetector.otherTextInfoList is not None else None |
411 | 411 |
titleBlockTextInfoList = textDetector.titleBlockTextInfoList.copy() if textDetector.titleBlockTextInfoList is not None else None |
412 |
|
|
413 |
for index in range(len(textInfoList) - 1, -1, -1): |
|
414 |
if len(textInfoList[index].getText()) is 1: |
|
415 |
textInfoList.pop(index) |
|
412 | 416 |
|
413 | 417 |
appDocData.imgWidth, appDocData.imgHeight = appDocData.imgSrc.shape[::-1] |
414 | 418 |
Worker.drawFoundSymbolsOnCanvas(mainRes, textInfoList, listWidget) |
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
1187 | 1187 |
thicknessNode = node.find('THICKNESS') |
1188 | 1188 |
item.thickness = int(thicknessNode.text) if thicknessNode is not None and thicknessNode.text != 'None' else None |
1189 | 1189 |
|
1190 |
flowMarkNode = node.find('FLOWMARK') |
|
1191 |
item.flowMark = int(flowMarkNode.text) if flowMarkNode is not None and flowMarkNode.text != 'None' else None |
|
1192 |
|
|
1190 | 1193 |
connectors = node.find('CONNECTORS') |
1191 | 1194 |
if connectors is not None: |
1192 | 1195 |
iterIndex = 0 |
... | ... | |
1266 | 1269 |
thicknessNode.text = str(self.thickness) |
1267 | 1270 |
node.append(thicknessNode) |
1268 | 1271 |
|
1272 |
flowMarkNode = Element('FLOWMARK') |
|
1273 |
flowMarkNode.text = str(self.flowMark) |
|
1274 |
node.append(flowMarkNode) |
|
1275 |
|
|
1269 | 1276 |
connectorsNode = Element('CONNECTORS') |
1270 | 1277 |
for connector in self.connectors: |
1271 | 1278 |
connectorsNode.append(connector.toXml()) |
내보내기 Unified diff