개정판 9ce406c0
cad fix
Change-Id: Ia37481ad10cda6f2d1c252cae8b34994fca87e27
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
791 | 791 |
toler = int(configs[0].value) if configs else 20 |
792 | 792 |
detector = LineDetector(app_doc_data.imgSrc) |
793 | 793 |
|
794 |
lines = sorted([item for item in self.graphicsView.scene().items() if type(item) is QEngineeringLineItem], key=lambda param: param.length(), reverse=True)# if item.length() > 50] |
|
794 |
lines = sorted([item for item in self.graphicsView.scene().items() if type(item) is QEngineeringLineItem], key=lambda param: param.length() + 1 if param.isHorizontal() else param.length(), reverse=True)# if item.length() > 50]
|
|
795 | 795 |
lines_short = []#[item for item in self.graphicsView.scene().items() if type(item) is QEngineeringLineItem if item.length() <= 50] |
796 | 796 |
unknowns = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringUnknownItem] |
797 | 797 |
end_breaks = [item for item in self.graphicsView.scene().items() if type(item) is QEngineeringEndBreakItem] |
내보내기 Unified diff