123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #pragma once
- #include "OneDimMatrix.h"
- #define FIRST_TIP_MATRIX_INDEX 1
- namespace ns_mat
- {
- //struct NozzleParam
- //{
- // XY_DOUBLE_STRUCT position{ 0,0 };
- // NozzleCalibParam calibParam;
- // double dNozzleHeigh = 0; //在固定位置进行标定
- // int nMaxAllowUseNum = 10000;
- // int nUsedNum = 0;
- //};
- class __declspec(dllexport) TipMatrix
- {
- public:
- static TipMatrix* GetInstance();
- LONG LoadMatrixParam();
- LONG GetNozzlePosition(int index, XY_DOUBLE_STRUCT& position);
- std::map<int, MatrixPointInfo> GetNozzleInfo();
- LONG GetBHRCalibTempID(int nozzleIndex, int& tempID);
- LONG SetBHRCalibTempID(int nozzleIndex, int tempID);
- LONG GetWHCTDNozzleTempID(int nozzleIndex, int& tempID);
- LONG SetWHCTDNozzleTempID(int nozzleIndex, int tempID);
- LONG GetBHRotCenter(int index, XY_DOUBLE_STRUCT& center);
- LONG SetNozzleRotCenter(int index, XY_DOUBLE_STRUCT center);
- LONG GetBHHighCameraToNozzle(int index, XY_DOUBLE_STRUCT& dis);
- LONG SetBHHighCameraToNozzle(int index, XY_DOUBLE_STRUCT CameraToNozzle);
- LONG GetBHLowCameraToNozzle(int index, XY_DOUBLE_STRUCT& dis);
- LONG SetBHLowCameraToNozzle(int index, XY_DOUBLE_STRUCT CameraToNozzle);
- LONG GetBHLowNozzleToCamera(int index, XY_DOUBLE_STRUCT& dis);
- LONG SetBHLowNozzleToCamera(int index, XY_DOUBLE_STRUCT CameraToNozzle);
- LONG GetWHCameraToNozzle(int index, XY_DOUBLE_STRUCT& cameraToNozzle);
- LONG SetWHCameraToNozzle(int index, XY_DOUBLE_STRUCT cameraToNozzle);
- LONG SetNozzleHigh(int index, double pos);
- LONG GetNozzleHigh(int index, double& pos);
- LONG SetNozzleMaxAllowUseNum(int nozzleIndex, int num);
- LONG GetNozzleMaxAllowUseNum(int nozzleIndex, int& num);
- LONG SetNozzleUsedNum(int nozzleIndex, int num);
- LONG GetNozzleUsedNum(int nozzleIndex, int& num);
- private:
- TipMatrix();
- ~TipMatrix();
- void DataChangNotice(string strDbName, string strTableName);
- void SetParam();
- private:
- OneDimMatrix* m_pPosMatrix = nullptr;
- //key 是吸嘴号
- std::map<int, NozzleParam> m_mapNozzleParam;
- CMachineCalibration* m_pCalibrationDB = nullptr;
- CProduct* m_pProduct = nullptr;
- CManageDB* m_pCManageDB = nullptr;
- bool m_bIsPrTest = false;
- int m_nMatrixID = 1;
- std::string m_sName = "TipMatrix";
- };
- }
|