mrDarker
2025-07-25 c856cf2dc2dca99f303458586dc6f70324228cf0
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#pragma once
 
 
// CRcutSetDLg ¶Ô»°¿ò
#include "VisionRecipe.h"
#include "afxwin.h"
 
#include "CornerRcutProcess.h"
#include "RcutDotProcess.h"
#include "afxcmn.h"
 
class CRcutSetDLg : public CDialogEx
{
    DECLARE_DYNAMIC(CRcutSetDLg)
 
public:
    CRcutSetDLg(CWnd* pParent = NULL);   // ±ê×¼¹¹Ô캯Êý
    virtual ~CRcutSetDLg();
 
// ¶Ô»°¿òÊý¾Ý
#ifdef AFX_DESIGN_TIME
    enum { IDD = IDD_DIALOG_RCUT_SET };
#endif
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Ö§³Ö
 
    DECLARE_MESSAGE_MAP()
 
private:
    DimensionDir m_eDir;
    CMenu m_visionMenu;
    IClsDisplay *m_displayTop1;
    IClsDisplay *m_displayTop2;
    IClsDisplay *m_displayTop3;
 
    IClsDisplay *m_displayBot1;
    IClsDisplay *m_displayBot2;
    IClsDisplay *m_displayBot3;
 
    CGridCtrl    m_PanelRcut;
    CGridCtrl    m_PanelBroken;
    CCornerRcutProcess *m_dot;
    CRcutDotProcess *m_dotTop;
    CRcutDotProcess *m_dotBot;
 
    std::vector<CString> m_vParams;
 
private:
    //1. ³õʼ»¯
    void InitDisplay(void);
 
    //2. ³õʼ»¯²Ëµ¥
    void InitMenu(void);
 
    //3. ³õʼ»¯
    void InitPanel(void);
    void InitPanel_BRK(void);
 
    //4. //±£´æÊý¾Ý
    void SaveRcutParam(void);
 
    //6. ÏÔʾ²ÎÊý
    void ShowRcutParam(void);
 
    //7. ÏÔʾ»­Ãæ
    void ShowRcutImage(void);
 
    //8. ÏÔʾ½á¹û
    void DispResult(void);
 
    //4. ÏÔÊ¾ÇøÓò
    void DispAllResult(void);
 
public:
    afx_msg void OnClose();
    int setDimensionDir(DimensionDir eDir);
    void ChangeVisionType(DimensionDir eDir);
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    virtual BOOL OnInitDialog();
    afx_msg void OnBnClickedButtonProcessRcut();
    afx_msg void OnEditroiImageroi();
    afx_msg void OnBnClickedButtonSetImageRcut();;
    afx_msg void OnBnClickedButtonSaveRcut();
    afx_msg void OnBnClickedButtonSetImageRcut2();
    afx_msg void OnBnClickedButtonTopTrain();
    afx_msg void OnBnClickedButtonTopTrain2();
    afx_msg void OnBnClickedBtnTopSetStd();
    afx_msg void OnBnClickedBtnBotSetStd();
};