|
OGR
|
#include <ogr_featurestyle.h>
Public Member Functions | |
| OGRStyleTool (OGRSTClassId eClassId) | |
| OGRSTClassId | GetType () |
| Determine type of Style Tool. More... | |
| void | SetUnit (OGRSTUnitId, double dfScale=1.0) |
| Set Style Tool units. More... | |
| OGRSTUnitId | GetUnit () |
| Get Style Tool units. More... | |
| virtual const char * | GetStyleString ()=0 |
| Get the style string for this Style Tool. More... | |
| void | SetStyleString (const char *pszStyleString) |
| const char * | GetStyleString (const OGRStyleParamId *pasStyleParam, OGRStyleValue *pasStyleValue, int nSize) |
| const char * | GetParamStr (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, GBool &bValueIsNull) |
| int | GetParamNum (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, GBool &bValueIsNull) |
| double | GetParamDbl (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, GBool &bValueIsNull) |
| void | SetParamStr (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, const char *pszParamString) |
| void | SetParamNum (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, int nParam) |
| void | SetParamDbl (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, double dfParam) |
Static Public Member Functions | |
| static GBool | GetRGBFromString (const char *pszColor, int &nRed, int &nGreen, int &nBlue, int &nTransparence) |
| Return the r,g,b,a components of a color encoded in #RRGGBB[AA] format. More... | |
| static int | GetSpecificId (const char *pszId, const char *pszWanted) |
This class represents a style tool
|
explicit |
Constructor
| double OGRStyleTool::GetParamDbl | ( | const OGRStyleParamId & | sStyleParam, |
| OGRStyleValue & | sStyleValue, | ||
| GBool & | bValueIsNull | ||
| ) |
Undocumented
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| bValueIsNull | undocumented. |
Referenced by GetParamNum().
| int OGRStyleTool::GetParamNum | ( | const OGRStyleParamId & | sStyleParam, |
| OGRStyleValue & | sStyleValue, | ||
| GBool & | bValueIsNull | ||
| ) |
Undocumented
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| bValueIsNull | undocumented. |
References GetParamDbl().
| const char * OGRStyleTool::GetParamStr | ( | const OGRStyleParamId & | sStyleParam, |
| OGRStyleValue & | sStyleValue, | ||
| GBool & | bValueIsNull | ||
| ) |
Undocumented
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| bValueIsNull | undocumented. |
|
static |
Return the r,g,b,a components of a color encoded in #RRGGBB[AA] format.
Maps to OGRStyleTool::GetRGBFromString().
| pszColor | the color to parse |
| nRed | reference to an int in which the red value will be returned. |
| nGreen | reference to an int in which the green value will be returned. |
| nBlue | reference to an int in which the blue value will be returned. |
| nTransparance | reference to an int in which the (optional) alpha value will be returned. |
|
static |
Undocumented
| pszId | Undocumented |
| pszWanted | Undocumented |
|
pure virtual |
Get the style string for this Style Tool.
Maps to the OGRStyleTool subclasses' GetStyleString() methods.
Referenced by OGRStyleMgr::AddPart().
| const char * OGRStyleTool::GetStyleString | ( | const OGRStyleParamId * | pasStyleParam, |
| OGRStyleValue * | pasStyleValue, | ||
| int | nSize | ||
| ) |
Undocumented
| pasStyleParam | undocumented. |
| pasStyleValue | undocumented. |
| nSize | undocumented. |
References CPLFree, GetType(), OGRSTCBrush, OGRSTCLabel, OGRSTCPen, and OGRSTCSymbol.
| OGRSTClassId OGRStyleTool::GetType | ( | ) |
Determine type of Style Tool.
Referenced by GetStyleString().
|
inline |
Get Style Tool units.
Referenced by SetParamDbl(), SetParamNum(), and SetParamStr().
| void OGRStyleTool::SetParamDbl | ( | const OGRStyleParamId & | sStyleParam, |
| OGRStyleValue & | sStyleValue, | ||
| double | dfParam | ||
| ) |
Undocumented
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| dfParam | undocumented. |
References GetUnit().
| void OGRStyleTool::SetParamNum | ( | const OGRStyleParamId & | sStyleParam, |
| OGRStyleValue & | sStyleValue, | ||
| int | nParam | ||
| ) |
Undocumented
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| nParam | undocumented. |
References GetUnit().
| void OGRStyleTool::SetParamStr | ( | const OGRStyleParamId & | sStyleParam, |
| OGRStyleValue & | sStyleValue, | ||
| const char * | pszParamString | ||
| ) |
Undocumented
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| pszParamString | undocumented. |
References GetUnit().
| void OGRStyleTool::SetStyleString | ( | const char * | pszStyleString | ) |
Undocumented
| pszStyleString | undocumented. |
References CPLStrdup().
Referenced by OGRStyleMgr::GetPart().
| void OGRStyleTool::SetUnit | ( | OGRSTUnitId | eUnit, |
| double | dfGroundPaperScale = 1.0 |
||
| ) |
Set Style Tool units.
| eUnit | the new unit. |
| dfGroundPaperScale | ground to paper scale factor. |
1.8.14.