Line.h
资源名称:基本GIS系统开发.rar [点击查看]
上传用户:yklx818
上传日期:2013-04-13
资源大小:459k
文件大小:1k
源码类别:
GIS编程
开发平台:
Visual C++
- // Line.h: interface for the CLine class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_LINE_H__64BA8EDC_8F96_4E6B_9F9A_2DF855568AFB__INCLUDED_)
- #define AFX_LINE_H__64BA8EDC_8F96_4E6B_9F9A_2DF855568AFB__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Draw1.h"
- class CLine : public CDraw
- {
- protected:
- float m_X1,m_X2,m_Y1,m_Y2;
- float m_fLong;
- virtual void CalLong();
- public:
- CLine(){}
- CLine(short ColorPen,short ColorBrush,float LineWide,short LineType,short Layer,int id_only,BOOL Delete,float X1,float Y1,float X2,float Y2)
- : CDraw( ColorPen, ColorBrush, LineWide, LineType, Layer, id_only, Delete)
- {
- m_X1=X1;
- m_Y1=Y1;
- m_X2=X2;
- m_Y2=Y2;
- }
- 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 ~CLine();
- };
- #endif // !defined(AFX_LINE_H__64BA8EDC_8F96_4E6B_9F9A_2DF855568AFB__INCLUDED_)
- //CGraphPara *p_GraphPara;