개정판 16417631
dev issue #663 : flange 시작전
Change-Id: I2a6b2059fcc5d6e88987d5be80bc6f65ec5ba4bd
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
1248 | 1248 |
# TODO: detect flange |
1249 | 1249 |
# detect flange |
1250 | 1250 |
for sym in searchedSymbolList: |
1251 |
worker.detectFlangeOnPid(sym, app_doc_data.activeDrawing.image_origin) |
|
1251 |
worker.detectFlangeOnPid(sym, app_doc_data.activeDrawing.image_origin, worker)
|
|
1252 | 1252 | |
1253 | 1253 |
# remove line has not connected item |
1254 | 1254 |
try: |
... | ... | |
1832 | 1832 |
return results |
1833 | 1833 | |
1834 | 1834 |
@staticmethod |
1835 |
def detectFlangeOnPid(symbol, img): |
|
1835 |
def detectFlangeOnPid(symbol, img, worker):
|
|
1836 | 1836 | |
1837 | 1837 |
pt = [float(x) for x in symbol.getSp()] |
1838 | 1838 |
connPts = [] |
... | ... | |
1847 | 1847 |
tokens) == 4 else None) |
1848 | 1848 | |
1849 | 1849 |
for point in connPts: |
1850 |
|
|
1850 |
# worker.displayLog.emit(MessageType.Error, "eer") |
|
1851 | 1851 |
continue |
1852 | 1852 | |
1853 | 1853 |
return None |
내보내기 Unified diff