⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gui_featuredata.h

📁 linux下一款GIS程序源码
💻 H
字号:
/*  gui_featuredata.h  */#ifndef GUI_FEATUREDATA_H#define GUI_FEATUREDATA_H#include "gui_geometrydata.h"#include "KitSrc/tabtooldeftable.h"#include <qpaintdevice.h>#include <qrect.h>typedef enum{    FEA_NONE,//无几何图形    FEA_POINT,    FEA_FONTPOINT,    FEA_TEXT,    FEA_LINE,    FEA_REGION}LayerFeaType;class GUI_FeatureData{public:    GUI_FeatureData();    virtual ~GUI_FeatureData();        const char* getLableText();    void setLabelText(const char *);    void setGeometryData(GUI_GeometryData *);    GUI_GeometryData *getGeometryData();        void setLabelPoint(double x, double y);    void getLabelPoint(double &x,double &y);    void setFeaBound(double left,double right,double top, double bottom);    void getFeaBound(double &left,double &right,double &top,double &bottom);        void setFeaType(LayerFeaType type);    LayerFeaType  getFeaType(){return m_feaType;};    void setPenDefIndex(int );    void setBrushDefIndex(int );    void setFontDefIndex(int );    void setSymbolDefIndex(int );    int  getSymbolDefIndex(){return m_SymbolDefIndex;}        void       setFontSymbolNo(UGKInt16 no){nFontSymbolNo = no;};    UGKInt16  getFontSymbolNo(){return nFontSymbolNo;};    void       setFontPointSize(UGKInt16 size){nFontPointSize= size;};    UGKInt16  getFontPointSize(){return nFontPointSize;};    void       setFontColor(UGKInt32 color){fontColor=color;};    UGKInt32  getFontColor(){return fontColor;};        void setScreenCenter( double sx , double sy );    void setDistPerPixel( double inVal );    void setPaintRect(int top, int left,int pw,int ph);    void mapCoord2scrCoord( RawPoint *mapPT, int &sx, int &sy);    void mapCoord2scrCoord(double x, double y,int &sx, int &sy);        void Draw(QPaintDevice *);         bool IsTooSmall();          TABToolDefTable   *m_ToolDefRef; //引用     private:    char *m_LabelText;    double m_LabelX;    double m_LabelY;            double m_MinX;    double m_MaxX;    double m_MinY;    double m_MaxY;        double m_ScrCenterX;    double m_ScrCenterY;    double m_DistPerPixel;//比例系数 每个屏幕象素对应的地图距离     int   m_paintTop;     int   m_paintLeft;     int   m_paintWidth;  //绘图区域宽度     int   m_paintHeight;  //绘图区域高度        LayerFeaType  m_feaType;    int m_PenDefIndex;    int m_BrushDefIndex;    int m_FontDefIndex;    int m_SymbolDefIndex;        //====对于FEA_FONTPOINT类型的Feature    UGKInt16 nFontSymbolNo;    UGKInt16 nFontPointSize;    UGKInt32 fontColor;    //=================================        GUI_GeometryData *m_FeaGeometry; };#endif

⌨️ 快捷键说明

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