Arc.h
资源名称:基本GIS系统开发.rar [点击查看]
上传用户:yklx818
上传日期:2013-04-13
资源大小:459k
文件大小:1k
源码类别:
GIS编程
开发平台:
Visual C++
- // Arc.h: interface for the CArc class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_ARC_H__5C4A88D0_7369_49BA_8ED2_91B99EB88C43__INCLUDED_)
- #define AFX_ARC_H__5C4A88D0_7369_49BA_8ED2_91B99EB88C43__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Circle.h"
- class CArc : public CCircle
- {
- protected:
- float m_Angle1,m_Angle2;
- virtual void CalLong();
- public:
- CArc(){}
- CArc(short ColorPen,short ColorBrush,float LineWide,short LineType,short Layer,int id_only,BOOL Delete,float CircleX,float CircleY,float CircleR,float Angle1,float Angle2)
- :CCircle( ColorPen, ColorBrush, LineWide, LineType, Layer, id_only, Delete, CircleX, CircleY, CircleR,0)
- {
- m_Angle1=Angle1;
- m_Angle2=Angle2;
- }
- virtual void Draw(CDC* pDC,int m_DrawMode,int m_DrawModel,short BackColor);
- void Init(short ColorPen,short ColorBrush,float LineWide,short LineType,short Layer,BOOL Delete,float CircleX,float CircleY,float CircleR,float Angle1,float Angle2);
- virtual void GetRect(float* minX,float* minY,float* maxX,float* maxY);
- BOOL IsInArc(float angle);
- 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 ~CArc();
- };
- #endif // !defined(AFX_ARC_H__5C4A88D0_7369_49BA_8ED2_91B99EB88C43__INCLUDED_)