LinkNet.h
资源名称:基本GIS系统开发.rar [点击查看]
上传用户:yklx818
上传日期:2013-04-13
资源大小:459k
文件大小:1k
源码类别:
GIS编程
开发平台:
Visual C++
- // LinkNet.h: interface for the CLinkNet class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_LINKNET_H__78664772_3158_4FCB_9F4E_5A75FCFD0880__INCLUDED_)
- #define AFX_LINKNET_H__78664772_3158_4FCB_9F4E_5A75FCFD0880__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Draw1.h"
- class CLinkNet : public CDraw
- {
- protected:
- // DECLARE_SERIAL(CLinkNet);
- public:
- BOOL b_Delete;
- float m_x,m_y;
- float m_rRadiu;
- short m_LinkNumb;
- int m_LinkID[10];
- CLinkNet()
- {
- }
- CLinkNet(short ColorPen,float x,float y,float rRadiu,short Layer,int id_only)
- {
- m_ColorPen=ColorPen;
- m_x=x;
- m_y=y;
- m_rRadiu=rRadiu;
- m_Layer=Layer;
- m_id_only=id_only;
- b_Delete = FALSE;
- }
- virtual ~CLinkNet();
- void AddLink(int nID);
- virtual void Draw(CDC* pDC,int m_DrawMode,int m_DrawModel,short BackColor);
- virtual BOOL IsPoint(float x,float y,float j1,float blc);
- float CalDisp(float x,float y,float m_x,float m_y);
- virtual void GetRect(float* minX,float* minY,float* maxX,float* maxY);
- virtual void Move(float x_Move,float y_Move);
- virtual void Rotate(float baseX,float baseY,float angle);
- };
- #endif // !defined(AFX_LINKNET_H__78664772_3158_4FCB_9F4E_5A75FCFD0880__INCLUDED_)