www.pudn.com > MyMFCVega.rar > MyMFCVegaView.h


// MyMFCVegaView.h : interface of the CMyMFCVegaView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MYMFCVEGAVIEW_H__97F062A1_A25A_4056_AE46_30AA3757C614__INCLUDED_) 
#define AFX_MYMFCVEGAVIEW_H__97F062A1_A25A_4056_AE46_30AA3757C614__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "MyMFCVegaDoc.h" 
#include  "MainFrm.h" 
#include  "vg.h" 
 
class CMyMFCVegaView : public CView 
{ 
	 
	CWinThread* m_pVegaThread; 
	BOOL vegaDefined; 
	BOOL vegaConfiged; 
	BOOL vegaInitted; 
	BOOL isRunning; 
 
protected: // create from serialization only 
	CMyMFCVegaView(); 
	DECLARE_DYNCREATE(CMyMFCVegaView) 
 
// Attributes 
public: 
	CMyMFCVegaDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMyMFCVegaView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	 
static 	UINT runVegaProc(LPVOID pParam); 
	const char* getAdfName(void); 
	void toggleGfx(int what); 
	void postFrame(void); 
	void postSync(void); 
	void postConfiged(void); 
	void postDefined(void); 
	void postInitted(void); 
	void setVegaConfiged(BOOL i); 
	BOOL getVegaConfiged(void); 
	void setVegaDefined(BOOL i); 
	BOOL getVegaDefined(void); 
	void setVegaInitted(BOOL I); 
	BOOL getVegaInitted(void); 
	BOOL getVegaRunning(void); 
	void runVega(void); 
	void stopVega(void); 
	int m_cy; 
	int m_cx; 
	CMainFrame* m_pMainFrame; 
	 
	 
/*  CWinThread* m_pVegaThread; 
	BOOL vegaDefined; 
	BOOL vegaConfiged; 
	BOOL vegaInitted; 
	BOOL isRunning;   */ 
 
	vgScene* scene; 
	vgEnv* env; 
	vgGfx* gfx; 
	vgChannel* chan; 
	vgObserver* obs; 
	vgWindow* win; 
	virtual ~CMyMFCVegaView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMyMFCVegaView) 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnFileOpen(); 
	afx_msg void OnUpdateFileOpen(CCmdUI* pCmdUI); 
	afx_msg void OnGfxTexture(); 
	afx_msg void OnUpdateGfxTexture(CCmdUI* pCmdUI); 
	afx_msg void OnGfxWireframe(); 
	afx_msg void OnUpdateGfxWireframe(CCmdUI* pCmdUI); 
	afx_msg void OnGfxEnv(); 
	afx_msg void OnUpdateGfxEnv(CCmdUI* pCmdUI); 
	afx_msg void OnMotionSpin(); 
	afx_msg void OnUpdateMotionSpin(CCmdUI* pCmdUI); 
	afx_msg void OnMotionDrive(); 
	afx_msg void OnUpdateMotionDrive(CCmdUI* pCmdUI); 
	afx_msg void OnMotionUfo(); 
	afx_msg void OnUpdateMotionUfo(CCmdUI* pCmdUI); 
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in MyMFCVegaView.cpp 
inline CMyMFCVegaDoc* CMyMFCVegaView::GetDocument() 
   { return (CMyMFCVegaDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MYMFCVEGAVIEW_H__97F062A1_A25A_4056_AE46_30AA3757C614__INCLUDED_)