www.pudn.com > mfcopentree.rar > MfcopenDoc.h


// MfcopenDoc.h : interface of the CMfcopenDoc class 
//武汉华中科技大学,2002,(C)版权所有 
//作者:金德才 联系方式:iskyflying@163.com 
//请不要将本软件的任何一部分用于商业用途 
//如果您觉得任何地方有用或者错误,请告诉作者,谢谢! 
//如果你想引用部分源程序,请注明作者信息 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MFCOPENDOC_H__C8CAAF5D_710F_44DE_BF1E_E0C0F1A447D1__INCLUDED_) 
#define AFX_MFCOPENDOC_H__C8CAAF5D_710F_44DE_BF1E_E0C0F1A447D1__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "3dmath.h" 
 
class CMfcopenDoc : public CDocument 
{ 
protected: // create from serialization only 
	CMfcopenDoc(); 
	DECLARE_DYNCREATE(CMfcopenDoc) 
 
// Attributes 
public: 
 
public: 
	CFile   *file; 
	bool    m_bfileopen; 
	float   m_fdefmax[3], m_fdefmin[3]; 
	CStatusBar* pStatus; 
	STLArray *m_array; 
	STLArray *arraytemp; 
	int      m_iDArrnumber;//动态数组元素个数 
 
	float m_fbox_x; 
	float m_fbox_y; 
	float m_fbox_z; 
	float m_fBoxMax; 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMfcopenDoc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	CString m_ssavefilename;//最近打开的文件 
	int m_itrannumber[100]; 
	float m_fmove[100][4][4]; 
 
	float m_fboxsize[100][3]; 
	float m_fcenter[100][3]; 
 
	float m_scale; 
	int m_ilflag[100];  
	float mat_amb_diff[100][4]; 
	float m_ftimes; 
	float m_ftimemove[100][4][2]; 
	float m_fInformation[100][4][3]; 
	float m_fepcboxmax; 
	BOOL m_banimalfileopen; 
	CString m_savetype[100]; //保存all types 
	CString m_savename[100]; 
	CString m_sname; 
	CString m_stype; 
	CString m_loadfilename[100]; 
	void RestoreData(STLArray *data); 
	int long m_Trinumber; 
 
	FoundBox(STLData *data, float boxsize[3], float center[3]); 
	virtual ~CMfcopenDoc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
public: 
	bool m_bFakOpen; 
	WebTri * webtri; 
	CString szFilename; 
	void ResetData(); 
	afx_msg void OnSaveAnimal(); 
protected: 
	//{{AFX_MSG(CMfcopenDoc) 
	afx_msg void OnUpdateSaveAnimal(CCmdUI* pCmdUI); 
	afx_msg void OnOpenanimal(); 
	afx_msg void OnBuildNew(); 
	afx_msg void OnLookup(); 
	afx_msg void OnAppExit(); 
	afx_msg void OnOpenFak(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MFCOPENDOC_H__C8CAAF5D_710F_44DE_BF1E_E0C0F1A447D1__INCLUDED_)