CameraImageHandler.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // *****************************************************************************
  2. // 版权所有(C)2023~2099 上海骄成超声波技术有限公司
  3. // 保留所有权利
  4. // *****************************************************************************
  5. // 作者 : 杨坚
  6. // 版本 : 1.0
  7. // 功能说明:
  8. // 管理一组窗口
  9. // *****************************************************************************
  10. #ifndef CAMERAIMAGEHANDLER_H
  11. #define CAMERAIMAGEHANDLER_H
  12. #include "CameraMaterialGroupWnd/Group.h"
  13. #include "CameraMaterialGroupWnd/MaterialWindow/Wafer.h"
  14. #include "CameraMaterialGroupWnd/MaterialWindow/Waffle.h"
  15. #include "CameraMaterialGroupWnd/MaterialWindow/Bond.h"
  16. #include <CViewInterface.h>
  17. class CameraImageHandler : public QWidget {
  18. Q_OBJECT
  19. public:
  20. CameraImageHandler(const int groupId,const CameraInfo& cameraInfo);
  21. Group* getGroup() const;
  22. Wafer* getWafer() const;
  23. Waffle* getWaffle() const;
  24. MaterialBox* getMaterialBox() const;
  25. Bond* getBond() const;
  26. QList<QPair<QString, QString>> getFileList();
  27. QList<QPair<QString, QString>> loadImages(const CameraInfo& cameraInfo,const QString &dirPath);
  28. private:
  29. void captureAndConvertImage(const int groupId, const CameraInfo& cameraInfo);
  30. void initGroup(int CameraId);
  31. /**分组
  32. */
  33. void CreateGroupData(const int groupId,const CameraInfo& cameraInfo);
  34. /**创建物料类型
  35. */
  36. QString CreateMaterialType(MATERIAL_TYPE materialType);
  37. private:
  38. /**存储 Group 对象的容器
  39. */
  40. Group* m_pGroup = nullptr;
  41. /**晶圆台
  42. */
  43. Wafer* m_pWafer = nullptr;
  44. /**华夫盒
  45. */
  46. Waffle* m_pWaffle = nullptr;
  47. MaterialBox* m_pMaterialBox = nullptr;
  48. Bond* m_pBond = nullptr;
  49. int MaterialWindowType; // 物料窗口类型标识,1代表圆晶 后面接口获取标识
  50. /**接口指针
  51. */
  52. ns_module::CViewInterface* m_pCViewInterface;
  53. QList<QPair<QString, QString>> m_pfileList;
  54. };
  55. #endif // CAMERAIMAGEHANDLER_H