Circle.h
资源名称:基本GIS系统开发.rar [点击查看]
上传用户:yklx818
上传日期:2013-04-13
资源大小:459k
文件大小:1k
源码类别:
GIS编程
开发平台:
Visual C++
- // Circle.h: interface for the CCircle class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CIRCLE_H__5B6C62F2_962F_48A3_BA59_3F162F55DD22__INCLUDED_)
- #define AFX_CIRCLE_H__5B6C62F2_962F_48A3_BA59_3F162F55DD22__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Draw1.h"
- class CCircle : public CDraw
- {
- protected:
- float m_CircleX,m_CircleY,m_CircleR;
- BOOL m_bFill;
- float m_fLong,m_fArea;
- virtual void CalArea();
- virtual void CalLong();
- public:
- CCircle(){}
- CCircle(short ColorPen,short ColorBrush,float LineWide,short LineType,short Layer,int id_only,BOOL Delete,float CircleX,float CircleY,float CircleR,BOOL bFill)
- :CDraw( ColorPen, ColorBrush, LineWide, LineType, Layer, id_only, Delete)
- {
- m_CircleX=CircleX;
- m_CircleY=CircleY;
- m_CircleR=CircleR;
- m_bFill=bFill;
- }
- virtual void Draw(CDC* pDC,int m_DrawMode,int m_DrawModel,short BackColor);
- virtual void GetRect(float* minX,float* minY,float* maxX,float* maxY);
- virtual BOOL IsPoint(float x,float y,float j1,float blc);
- virtual void Move(float x_Move,float y_Move);
- virtual void Rotate(float baseX,float baseY,float angle);
- virtual BOOL IsFill();
- virtual ~CCircle();
- };
- #endif // !defined(AFX_CIRCLE_H__5B6C62F2_962F_48A3_BA59_3F162F55DD22__INCLUDED_)