pcadoc.h

来自「face recognition test source code」· C头文件 代码 · 共 77 行

H
77
字号
// pcadoc.h : interface of the CPcaDoc class
//
/////////////////////////////////////////////////////////////////////////////

#ifndef PCADOC_H
#define PCADOC_H

/*#include <CDrawF.h>
#include <CDrawRec.h>*/
#include <caam.h>
#include <lvq.h>

class CPcaDoc : public CDocument
{
protected: // create from serialization only
	CPcaDoc();
	DECLARE_DYNCREATE(CPcaDoc)

// Attributes
public:

protected:
	CDrawFace 	*pViewTraining;
	CDrawFace 	*pViewEigen;
	CDrawReconstruction 	*pViewReconstruct;
	CDrawReconstruction 	*pViewRecognize;
	CViewSammon	*pViewSammon;
	CAAM 			*pAAM;
	BOOL			bViewTraining;
	BOOL			bViewEigen;
	BOOL			bViewReconstruct;
	BOOL			bViewRecognize;
	BOOL			bViewSammon;
	char 			filename[128];
	
// Operations
public:

// Implementation
public:
	virtual ~CPcaDoc();
	virtual void Serialize(CArchive& ar);	// overridden for document i/o
#ifdef _DEBUG
	virtual	void AssertValid() const;
	virtual	void Dump(CDumpContext& dc) const;
#endif

	void ProjectNew();
	void SetMsg(char *msg);
	int  SaveReport(char *filename);
	void SetFileName(char *fn);
		
protected:
	virtual	BOOL	OnNewDocument();

// Generated message map functions
protected:
	//{{AFX_MSG(CPcaDoc)
	afx_msg void OnUpdateViewEigenfaces(CCmdUI* pCmdUI);
	afx_msg void OnViewEigenfaces();
	afx_msg void OnUpdateViewRecognizedfaces(CCmdUI* pCmdUI);
	afx_msg void OnViewRecognizedfaces();
	afx_msg void OnViewReconstructedfaces();
	afx_msg void OnUpdateViewReconstructedfaces(CCmdUI* pCmdUI);
	afx_msg void OnViewTrainingfaces();
	afx_msg void OnUpdateViewTrainingfaces(CCmdUI* pCmdUI);
	afx_msg void OnViewSammon();
	afx_msg void OnUpdateViewSammon(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

BOOL DoesWndExist(CWnd *pWnd);

#endif /* PCADOC_H */
/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?