123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- #pragma once
- #include <vector>
- #include <string>
- #include <map>
- #include "CBondMatrix.h"
- #include "CPRStrategy.h"
- #include "CWaferMatrix.h"
- #include "CWafflePackMatrix.h"
- using namespace std;
- using namespace ns_mat;
- using namespace ns_pr;
- #pragma region 坐标系
- typedef struct _COORDSYS_STRUCT
- {
- double OriginPtX;
- double OriginPtY;
- int DirectX;
- int DierctY;
- int DierectZ;
- }COORDSYS_STRUCT;
- #pragma endregion
- #ifdef DB_RESCOURCES_EXPORTS
- #define DB_RESCOURCES_DLL_API __declspec(dllexport)
- #else
- #define DB_RESCOURCES_DLL_API
- #endif
- class DB_RESCOURCES_DLL_API CResources
- {
- private:
- CResources();
- ~CResources();
- const BOND_DIR m_BondMatrixSearchDie = BOND_DIR::OrderAndS;
- public:
- static CResources* GetInstance();
- static void releaseInstance();
- long GetParam();
- long SetParam();
-
- std::map<int, std::vector<int>> GetStepMap(int productID);
- std::vector<int> GetStepList(int productID,int StepListID);
- void SaveStepMap();
-
-
-
- CBondMatrix* GetBondMatrix();
- CWaferMatrix* GetWaferMatrix();
- CWafflePackMatrix* GetWafflePackMatrix();
-
- CPRStrategy* GetPRStrategyByID(int ModuleID);
-
-
- XY_DOUBLE_STRUCT ToGlobalCoord(int moduleID, XY_DOUBLE_STRUCT point);
- X_Y_Z_STRUCT ToGlobalCoord(int moduleID, X_Y_Z_STRUCT point);
-
- XY_DOUBLE_STRUCT ToLocalCoord(int moduleID, XY_DOUBLE_STRUCT point);
- X_Y_Z_STRUCT ToLocalCoord(int moduleID, X_Y_Z_STRUCT point);
- private:
- static CResources* m_instance;
-
- std::map<int,std::map<int, std::vector<int>>> m_mapStep;
-
- CBondMatrix* m_pBondMatrix = nullptr;
- CWaferMatrix* m_pWaferMatrix = nullptr;
- CWafflePackMatrix* m_pWafflePackMatrix = nullptr;
-
- std::map<int, CBondMatrix*> m_mapPositionInfo;
-
- map<int,COORDSYS_STRUCT> m_vetModuleCoords;
- COORDSYS_STRUCT m_stGlobalCoord;
- };
|