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

📄 xline.h

📁 北京公交车查询系统 北京公交车查询系统
💻 H
字号:
#pragma once

#include "XSpot.h"
#include "XTube.h"

class XStations;

class XLine
{
	friend class XLines;

public:
	XLine ();
	virtual ~XLine();

	XLine& operator = (const XLine& line);
	bool operator == (const XLine& line);

public:
	int id;
	CString name;
	bool isOneWay;

	vector<XSpot> spots;
	
public:
	bool IsInRect (float left, float top, float right, float bottom);

	int Append (XSpot& vSpot);
	int Remove (XSpot& vSpot);

	int GetStations (XStations& stations);

	int ToTube (RectF rect, XTube& tube);
	int GetCount();

	int ToXML (CMarkup& markup);
	int FromXML (CMarkup& markup);
};

⌨️ 快捷键说明

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