forked from cheyaqi/-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDispenserDlg.h
76 lines (61 loc) · 1.56 KB
/
DispenserDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// DispenserDlg.h: 头文件
//
#pragma once
#include <MotionControl.h>
#include "HalconWin.h"
#include "HalconArithmetic.h"
#include <CameraDS.h>
// CDispenserDlg 对话框
class CDispenserDlg : public CDialogEx
{
// 构造
public:
CDispenserDlg(CWnd* pParent = nullptr); // 标准构造函数
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DISPENSER_DIALOG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
public:
//点胶机对象
CMotionControl mc;
bool mcOpen=false;//点胶机状态
bool Start=false;//开始检测
//halcon对象
HalconWin m_halconWin;
HalconArithmetic m_halconArithmetic;
HObject img;
CheckResult re;
//相机对象
CCameraDS m_camera;
int CameraID;//相机ID
bool OpenCame= false;//相机状态判断
/**************************************************
*函数名称:InitCame
*说明:相机初始化化函数
*参数:
*返回值:
*功能:
**************************************************/
void InitCame();
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
CComboBox m_CameraList;
afx_msg void OnBnClickedButton7();
afx_msg void OnCbnSelchangeCombo1();
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton5();
afx_msg void OnBnClickedButton4();
CStatic m_SText;
afx_msg void OnBnClickedButton2();
afx_msg void OnBnClickedButton6();
};