matcherView.h
资源名称:matcher.rar [点击查看]
上传用户:quan1896
上传日期:2013-04-17
资源大小:94k
文件大小:2k
源码类别:
2D图形编程
开发平台:
Visual C++
- // matcherView.h : interface of the CMatcherView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MATCHERVIEW_H__30419787_5622_4B5B_B71A_A220E5348FD9__INCLUDED_)
- #define AFX_MATCHERVIEW_H__30419787_5622_4B5B_B71A_A220E5348FD9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "cv.h"
- #include "highgui.h"
- class CMatcherDoc;
- class CMatcherView : public CScrollView
- {
- protected: // create from serialization only
- CMatcherView();
- DECLARE_DYNCREATE(CMatcherView)
- // Attributes
- public:
- CMatcherDoc* GetDocument();
- CImage m_frame1;
- int LastHitIndex;//记录最后一次击中角点的索引
- IplImage* ShownImage1;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMatcherView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMatcherView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMatcherView)
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
- afx_msg void OnDelete();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in matcherView.cpp
- inline CMatcherDoc* CMatcherView::GetDocument()
- { return (CMatcherDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MATCHERVIEW_H__30419787_5622_4B5B_B71A_A220E5348FD9__INCLUDED_)