123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- #pragma once
- #define C_MACHINE_EXPORTS
- #include "Machine.h"
- #include "CDieBondFsm.h"
- #include "CMessageBox.h"
- #pragma comment(lib,"CLog.lib")
- #pragma comment(lib,"Module.lib")
- #pragma comment(lib,"Control.lib")
- namespace ns_module
- {
- struct ST_BUTTON_FUN
- {
- int nId;
- int DirectoryId;
- std::string strCallFun;
- std::map<std::string, std::string> mapPar;
- };
- class __declspec(dllexport) CViewInterface
- {
- private:
- static CViewInterface* m_instance;
- bool m_bIsInitSuccess = false;
- CManageDB* m_pCManageDB = nullptr;
- Machine* m_pMachine = nullptr;
- CCameraManage* m_pCameraManage = nullptr;
- CBondHead* m_pBondHead = 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 ToHome();
-
- long ResetLoadAllConfig();
-
- long SaveAllConfigToDateBase();
-
-
-
-
-
-
- long SetRedLight(int iCameraId, int LightValue);
-
-
-
-
-
- long SetGreenLight(int iCameraId, int LightValue);
-
-
-
-
-
-
- long SetBlueLight(int iCameraId, int LightValue);
-
-
-
-
-
-
- long SetPointLight(int iCameraId, int LightValue);
-
-
-
-
-
-
-
-
-
- long GetLight(int iCameraId, int& redLightValue, int& greenLightValue, int& blueLightValue, int& pointLightValue);
-
-
-
-
-
-
- long GrabImage(int iCameraId, ImageInfo& image);
-
-
-
-
-
- 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 GetCameraList(vector<CameraInfo>& vecCamera);
-
-
-
-
-
-
-
- long CameraMove(int iCameraId, double x, double y);
- long SetVideoCallBackFunc(int iCameraId, CallVideoBack func);
-
- long SetPopMessageBoxFunc(CallMessageBox func);
-
- vector<CAxis*> GetAxisList();
-
- long ModuleMove(string ModuleType, string AxisType, double pos);
- long ModuleMoveTo(string ModuleType, string AxisType, double pos);
-
- long GetAxisPosition(string ModuleType, string AxisType, double& pos);
-
- 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
- };
- }
|