CPoint3DCloudView.h
上传用户:yanweivga
上传日期:2008-02-19
资源大小:1056k
文件大小:2k
源码类别:

OpenGL

开发平台:

Visual C++

  1. // CPoint3DCloudView.h : interface of the CCPoint3DCloudView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CPOINT3DCLOUDVIEW_H__0305C427_F3BD_4466_9492_558EC1B3F8CF__INCLUDED_)
  5. #define AFX_CPOINT3DCLOUDVIEW_H__0305C427_F3BD_4466_9492_558EC1B3F8CF__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class COpenGL;
  10. class CCPoint3DCloudView : public CView
  11. {
  12. protected: // create from serialization only
  13. CCPoint3DCloudView();
  14. DECLARE_DYNCREATE(CCPoint3DCloudView)
  15. // Attributes
  16. public:
  17. CCPoint3DCloudDoc* GetDocument();
  18. // Operations
  19. public:
  20.    COpenGL m_nViewOpenGL;
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CCPoint3DCloudView)
  24. public:
  25. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  26. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  27. protected:
  28. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  29. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  30. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. public:
  34. virtual ~CCPoint3DCloudView();
  35. #ifdef _DEBUG
  36. virtual void AssertValid() const;
  37. virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39. protected:
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CCPoint3DCloudView)
  43. afx_msg void OnDestroy();
  44. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  46. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  47. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  48. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  49. afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  50. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  51. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  52. afx_msg void OnSize(UINT nType, int cx, int cy);
  53. afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
  54. afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };
  58. #ifndef _DEBUG  // debug version in CPoint3DCloudView.cpp
  59. inline CCPoint3DCloudDoc* CCPoint3DCloudView::GetDocument()
  60.    { return (CCPoint3DCloudDoc*)m_pDocument; }
  61. #endif
  62. /////////////////////////////////////////////////////////////////////////////
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_CPOINT3DCLOUDVIEW_H__0305C427_F3BD_4466_9492_558EC1B3F8CF__INCLUDED_)