Tag.h
资源名称:基本GIS系统开发.rar [点击查看]
上传用户:yklx818
上传日期:2013-04-13
资源大小:459k
文件大小:1k
源码类别:
GIS编程
开发平台:
Visual C++
- // Tag.h: interface for the CTag class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TAG_H__B3076CDA_AF22_407D_B603_40DDB23AB70D__INCLUDED_)
- #define AFX_TAG_H__B3076CDA_AF22_407D_B603_40DDB23AB70D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Draw1.h"
- class CTag : public CDraw //管理图形元素图例的类
- {
- protected:
- int m_idBlock;
- float x_Insert;
- float y_Insert;
- float x_Scale;
- float y_Scale;
- float m_angle;
- int* p_Block;
- public:
- CTag(){}
- CTag(short ColorPen,int Layer,BOOL Delete,float xInsert,float yInsert,float xScale,float yScale,float angle,int id_only,int idBlock)
- :CDraw( ColorPen, 0, 0, 1, Layer, id_only, Delete)
- {
- x_Insert=xInsert;
- y_Insert=yInsert;
- x_Scale=xScale;
- y_Scale=yScale;
- this->m_angle=angle;
- m_idBlock=idBlock;
- }
- virtual void Draw(CDC* pDC,int m_DrawMode,int m_DrawModel,short BackColor);
- virtual BOOL IsPoint(float x,float y,float j1,float blc);
- 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);
- ~CTag(){}
- };
- #endif // !defined(AFX_TAG_H__B3076CDA_AF22_407D_B603_40DDB23AB70D__INCLUDED_)