Pline.h
资源名称:基本GIS系统开发.rar [点击查看]
上传用户:yklx818
上传日期:2013-04-13
资源大小:459k
文件大小:1k
源码类别:
GIS编程
开发平台:
Visual C++
- // Pline.h: interface for the CPline class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_PLINE_H__7FD36C2A_34EC_4601_A815_8A7C3A8932FC__INCLUDED_)
- #define AFX_PLINE_H__7FD36C2A_34EC_4601_A815_8A7C3A8932FC__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Draw1.h"
- #include "Data.h"
- class CPline : public CDraw
- {
- protected:
- int m_Numble;
- PointStruct* m_PointList;
- float m_fLong;
- float m_fLength;
- virtual void CalLong();
- public:
- CPline(){};
- CPline(short ColorPen,short ColorBrush,float LineWide,short LineType,short Layer,int id_only,BOOL Delete,int Numble,PointStruct* PointList)
- :CDraw( ColorPen, ColorBrush, LineWide, LineType, Layer, id_only, Delete)
- {
- m_Numble=Numble;
- m_PointList=new PointStruct[Numble+1];
- if(Numble>0)
- {
- for(int i=0;i<Numble;i++)
- {
- m_PointList[i]=PointList[i];
- }
- }
- }
- 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);
- ~CPline()
- {
- if(m_Numble>0)
- delete m_PointList;
- }
- };
- #endif // !defined(AFX_PLINE_H__7FD36C2A_34EC_4601_A815_8A7C3A8932FC__INCLUDED_)