#pragma once
|
|
|
// CCornerDistSetDlg ¶Ô»°¿ò
|
#include "VisionRecipe.h"
|
#include "afxwin.h"
|
|
enum CORNER_IMAGE_TYPE {
|
CORNER_IMAGE = 0,
|
CORNER_MEASURE_REGION,
|
CORNER_TOP_POINT,
|
CORNER_BOT_POINT
|
};
|
|
class CCornerDistSetDlg : public CDialogEx
|
{
|
DECLARE_DYNAMIC(CCornerDistSetDlg)
|
|
public:
|
CCornerDistSetDlg(CWnd* pParent = NULL); // ±ê×¼¹¹Ô캯Êý
|
virtual ~CCornerDistSetDlg();
|
|
// ¶Ô»°¿òÊý¾Ý
|
#ifdef AFX_DESIGN_TIME
|
enum { IDD = IDD_DLG_DIST_CORNER };
|
#endif
|
|
protected:
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Ö§³Ö
|
|
DECLARE_MESSAGE_MAP()
|
|
private:
|
CListCtrl m_listCornerPoint;
|
CCornerDistProcess *m_dot;
|
CDistDotProcess *m_dotDist;
|
|
|
CComboBox m_combFrirtRefer; //First Refer
|
|
Point2I m_topMark;
|
Point2I m_botMark;
|
Point2I m_topPoint;
|
Point2I m_botPoint;
|
|
int m_id;
|
CString m_strName;
|
Point2I m_pos;
|
int m_refer;
|
int m_refer_;
|
|
CComboBox m_combDistMode;
|
int m_minValue;
|
int m_maxValue;
|
int m_incValue;
|
|
CComboBox m_combDistMode2;
|
int m_minValue2;
|
int m_maxValue2;
|
int m_incValue2;
|
|
//
|
DimensionDir m_eDir;
|
int m_eDotIndex;
|
|
CMenu m_visionMenu;
|
|
CComboBox m_combNgType;
|
CComboBox m_combNgType2;
|
|
private:
|
BOOL m_isLockPoint;
|
|
private:
|
//1. ÏÔʾËùÓеIJÎÊý
|
void dispListParam(void);
|
|
//2. ³õʼ»¯µãλ½çÃæ
|
void InitPointUi(void);
|
|
//4. ³õʼ»¯UI½çÃæ
|
void InitWindUi(void);
|
|
//5. Ö´ÐÐ
|
void ChangeVisionType(DimensionDir eDir);
|
|
//6. Ö´ÐÐ
|
void ChangeCornerDotIdx(int eIdx);
|
|
//7. ±£´æÊý¾Ý
|
void SaveDistCorner(void);
|
|
//8. ÏÔʾµ±Ç°µÄÊý¾Ý
|
void ShowDistCornerParam(void);
|
|
//9. ±£´æÊý¾Ý
|
void SaveDistDotProcess(void);
|
|
//10. ÏÔʾµ±Ç°µÄÊÓ¾õ²ÎÊý
|
void ShowDistDotParam(void);
|
|
//11. ÏÔÊ¾ÇøÓò
|
void dispRegion(void);
|
|
//12. Ëø²Ù×÷
|
void LockImage(int nType);
|
|
//14. ÏÔʾËùÓеÄËùÓеÄÊÓ¾õ¼ì²âµã
|
void dispAllPointResult(void);
|
|
//17. ¼ÏËøMARK
|
void LockMark(BOOL isLock);
|
|
//18. ³õʼ»¯²Ëµ¥
|
void InitMenu(void);
|
|
public:
|
virtual BOOL OnInitDialog();
|
afx_msg void OnClose();
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
int setDimensionDir(DimensionDir eDir);
|
afx_msg void OnNMClickListDistDot(NMHDR *pNMHDR, LRESULT *pResult);
|
afx_msg void OnBnClickedButtonModelRoi();
|
afx_msg void OnBnClickedButtonMeasureRoi();
|
afx_msg void OnBnClickedButtonDistTestAll();
|
afx_msg void OnBnClickedButtonLockMarkDist();
|
afx_msg void OnBnClickedButtonCopyTopMarkDist();
|
afx_msg void OnNMRClickListDistDot(NMHDR *pNMHDR, LRESULT *pResult);
|
afx_msg void OnVisionDelete();
|
afx_msg void OnAddDist();
|
afx_msg void OnMenuMeasureSet();
|
afx_msg void OnEditroiDrawkeyroi();
|
afx_msg void OnEditroiDrawmeasureroi();
|
afx_msg void OnEditroiDeleteallroi();
|
};
|