You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.5 KiB
C++
56 lines
1.5 KiB
C++
#pragma once
|
|
//#include "GlobalDefine.h"
|
|
#include <vector>
|
|
#include "layserDefine.h"
|
|
#include "LaserLogger.h"
|
|
|
|
#import "marking_scan.dll"
|
|
using namespace marking_scan;
|
|
|
|
using namespace std;
|
|
|
|
//激光器类型
|
|
enum LASER_TYPE
|
|
{
|
|
_LAMP = 0, //灯泵
|
|
_FIBER, //脉冲光纤
|
|
_CO2, //co2
|
|
_DIODE, //侧泵
|
|
_ENDDIODE, //端泵
|
|
_FIBER_CL, //ipg连续光纤
|
|
};
|
|
|
|
//管理VB 写的dll 提供的功能
|
|
class _declspec(dllexport) CLaipuVbDllMgr
|
|
{
|
|
public:
|
|
CLaipuVbDllMgr(void);
|
|
~CLaipuVbDllMgr(void);
|
|
virtual void Ini();
|
|
void VbIniCard(short low,short High);
|
|
_marking_scan_dll *GetCom();
|
|
void MarkingStart();
|
|
void MarkingStop();
|
|
void CallMarkingEnd(long fileno,long fileAll,long MarkM,long m_sel,long head,SAFEARRAY * psa);
|
|
void CallMarkingData(vector<vector<Dbxy2>> &vec);
|
|
void CallMarkingDataInSemi(vector<vector<Dbxy2>> &vec);
|
|
SAFEARRAY * CreatSafeArray(vector<double> &vec);
|
|
SAFEARRAY * CreatSafeArrayD(vector<double> &vec);
|
|
|
|
private:
|
|
SAFEARRAY * CreatSafeArray(vector<vector<Dbxy2>> &vec);
|
|
int CalElementsCnt(vector<vector<Dbxy2>> &vec);
|
|
int CalElementsCnt(vector<double> &vec);
|
|
|
|
private:
|
|
int m_bIni;//是否初始化
|
|
_marking_scan_dll *pMarkingScanCom;//振镜dll 生成com 组件的指针
|
|
public:
|
|
|
|
static bool m_zIsInitOk;
|
|
|
|
int m_pauseDelay = 40;
|
|
int m_pauseFirstDelay = 60;
|
|
};
|
|
|
|
//extern CLaipuVbDllMgr *gLaipuVbDllMgr;
|