12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #ifndef WAFER_H
- #define WAFER_H
- #pragma once
- #include <QWidget>
- #include <vector>
- #include <QMenu>
- #include "WaferGraphicsView.h"
- #include "DieItem.h"
- #include <CWaferMatrix.h>
- #include <CViewInterface.h>
- #include "TypeDef.h"
- #include <QImage>
- #include <QPixmap>
- enum OperateMode {
- ModeImage, // 显示图片
- ModeView // 显示 view
- };
- typedef struct {
- int maxRow;
- int maxCol;
- double minX;
- double minY;
- double maxX;
- double maxY;
- }MaxRow_Col;
- class Wafer : public QWidget
- {
- Q_OBJECT
- public:
- explicit Wafer(int flag, QWidget *parent = nullptr);
- void UpdataGenerateTestData();
- /**晶圆
- */
- void UpdataVal(const std::vector<ns_mat::WAFER_MATRIX_POINT_INFO_STRUCT>& veWafer);
- void initFrom(QWidget *parent);
- void paintInitFrom(QWidget *parent);
- QPixmap getGlobalPixmap() const;
- QColor getColorByStatus(ns_mat::PICK_DIE_STATUS status);
- void setWaferInfo(ns_module::CViewInterface* CViewInterface);
- signals:
- void sendCoordinates(int x, int y);
- private:
- int Flag;
- QVector<ns_mat::WAFER_MATRIX_POINT_INFO_STRUCT> waferData;
- //int rows, cols;
- int m_dieLong;
- int m_dieWide;
- double m_centerX, m_centerY;
- double m_radius;
- /**接口指针
- */
- ns_module::CViewInterface* m_pCViewInterface = nullptr;
- QMenu *contextMenu = nullptr;
- QPixmap m_globalPixmap;
- QMap<UINT, MaxRow_Col> maxRow_Colmap;
- public:
- /**在外面new 画布?
- */
- QPointer<QGraphicsScene> m_pScene;
- WaferGraphicsView* m_pView = nullptr;
- QPointer<QWidget> m_parent;
- };
- #endif // WAFER_H
|