Go to the documentation of this file.
30 #ifndef OGR_FEATURESTYLE_INCLUDE
31 #define OGR_FEATURESTYLE_INCLUDE
59 typedef struct ogr_style_param
67 typedef struct ogr_style_value
86 char **m_papszStyleTable;
94 GBool AddStyle(
const char *pszName,
const char *pszStyleString);
95 GBool RemoveStyle(
const char *pszName);
96 GBool ModifyStyle(
const char *pszName,
const char *pszStyleString);
98 GBool SaveStyleTable(
const char *pszFilename);
99 GBool LoadStyleTable(
const char *pszFilename);
100 const char *Find(
const char *pszStyleString);
101 GBool IsExist(
const char *pszName);
102 const char *GetStyleName(
const char *pszName);
103 void Print(FILE *fpOut);
106 void ResetStyleStringReading();
107 const char *GetNextStyle();
108 const char *GetLastStyleName();
120 char *m_pszStyleString;
126 GBool SetFeatureStyleString(
OGRFeature *,
const char *pszStyleString=NULL,
127 GBool bNoMatching = FALSE);
133 GBool InitStyleString(
const char *pszStyleString = NULL);
135 const char *GetStyleName(
const char *pszStyleString= NULL);
136 const char *GetStyleByName(
const char *pszStyleName);
138 GBool AddStyle(
const char *pszStyleName,
const char *pszStyleString=NULL);
140 const char *GetStyleString(
OGRFeature * = NULL);
143 GBool AddPart(
const char *);
145 int GetPartCount(
const char *pszStyleString = NULL);
146 OGRStyleTool *GetPart(
int hPartId,
const char *pszStyleString = NULL);
151 OGRStyleTable *GetDataSetStyleTable(){
return m_poDataSetStyleTable;}
153 OGRStyleTool *CreateStyleToolFromStyleString(
const char *pszStyleString);
168 char *m_pszStyleString;
170 virtual GBool Parse() = 0;
174 GBool Parse(
const OGRStyleParamId* pasStyle,
175 OGRStyleValue* pasValue,
187 m_pszStyleString(NULL)
192 static GBool GetRGBFromString(
const char *pszColor,
int &nRed,
int &nGreen,
193 int &nBlue,
int &nTransparence);
194 static int GetSpecificId(
const char *pszId,
const char *pszWanted);
197 GBool IsStyleModified() {
return m_bModified;}
198 void StyleModified() {m_bModified = TRUE;}
200 GBool IsStyleParsed() {
return m_bParsed;}
201 void StyleParsed() {m_bParsed = TRUE;}
207 void SetInternalInputUnitFromParam(
char *pszString);
219 virtual const char *GetStyleString() = 0;
220 void SetStyleString(
const char *pszStyleString);
221 const char *GetStyleString(
const OGRStyleParamId *pasStyleParam ,
222 OGRStyleValue *pasStyleValue,
int nSize);
224 const char *GetParamStr(
const OGRStyleParamId &sStyleParam ,
225 OGRStyleValue &sStyleValue,
226 GBool &bValueIsNull);
228 int GetParamNum(
const OGRStyleParamId &sStyleParam ,
229 OGRStyleValue &sStyleValue,
230 GBool &bValueIsNull);
232 double GetParamDbl(
const OGRStyleParamId &sStyleParam ,
233 OGRStyleValue &sStyleValue,
234 GBool &bValueIsNull);
236 void SetParamStr(
const OGRStyleParamId &sStyleParam ,
237 OGRStyleValue &sStyleValue,
238 const char *pszParamString);
240 void SetParamNum(
const OGRStyleParamId &sStyleParam ,
241 OGRStyleValue &sStyleValue,
244 void SetParamDbl(
const OGRStyleParamId &sStyleParam ,
245 OGRStyleValue &sStyleValue,
262 OGRStyleValue *m_pasStyleValue;
269 virtual ~OGRStylePen();
310 OGRStyleValue *m_pasStyleValue;
317 virtual ~OGRStyleBrush();
356 OGRStyleValue *m_pasStyleValue;
363 virtual ~OGRStyleSymbol();
389 const char *FontName(
GBool &bDefault)
391 void SetFontName(
const char *pszFontName)
414 OGRStyleValue *m_pasStyleValue;
421 virtual ~OGRStyleLabel();
@ OGRSTSymbolStep
Definition: ogr_core.h:842
@ OGRSTLabelStretch
Definition: ogr_core.h:874
enum ogr_style_type OGRSType
@ OGRSTBrushSize
Definition: ogr_core.h:821
@ OGRSTLabelStrikeout
Definition: ogr_core.h:873
@ OGRSTLabelPerp
Definition: ogr_core.h:868
@ OGRSTSymbolPriority
Definition: ogr_core.h:845
@ OGRSTLabelBColor
Definition: ogr_core.h:863
@ OGRSTLabelFColor
Definition: ogr_core.h:862
Definition: ogr_featurestyle.h:83
enum ogr_style_tool_class_id OGRSTClassId
enum ogr_style_tool_param_brush_id OGRSTBrushParam
@ OGRSTLabelItalic
Definition: ogr_core.h:870
@ OGRSTPenWidth
Definition: ogr_core.h:800
enum ogr_style_tool_param_label_id OGRSTLabelParam
@ OGRSTLabelAdjHor
Definition: ogr_core.h:875
@ OGRSTLabelTextString
Definition: ogr_core.h:860
Convenient string class based on std::string.
Definition: cpl_string.h:338
enum ogr_style_tool_param_pen_id OGRSTPenParam
#define CPL_OVERRIDE
Definition: cpl_port.h:1055
@ OGRSTLabelPlacement
Definition: ogr_core.h:864
enum ogr_style_tool_units_id OGRSTUnitId
@ OGRSTCNone
Definition: ogr_core.h:773
@ OGRSTPenPriority
Definition: ogr_core.h:806
@ OGRSTSymbolDx
Definition: ogr_core.h:840
@ OGRSTLabelOColor
Definition: ogr_core.h:878
@ OGRSTSymbolAngle
Definition: ogr_core.h:837
@ OGRSTSymbolFontName
Definition: ogr_core.h:846
@ OGRSTPenColor
Definition: ogr_core.h:799
@ OGRSTLabelDy
Definition: ogr_core.h:867
ogr_style_type
Definition: ogr_featurestyle.h:50
@ OGRSTLabelFontName
Definition: ogr_core.h:858
@ OGRSTLabelPriority
Definition: ogr_core.h:872
@ OGRSTLabelUnderline
Definition: ogr_core.h:871
@ OGRSTLabelAnchor
Definition: ogr_core.h:865
@ OGRSTLabelAngle
Definition: ogr_core.h:861
@ OGRSTSymbolDy
Definition: ogr_core.h:841
@ OGRSTBrushDx
Definition: ogr_core.h:822
enum ogr_style_tool_param_symbol_id OGRSTSymbolParam
@ OGRSTBrushFColor
Definition: ogr_core.h:817
@ OGRSTBrushDy
Definition: ogr_core.h:823
@ OGRSTSymbolId
Definition: ogr_core.h:836
@ OGRSTBrushBColor
Definition: ogr_core.h:818
Definition: ogr_featurestyle.h:116
@ OGRSTUGround
Definition: ogr_core.h:786
@ OGRSTSymbolSize
Definition: ogr_core.h:839
@ OGRSTLabelHColor
Definition: ogr_core.h:877
@ OGRSTSymbolOffset
Definition: ogr_core.h:844
@ OGRSTBrushId
Definition: ogr_core.h:819
@ OGRSTPenCap
Definition: ogr_core.h:804
Definition: ogr_feature.h:279
@ OGRSTPenPerOffset
Definition: ogr_core.h:803
@ OGRSTBrushPriority
Definition: ogr_core.h:824
@ OGRSTPenJoin
Definition: ogr_core.h:805
int GBool
Definition: cpl_port.h:215
@ OGRSTSymbolColor
Definition: ogr_core.h:838
@ OGRSTLabelAdjVert
Definition: ogr_core.h:876
@ OGRSTSymbolOColor
Definition: ogr_core.h:847
@ OGRSTLabelDx
Definition: ogr_core.h:866
@ OGRSTPenId
Definition: ogr_core.h:802
@ OGRSTSymbolPerp
Definition: ogr_core.h:843
@ OGRSTBrushAngle
Definition: ogr_core.h:820
@ OGRSTPenPattern
Definition: ogr_core.h:801
@ OGRSTLabelSize
Definition: ogr_core.h:859
@ OGRSTLabelBold
Definition: ogr_core.h:869
Generated for GDAL by
1.8.17.