www.pudn.com > dbnn.rar > DBNNView.h, change:2004-02-09,size:2101b


// DBNNView.h : interface of the CDBNNView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_DBNNVIEW_H__F15E3686_ABF8_41D3_9E77_28484325E3B4__INCLUDED_) 
#define AFX_DBNNVIEW_H__F15E3686_ABF8_41D3_9E77_28484325E3B4__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "StuDlg.h" 
 
#define color 2 
 
class CDBNNView : public CView 
{ 
protected: // create from serialization only 
	CDBNNView(); 
	DECLARE_DYNCREATE(CDBNNView) 
 
// Attributes 
public: 
	CDBNNDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDBNNView) 
	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: 
	long m_R; 
	long m_G; 
	long m_B; 
	long m_tch; 
 
	int m_RGB[color*3]; 
	double m_deta[color]; 
	double m_w[2*(color+1)*3]; 
	 
	void Sort(); 
	void DBNN(int X[],double pass[],double s2[]); 
	void dis_f(double *pass,double *S2); 
	virtual ~CDBNNView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CDBNNView) 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in DBNNView.cpp 
inline CDBNNDoc* CDBNNView::GetDocument() 
   { return (CDBNNDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DBNNVIEW_H__F15E3686_ABF8_41D3_9E77_28484325E3B4__INCLUDED_)