ena---mfcview.h

来自「开发环境:Visual C++ .net2003 功能介绍:神经网络算法实验;」· C头文件 代码 · 共 82 行

H
82
字号
// ENA---MFCView.h : interface of the CENAMFCView class
//
#include"WSTSPENA.h"

#pragma once


class CENAMFCView : public CView
{
protected: // create from serialization only
	CENAMFCView();
	DECLARE_DYNCREATE(CENAMFCView)

// Attributes
public:
	CENAMFCDoc* GetDocument() const;

// Operations
public:

// Overrides
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);

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

protected:
public:
	//画城市点
	void DrawCity(CDC* pDC, float x, float y);
	void DrawFindCity(CDC* pDC, float x, float y);
	//画出所有的城市的点
	void DrawAllCity(CDC* pDC);

	//画临时点
	void DrawTempPoint(CDC* pDC, float x, float y);
	//画临时点路径
	void DrawTempPointLine(CDC* pDC, float x1, float y1, float x2, float y2);
	//画临时点的连接关系
	void DrawTempPointConnect(CDC* pDC);

	//将float型转化成int型,四舍无入
	int ToInt(float x);

	//直接画出ENA当前图形
	void WSDrawTSP(CDC* pDC);
	//触发画图事件命令接口
	void StartDraw();

	void TextDraw(int x, int y, CString val);


	//得到
	WSTSPENA *m_pTSP;
	float m_pTvRate;



// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
};

#ifndef _DEBUG  // debug version in ENA---MFCView.cpp
inline CENAMFCDoc* CENAMFCView::GetDocument() const
   { return reinterpret_cast<CENAMFCDoc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

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