tabtext.h

来自「linux下一款GIS程序源码」· C头文件 代码 · 共 91 行

H
91
字号
// tabtext.h: interface for the TABText class.////////////////////////////////////////////////////////////////////////#ifndef  TABText_H#define  TABText_H#include "tabfeaturefont.h"#include "tabfeaturepen.h"#include "tabfeature.h"class TABText : 	public TABFeature, 	public TABFeatureFont, 	public TABFeaturePen  {protected:    char        *m_pszString;    double      m_dAngle;    double      m_dHeight;    double      m_dWidth;    double      m_dfLineEndX;    double      m_dfLineEndY;    UGKBool       m_bLineEndSet;    void        UpdateTextMBR();    UGKInt32      m_rgbForeground;    UGKInt32      m_rgbBackground;    UGKInt16      m_nTextAlignment;       // Justification/Vert.Spacing/arrow    UGKInt16      m_nFontStyle;           // Bold/italic/underlined/shadow/...    const char *GetLabelStyleString();public:	TABText(UGKFeatureDefn *poDefnIn);	virtual ~TABText();    virtual TABFeatureClass GetFeatureClass() { return TABFCText; };    virtual int             ValidateMapInfoType(TABMAPFile *poMapFile = NULL);    virtual TABFeature *CloneTABFeature(UGKFeatureDefn *poNewDefn = NULL );    virtual int ReadGeometryFromMAPFile(TABMAPFile *poMapFile, TABMAPObjHdr *);    virtual int WriteGeometryToMAPFile(TABMAPFile *poMapFile, TABMAPObjHdr *);    virtual int ReadGeometryFromMIFFile(MIDDATAFile *fp);    virtual int WriteGeometryToMIFFile(MIDDATAFile *fp);    virtual const char *GetStyleString();	virtual void DumpMIF(FILE *fpOut = NULL);    const char *GetTextString();    double      GetTextAngle();    double      GetTextBoxHeight();    double      GetTextBoxWidth();    UGKInt32      GetFontFGColor();    UGKInt32      GetFontBGColor();    void        GetTextLineEndPoint(double &dX, double &dY);    TABTextJust GetTextJustification();    TABTextSpacing  GetTextSpacing();    TABTextLineType GetTextLineType();    UGKBool       QueryFontStyle(TABFontStyle eStyleToQuery);    void        SetTextString(const char *pszStr);    void        SetTextAngle(double dAngle);    void        SetTextBoxHeight(double dHeight);    void        SetTextBoxWidth(double dWidth);    void        SetFontFGColor(UGKInt32 rgbColor);    void        SetFontBGColor(UGKInt32 rgbColor);    void        SetTextLineEndPoint(double dX, double dY);    void        SetTextJustification(TABTextJust eJust);    void        SetTextSpacing(TABTextSpacing eSpacing);    void        SetTextLineType(TABTextLineType eLineType);    void        ToggleFontStyle(TABFontStyle eStyleToToggle, UGKBool bStatus);    int         GetFontStyleMIFValue();    void        SetFontStyleMIFValue(int nStyle, UGKBool bBGColorSet=FALSE);    UGKBool       IsFontBGColorUsed();    int         GetFontStyleTABValue()           {return m_nFontStyle;};    void        SetFontStyleTABValue(int nStyle){m_nFontStyle=(UGKInt16)nStyle;};};#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?