📄 dlgoptions.h
字号:
#if !defined(AFX_DLGOPTIONS_H__DFCCB9CE_2636_4F0A_B089_F0CBE43908DA__INCLUDED_)#define AFX_DLGOPTIONS_H__DFCCB9CE_2636_4F0A_B089_F0CBE43908DA__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000// DlgOptions.h : header file///////////////////////////////////////////////////////////////////////////////// RxDlgOptions dialog#include "DlgCommon.h"class RxBitmapButton;class RxPushButton;class RxRadioButton;class RxEditInt;class RxEditFloat;typedef struct{ int nIterate; float fVarF; float fCoVarR; float fCoVarF; float fLearnTrans; float fLearnRot;} DLG_REGIST;typedef struct{ int nMode; int nCount; int nThreshold; float fTolerance;} DLG_SAMPLING;typedef struct{ int nRadio1; int nRadio2;} DLG_MI_ANALYSIS;// WM_NOTIFY message#define NM_DLG_REGIST_APPLY 0x0001typedef struct{ NMHDR hdr; DLG_REGIST *stpRegist; DLG_SAMPLING *stpSampling; DLG_MI_ANALYSIS *stpMIAnalysis;} _NMDLG_REGIST;class RxDlgOptions : public RxDlgCommon{// Constructionpublic: RxDlgOptions(CWnd* pParent = NULL); // standard constructor RxBitmapButton *m_pBtnClose; int m_nTabIndex; CRect m_rcTabRegist; CRect m_rcTabSample; CRect m_rcTabMIAnalysis; CRect m_rcTabBorder; // registration's variable DLG_REGIST m_stRegist; RxEditInt *m_pEdIterate; RxEditFloat *m_pEdVarF; RxEditFloat *m_pEdCoVarR; RxEditFloat *m_pEdCoVarF; RxEditFloat *m_pEdLearnTrans; RxEditFloat *m_pEdLearnRot; // sampling's variable DLG_SAMPLING m_stSampling; RxRadioButton *m_pBtnUniform; RxRadioButton *m_pBtnRandom; RxRadioButton *m_pBtnSobel; RxRadioButton *m_pBtnSobelLevoy; RxEditInt *m_pEdCount; RxEditInt *m_pEdThreshold; RxEditFloat *m_pEdTolerance; // MI Analysis's variable DLG_MI_ANALYSIS m_stMIAnalysis; RxRadioButton *m_pBtnMIOriginal; RxRadioButton *m_pBtnMIFast; RxRadioButton *m_pBtnSurface; RxRadioButton *m_pBtnPartial; RxRadioButton *m_pBtnTrilinear; RxRadioButton *m_pBtnNearest; RxPushButton *m_pBtnOk; RxPushButton *m_pBtnCancel; RxPushButton *m_pBtnApply;// Operationspublic: void SendMessageToParent(); void UpdateData (BOOL bSaveAndValidate = TRUE); void SetTabCtrl (int nIndex); void SetRegistStruct (int nIterate, float fVarF, float fCoVarR, float fCoVarF, float fLearnTrans, float fLearnRot); void SetRegistStruct (DLG_REGIST *stRegist); DLG_REGIST* GetRegistStruct (); void SetSamplingStruct(int nMode, int nCount, int nThreshold, float fTolerance); void SetSamplingStruct(DLG_SAMPLING *stSampling); DLG_SAMPLING* GetSamplingStruct(); void SetMIAnalysisStruct(int nRadio1, int nRadio2); void SetMIAnalysisStruct(DLG_MI_ANALYSIS *stMIAnalysis); DLG_MI_ANALYSIS* GetMIAnalysisStruct();// Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(RxDlgOptions) //}}AFX_VIRTUAL virtual void OnDraw(CDC *pDC); virtual void OnOK();// Implementationprotected: // Generated message map functions //{{AFX_MSG(RxDlgOptions) virtual BOOL OnInitDialog(); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); //}}AFX_MSG afx_msg void OnControls(UINT nID); afx_msg void OnBtnApply(); DECLARE_MESSAGE_MAP()};//{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_DLGOPTIONS_H__DFCCB9CE_2636_4F0A_B089_F0CBE43908DA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -