⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aiview.h

📁 人工智能中经典算法-宽度搜索和启发是搜索(A*算法)在VC环境下的实现代码
💻 H
字号:
// AIView.h : interface of the CAIView class
//
/////////////////////////////////////////////////////////////////////////////
#include "nodestate.h"
#include "searchalg.h"
#include "bfsalg.h"

#if !defined(AFX_AIVIEW_H__6A7DA4E9_1C5E_483D_A7FF_0D4BFD686666__INCLUDED_)
#define AFX_AIVIEW_H__6A7DA4E9_1C5E_483D_A7FF_0D4BFD686666__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CAIView : public CScrollView
{
protected: // create from serialization only
	CAIView();
	DECLARE_DYNCREATE(CAIView)

// Attributes
public:
	CAIDoc* GetDocument();

// Operations
public:
	List m_DispList;
	bool IsBFS;//


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAIView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CAIView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
	
private:
	BOOL m_bIsDispAll;

// Generated message map functions
protected:
	
	void GenerateDispList(List *pScrList);

	//{{AFX_MSG(CAIView)
	afx_msg void OnAstar();
	afx_msg void OnViewStep();
	afx_msg void OnViewTree();
	afx_msg void OnUpdateViewStep(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewTree(CCmdUI* pCmdUI);
	afx_msg void OnAstarinput();
	afx_msg void OnBfs();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in AIView.cpp
inline CAIDoc* CAIView::GetDocument()
   { return (CAIDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AIVIEW_H__6A7DA4E9_1C5E_483D_A7FF_0D4BFD686666__INCLUDED_)

⌨️ 快捷键说明

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