s045508View.h
资源名称:HeShi.rar [点击查看]
上传用户:bjzhifu888
上传日期:2013-01-22
资源大小:136k
文件大小:3k
源码类别:
STL
开发平台:
Visual C++
- // s045508View.h : interface of the CS045508View class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_S045508VIEW_H__4B83D27F_02D1_4C75_B65E_F95BDFD08362__INCLUDED_)
- #define AFX_S045508VIEW_H__4B83D27F_02D1_4C75_B65E_F95BDFD08362__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "glgl.h"
- #include "glglu.h"
- #include "glglaux.h"
- class CS045508View : public CView
- {
- protected: // create from serialization only
- CS045508View();
- DECLARE_DYNCREATE(CS045508View)
- // Attributes
- public:
- CS045508Doc* GetDocument();
- HGLRC m_hRC;
- CDC* m_pDC;
- BOOL SetupViewingFrustum(double aspect);
- BOOL SetupViewingTransform();
- BOOL Lighting();
- BOOL Material();
- BOOL RenderScene();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CS045508View)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void OnInitialUpdate();
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- CPoint m_LeftDownPos;
- int mouse;
- int ShadeOrWire;
- float zpan;
- float ypan;
- float xpan;
- float zRot;
- float yRot;
- float xRot;
- BOOL SetupPixelFormat();
- BOOL InitializeOpenGL();
- virtual ~CS045508View();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CS045508View)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnTOOLBARxRotCCW();
- afx_msg void OnTOOLBARxRotCW();
- afx_msg void OnTOOLBARyRotCCW();
- afx_msg void OnTOOLBARyRotCW();
- afx_msg void OnTOOLBARzRotCCW();
- afx_msg void OnTOOLBARzRotCW();
- afx_msg void OnToolbarXpanL();
- afx_msg void OnToolbarXpanR();
- afx_msg void OnToolbarYpanD();
- afx_msg void OnToolbarYpanU();
- afx_msg void OnZoomIn();
- afx_msg void OnZoomOut();
- afx_msg void OnShade();
- afx_msg void OnWireframe();
- afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in s045508View.cpp
- inline CS045508Doc* CS045508View::GetDocument()
- { return (CS045508Doc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_S045508VIEW_H__4B83D27F_02D1_4C75_B65E_F95BDFD08362__INCLUDED_)