#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_displayBot1; IClsDisplay *m_displayBot2; CGridCtrl m_PanelRcut; CCornerRcutProcess *m_dot; CRcutDotProcess *m_dotTop; CRcutDotProcess *m_dotBot; std::vector m_vParams; private: //1. ³õʼ»¯ void InitDisplay(void); //2. ³õʼ»¯²Ëµ¥ void InitMenu(void); //3. ³õʼ»¯ void InitPanel(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(); };