123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- #pragma once
- #define C_MACHINE_EXPORTS
- #include "Machine.h"
- #include "CDieBondFsm.h"
- #include "CMessageBox.h"
- #include "dt.h"
- #include "CRunButton.h"
- #include "CViewMotion.h"
- #include "CViewMatrix.h"
- #include "CCamerAndLamp.h"
- #pragma comment(lib,"CLog.lib")
- #pragma comment(lib,"Module.lib")
- #pragma comment(lib,"Control.lib")
- namespace ns_module
- {
- class __declspec(dllexport) CViewInterface
- {
- public:
- struct THREAD_BUTTON_RUN
- {
- CViewInterface* pClass;
- ST_BUTTON_FUN stButtonInfo;
- };
- private:
- static CViewInterface* m_instance;
- static HANDLE m_hEvent;
- bool m_bIsInitSuccess = false;
- CManageDB* m_pCManageDB = nullptr;
- Machine* m_pMachine = nullptr;
- CCameraManage* m_pCameraManage = nullptr;
- CBondHead* m_pBondHead = nullptr;
- CWaferTable* m_pWaferTable = nullptr;
- CWaferHead* m_pWaferHead = nullptr;
- CTransferTable* m_pWaferTransferTable = nullptr;
- CTransferTable* m_pWaffleTransferTable = nullptr;
- CResources* m_pResource = nullptr;
- CDieBondFsm* m_pDieBondFsm = nullptr;
- LONG Init();
- public:
- static CViewInterface* GetInstance();
- #pragma region 界面方面接口
- private:
- CXYCalib* GetCalibXY(int iCameraId);
- public:
-
- long ViewExit();
-
-
- long ResetLoadAllConfig();
-
- long SaveAllConfigToDateBase();
- CViewMotion* GetViewMotion();
- CViewMatrix* GetViewMatrix();
- CCamerAndLamp* GetCamerAndLamp();
-
-
-
-
-
- long GetCpkList(std::vector<CPK_LIST_STRUCT>& CpkList);
-
-
-
-
-
-
-
- long LoadConfigDB(string strTableName, vector<int> iGroupId, vector<CONFIG_BASE_STRUCT>& vecConfig);
-
-
-
-
-
-
- long SaveConfigDB(string strTableName, vector<CONFIG_BASE_STRUCT> vecConfig);
-
- long SetButtonRunDoneFunc(SendButtonRunDone func);
-
- long SetPopMessageBoxFunc(CallMessageBox func);
-
- long DataChangNotice(string strDbName,string strTableName);
-
- void RecvDataChangNotice(string strDbName, string strTableName, DataNoticeCallbackFun callBackFun);
-
- long RunStop();
-
- long RunAutoBond();
-
- long RunButton(ST_BUTTON_FUN stInfo);
- #pragma endregion
- };
- }
|