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.
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "module.h"
|
|
|
|
#import "marking_scan.dll"
|
|
using namespace marking_scan;
|
|
|
|
//激光器类型
|
|
enum LASER_TYPE
|
|
{
|
|
_LAMP = 0, //灯泵
|
|
_FIBER, //脉冲光纤
|
|
_CO2, //co2
|
|
_DIODE, //侧泵
|
|
_ENDDIODE, //端泵
|
|
_FIBER_CL, //ipg连续光纤
|
|
};
|
|
|
|
//管理VB 写的dll 提供的功能
|
|
class CLaipuVbDllMgr
|
|
{
|
|
public:
|
|
CLaipuVbDllMgr(void);
|
|
~CLaipuVbDllMgr(void);
|
|
virtual void Ini();
|
|
void VbIniCard(short low,short High);
|
|
_marking_scan_dll *GetCom();
|
|
void MarkingStart();
|
|
void MarkingStop();
|
|
void Marking_DA(double V,short XY);
|
|
void CallMarkingEnd(long fileno,long fileAll,long MarkM,long m_sel,long head,SAFEARRAY * psa);
|
|
void CallMarkingData(vector<vector<Dbxy>> &vec);
|
|
SAFEARRAY * CreatSafeArray(vector<double> &vec);
|
|
private:
|
|
SAFEARRAY * CreatSafeArray(vector<vector<Dbxy>> &vec);
|
|
int CalElementsCnt(vector<vector<Dbxy>> &vec);
|
|
int CalElementsCnt(vector<double> &vec);
|
|
private:
|
|
int m_bIni;//是否初始化
|
|
_marking_scan_dll *pMarkingScanCom;//振镜dll 生成com 组件的指针
|
|
};
|
|
extern CLaipuVbDllMgr *gLaipuVbDllMgr; |