pointshape.h

来自「用于地理信息系统(GIS)行业程序。 完整的鼠标交互式地图点、线、面的绘制」· C头文件 代码 · 共 35 行

H
35
字号
//PointShape.h


#ifndef POINTSHAPE_H
#define POINTSHAPE_H

//为避免与MFC类CPoint类冲突,在此命名为CPointShape,
//而不是CPoint

class CPointShape:public CDraw
{
protected:
	DECLARE_SERIAL(CPointShape)

	float m_fXcoord;	//点X、Y坐标
	float m_fYcoord;
	float m_fRadius;	//半径

public:
	CPointShape(){}
	CPointShape(short colorPen,short colorBrush,short lineWide,
		short lineType,short layer,int idOnly,BOOL bDelete,
 		float Xcoord,float Ycoord);

	 ~CPointShape();
	

	virtual void Serialize(CArchive& ar);
	virtual	void Draw(CDC *pDC,int drawMode1,int drawMode2,short colorPen);
	virtual void  GetBoundRect(float& x1, float& y1, float& x2, float& y2);

};


#endif

⌨️ 快捷键说明

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