www.pudn.com > final_6.rar > CGDoc.h


// CGDoc.h : interface of the CCGDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_CGDOC_H__9B98C8EC_B73F_40AB_9ACF_D47336887F4B__INCLUDED_) 
#define AFX_CGDOC_H__9B98C8EC_B73F_40AB_9ACF_D47336887F4B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include"Shape.h" 
#include"CG.h" 
//#include"Base.h" 
 
class CCGDoc : public CDocument 
{ 
protected: // create from serialization only 
	CCGDoc(); 
	DECLARE_DYNCREATE(CCGDoc) 
 
// Attributes 
public: 
   CCuboid test; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CCGDoc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void OnCancelTexture(); 
	void OnDeletePara(); 
	void OnDecay(); 
	void OnParaLight(); 
	void OnDeleteLight(); 
	void OnDelete(); 
	void OnTrans(); 
	void Render(); 
	 
	CObArray m_ShapeArray; 
	CObArray m_LightArray; 
	CObArray m_TextureArray; 
	 
	virtual ~CCGDoc(); 
 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CCGDoc) 
	afx_msg void OnAddCuboid(); 
	afx_msg void OnAddBall(); 
	afx_msg void OnAddColumn(); 
	afx_msg void OnAddCone(); 
	afx_msg void OnAddLight(); 
	afx_msg void OnSetPointLight(); 
	afx_msg void OnMoveLight(); 
	afx_msg void OnSetShape(); 
	afx_msg void OnGamma(); 
	afx_msg void OnLatheX(); 
	afx_msg void OnLatheY(); 
	afx_msg void OnLatheZ(); 
	afx_msg void OnLoftSample(); 
	afx_msg void OnLoftTrack(); 
	afx_msg void OnDZoomPer(); 
	afx_msg void OnDRotatePer(); 
	afx_msg void OnDViewpoint(); 
	afx_msg void OnTexture(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CGDOC_H__9B98C8EC_B73F_40AB_9ACF_D47336887F4B__INCLUDED_)