Text.h
资源名称:基本GIS系统开发.rar [点击查看]
上传用户:yklx818
上传日期:2013-04-13
资源大小:459k
文件大小:2k
源码类别:
GIS编程
开发平台:
Visual C++
- // Text.h: interface for the CText class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TEXT_H__FFF7D9BA_5695_4841_91C6_EEF99FC7777F__INCLUDED_)
- #define AFX_TEXT_H__FFF7D9BA_5695_4841_91C6_EEF99FC7777F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Draw1.h"
- class CText : public CDraw
- {
- protected:
- float m_StartX;
- float m_StartY;
- float m_Angle1;
- float m_Angle2;
- float m_TextHeight;
- float m_TextWide;
- float m_OffWide;
- float m_EndX;
- float m_EndY;
- float m_CircleX;
- float m_CircleY;
- float m_CircleR;
- unsigned char m_TextFont;
- CString c_Text;
- int m_TextLong;
- //CGraphPara *p_GraphPara;
- public:
- CText(){}
- CText(short ColorPen,short ColorBrush,float LineWide,short LineType,short Layer,int id_only,BOOL Delete,float StartX,float StartY,float Angle1,float Angle2,float TextHeight,float TextWide,float OffWide,unsigned char TextFont,CString Text)
- :CDraw( ColorPen, ColorBrush, LineWide, LineType, Layer, id_only, Delete)
- {
- m_StartX=StartX;
- m_StartY=StartY;
- m_Angle1=Angle1;
- m_Angle2=Angle2;
- m_TextHeight=TextHeight;
- m_TextWide=TextWide;
- m_OffWide=OffWide;
- m_TextLong=Text.GetLength();
- c_Text=Text;
- }
- 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);
- // BOOL IsRectCross(float minx,float miny,float maxx,float maxy);
- virtual void Rotate(float baseX,float baseY,float angle);
- void Init(short ColorPen,short ColorBrush,float LineWide,short LineType,short Layer,float StartX,float StartY,
- float Angle1,float Angle2,float TextHeight,float TextWide,float Offwide,int TextLong,CString Text);
- virtual ~CText();
- };
- #endif // !defined(AFX_TEXT_H__FFF7D9BA_5695_4841_91C6_EEF99FC7777F__INCLUDED_)