acoview.h
来自「遗传和蚁群算法改进源代码,对于研究仿真算法非常有用.可以深刻了解遗传和蚁群算法原」· C头文件 代码 · 共 57 行
H
57 行
#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 + =
减小字号Ctrl + -
显示快捷键?