www.pudn.com > buildct.zip > buildctDlg.h, change:2004-02-24,size:2558b


// buildctDlg.h : header file 
// 
 
#if !defined(AFX_BUILDCTDLG_H__80924DAD_7A23_401A_99BF_6C74D5E534D7__INCLUDED_) 
#define AFX_BUILDCTDLG_H__80924DAD_7A23_401A_99BF_6C74D5E534D7__INCLUDED_ 
 
#include "CHAIN.H"	// Added by ClassView 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CBuildctDlg dialog 
class Chain; 
class LineChain; 
class ChainNode; 
class Triangle; 
class CBuildctDlg : public CDialog 
{ 
// Construction 
public: 
	void updateStatus(CString msg); 
	CFile debugFile; 
	CBuildctDlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CBuildctDlg) 
	enum { IDD = IDD_BUILDCT_DIALOG }; 
	CComboBox	m_ctlView; 
//	CButton	m_buildFace3; 
//	CButton	m_buildFace2; 
	CButton	m_buildFace; 
	CButton	m_oldLine; 
	CButton	m_finalLine; 
	CListBox	m_list; 
	CString	m_status; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CBuildctDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
 
	int buildAllEdges(Chain *points,LineChain *lines); 
	int identifyContour(unsigned char data[][IMAGEW/8],Chain *points); 
	int createSurface(int layerNum,ChainNode *upline,ChainNode *downline,Triangle *body); 
	int createSurface(int layerNum,ChainNode *line,Triangle *body); 
	int buildSurface(int layerNum,LineChain *up,LineChain *down,Triangle *body); 
	int preFiltering(unsigned char data[][IMAGEW/8]); 
	int getFiltedValue(unsigned char data[][IMAGEW/8],int x,int y); 
	int getValue(unsigned char data[][IMAGEW/8],int x,int y); 
     
// Implementation 
protected: 
	void debugPrint(CString msg); 
	ChainNode * getStartInLine(ChainNode *targetline,ChainNode*line,int x,int y); 
	void doBuildSurface(); 
	Triangle body; 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CBuildctDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnButtonbuildsurface(); 
	afx_msg void OnButtonload(); 
	afx_msg void OnButtonoldline(); 
	afx_msg void OnButtonfinalline(); 
//	afx_msg void OnButtonbuildsurface2(); 
//	afx_msg void OnButtonbuildsurface3(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_BUILDCTDLG_H__80924DAD_7A23_401A_99BF_6C74D5E534D7__INCLUDED_)