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

📄 dstarview.h

📁 人工智能里的A-star算法,用于机器人的路径规划和寻优.
💻 H
字号:
// DStarView.h : interface of the CDStarView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DSTARVIEW_H__D10D23F0_8603_42E7_9D79_782B7DFA9525__INCLUDED_)
#define AFX_DSTARVIEW_H__D10D23F0_8603_42E7_9D79_782B7DFA9525__INCLUDED_

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

#include "SetDlg.h"
#include "State.h"
#include <math.h>

class CDStarView : public CFormView
{
protected: // create from serialization only
	CDStarView();
	DECLARE_DYNCREATE(CDStarView)

public:
	//{{AFX_DATA(CDStarView)
	enum{ IDD = IDD_DSTAR_FORM };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
	CDStarDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDStarView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
public:
	void DrawObst();
	void DisablePause();
	void EnablePause();
	BOOL m_bRun;
	CWinThread* pThread;
	CString m_strFile;
	virtual ~CDStarView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDStarView)
	afx_msg void OnSet();
	afx_msg void OnRun();
	afx_msg void OnReset();
	afx_msg void OnLoad();
	afx_msg void OnPause();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSave();
	afx_msg void OnBreak();
	afx_msg void OnModenew();
	afx_msg void OnModeold();
	afx_msg void OnUpdateModenew(CCmdUI* pCmdUI);
	afx_msg void OnUpdateModeold(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in DStarView.cpp
inline CDStarDoc* CDStarView::GetDocument()
   { return (CDStarDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DSTARVIEW_H__D10D23F0_8603_42E7_9D79_782B7DFA9525__INCLUDED_)

⌨️ 快捷键说明

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