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

📄 acoview.h

📁 关于蚁群优化算法程序
💻 H
字号:
#pragma once
#include "../AIView.h"
#include "../utils.h"
#include <vector>
#include "../MemDC.h"
#include "../Chart.h"
#include "AntConstants.h"
#include "AntSystem.h"

namespace ACO
{
	
//using namespace std;	

	//-------------------------------------------------
	// ACO VIEW 
	//-------------------------------------------------
	class CACOView : public CAIView
	{
		DECLARE_DYNCREATE(CACOView)
	public:
		void ButtonStart();
		void ButtonStop();
		void ButtonStep();
		void ButtonReset();
		void ButtonOptions();
		void UpdateView();
		CAntSystem* antSystem;
		CChart* graph;
		//Rectangles
		CRect rectTour;
		CRect rectGraph;
		CRect rectClient;
		void CustomiseGraph();
	protected:
		CACOView();           // protected constructor used by dynamic creation
		virtual ~CACOView();

	public:
		virtual void OnDraw(CDC* pDC);      // overridden to draw this view
#ifdef _DEBUG
		virtual void AssertValid() const;
		virtual void Dump(CDumpContext& dc) const;
#endif

	protected:
		DECLARE_MESSAGE_MAP()
	public:
		afx_msg void OnPaint();
		afx_msg void OnTimer(UINT nIDEvent);
		afx_msg void OnSize(UINT nType, int cx, int cy);
		virtual void OnInitialUpdate();
	};



}//namespace ACO

⌨️ 快捷键说明

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