프로젝트

일반

사용자정보

개정판 aef56f4a

IDaef56f4a9a6964b2a3e1777114b5556056dda700
상위 2a275af3
하위 0f7117e5, 2ffe1307

humkyung 이(가) 6년 이상 전에 추가함

fixed issue #622:
- write texts to xml

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
1546 1546
                    appDocData.equipments.append(item)
1547 1547

  
1548 1548
            appDocData.texts.clear()
1549
            appDocData.texts = [item for item in self.graphicsView.scene.items() if issubclass(type(item), QEngineeringTextItem) and type(item) is not QEngineeringLineNoItem]
1549
            appDocData.texts = [item for item in self.graphicsView.scene.items() if issubclass(type(item), QEngineeringTextItem) and type(item) is not QEngineeringLineNoTextItem]
1550 1550
            ## up to here
1551 1551

  
1552
            appDocData.imgOutput = np.ones((docData.imgHeight, docData.imgWidth), np.uint8)*255
1553
            xg.writeOutputXml(docData.imgName, docData.imgWidth, docData.imgHeight) # TODO: check
1554
            project = docData.getCurrentProject()
1552
            appDocData.imgOutput = np.ones((appDocData.imgHeight, appDocData.imgWidth), np.uint8)*255
1553
            xg.writeOutputXml(appDocData.imgName, appDocData.imgWidth, appDocData.imgHeight) # TODO: check
1554
            project = appDocData.getCurrentProject()
1555 1555
            cv2.imwrite(os.path.join(project.getTempPath() , 'OUTPUT.png') , appDocData.imgOutput)
1556 1556
        except Exception as ex:
1557 1557
            message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)
1558 1558
            self.addMessage.emit(MessageType.Error, message)
1559 1559

  
1560

  
1561 1560
    '''
1562 1561
        @brief      resetting attribute at secne
1563 1562
        @author     kyoyho

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)