faceView.h
上传用户:yipeng6868
上传日期:2013-02-16
资源大小:222k
文件大小:3k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // faceView.h : interface of the CFaceView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_FACEVIEW_H__444D77F2_7A5B_49CB_BE46_F7B2A2C4E742__INCLUDED_)
  5. #define AFX_FACEVIEW_H__444D77F2_7A5B_49CB_BE46_F7B2A2C4E742__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "DIB.h"
  10. class CFaceView : public CScrollView
  11. {
  12. protected: // create from serialization only
  13. CFaceView();
  14. DECLARE_DYNCREATE(CFaceView)
  15. // Attributes
  16. public:
  17. CFaceDoc* GetDocument();
  18. // Operations
  19. public:
  20. CRect faceLocation[10];
  21. int faceNum;
  22. bool flag[ImgRange][ImgRange];
  23. LPBYTE lpYcc;
  24. LPBYTE lpRB;
  25. LPBYTE lpYccTemp;
  26. LPBYTE lpRgb;
  27. bool   emymapl[ImgRange][ImgRange];
  28. bool   emymapc[ImgRange][ImgRange];
  29. bool   lab[ImgRange][ImgRange];
  30. CPoint mouthLocation;
  31. CPoint eye1;
  32. CPoint eye2;
  33. bool   result;
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CFaceView)
  37. public:
  38. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  39. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  40. protected:
  41. virtual void OnInitialUpdate(); // called first time after construct
  42. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  43. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  44. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. public:
  48. virtual ~CFaceView();
  49. #ifdef _DEBUG
  50. virtual void AssertValid() const;
  51. virtual void Dump(CDumpContext& dc) const;
  52. #endif
  53. protected:
  54. // Generated message map functions
  55. protected:
  56. //{{AFX_MSG(CFaceView)
  57. afx_msg void OnErasion();
  58. afx_msg void OnEyemap();
  59. afx_msg void OnEyemapc();
  60. afx_msg void OnEyemapl();
  61. afx_msg void OnGetFaceArea();
  62. afx_msg void OnLightingconpensate();
  63. afx_msg void OnSkintone();
  64. afx_msg void OnDeleteFalseArea();
  65. afx_msg void OnDilation();
  66. afx_msg void OnErasionAgain();
  67. afx_msg void OnDilationFirst();
  68. afx_msg void OnEyeCb();
  69. afx_msg void OnEYECr();
  70. afx_msg void OnDeleteFalseEye();
  71. afx_msg void OnDeletescater();
  72. afx_msg void OnMousemap();
  73. afx_msg void OnErasionMouse();
  74. afx_msg void OnMouthCenter();
  75. afx_msg void OnDilationEye();
  76. afx_msg void OnEyeCenter();
  77. afx_msg void OnGouleFace();
  78. //}}AFX_MSG
  79. DECLARE_MESSAGE_MAP()
  80. };
  81. #ifndef _DEBUG  // debug version in faceView.cpp
  82. inline CFaceDoc* CFaceView::GetDocument()
  83.    { return (CFaceDoc*)m_pDocument; }
  84. #endif
  85. /////////////////////////////////////////////////////////////////////////////
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  88. #endif // !defined(AFX_FACEVIEW_H__444D77F2_7A5B_49CB_BE46_F7B2A2C4E742__INCLUDED_)