This class represents a style tool.
More...
#include <ogr_featurestyle.h>
List of all members.
Public Member Functions |
|
| OGRStyleTool (OGRSTClassId eClassId) |
| | Constructor.
|
| OGRSTClassId | GetType () |
| | Determine type of Style Tool.
|
| void | SetUnit (OGRSTUnitId, double dfScale=1.0) |
| | Set Style Tool units.
|
| OGRSTUnitId | GetUnit () |
| | Get Style Tool units.
|
| virtual const char * | GetStyleString ()=0 |
| | Get the style string for this Style Tool.
|
| void | SetStyleString (const char *pszStyleString) |
| | Undocumented.
|
| const char * | GetStyleString (const OGRStyleParamId *pasStyleParam, OGRStyleValue *pasStyleValue, int nSize) |
| | Undocumented.
|
| const char * | GetParamStr (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, GBool &bValueIsNull) |
| | Undocumented.
|
| int | GetParamNum (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, GBool &bValueIsNull) |
| | Undocumented.
|
| double | GetParamDbl (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, GBool &bValueIsNull) |
| | Undocumented.
|
| void | SetParamStr (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, const char *pszParamString) |
| | Undocumented.
|
| void | SetParamNum (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, int nParam) |
| | Undocumented.
|
| void | SetParamDbl (const OGRStyleParamId &sStyleParam, OGRStyleValue &sStyleValue, double dfParam) |
| | Undocumented.
|
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.
|
| static int | GetSpecificId (const char *pszId, const char *pszWanted) |
| | Undocumented.
|
Detailed Description
This class represents a style tool.
Member Function Documentation
Undocumented.
- Parameters:
-
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| bValueIsNull | undocumented. |
- Returns:
- Undocumented.
Undocumented.
- Parameters:
-
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| bValueIsNull | undocumented. |
- Returns:
- Undocumented.
| const char * OGRStyleTool::GetParamStr |
( |
const OGRStyleParamId & |
sStyleParam, |
|
|
OGRStyleValue & |
sStyleValue, |
|
|
GBool & |
bValueIsNull |
|
) |
| |
Undocumented.
- Parameters:
-
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| bValueIsNull | undocumented. |
- Returns:
- Undocumented.
Return the r,g,b,a components of a color encoded in #RRGGBB[AA] format.
Maps to OGRStyleTool::GetRGBFromString().
- Parameters:
-
| 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. |
- Returns:
- TRUE if the color could be successfully parsed, or FALSE in case of errors.
Undocumented.
- Parameters:
-
| pszId | Undocumented |
| pszWanted | Undocumented |
- Returns:
- Undocumented
Get the style string for this Style Tool.
Maps to the OGRStyleTool subclasses' GetStyleString() methods.
- Returns:
- the style string for this style tool or "" if the hST is invalid.
Undocumented.
- Parameters:
-
| pasStyleParam | undocumented. |
| pasStyleValue | undocumented. |
| nSize | undocumented. |
- Returns:
- undocumented.
Determine type of Style Tool.
- Returns:
- the style tool type, one of OGRSTCPen (1), OGRSTCBrush (2), OGRSTCSymbol (3) or OGRSTCLabel (4). Returns OGRSTCNone (0) if the OGRStyleToolH is invalid.
Get Style Tool units.
- Returns:
- the style tool units.
Undocumented.
- Parameters:
-
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| dfParam | undocumented. |
Undocumented.
- Parameters:
-
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| nParam | undocumented. |
| void OGRStyleTool::SetParamStr |
( |
const OGRStyleParamId & |
sStyleParam, |
|
|
OGRStyleValue & |
sStyleValue, |
|
|
const char * |
pszParamString |
|
) |
| |
Undocumented.
- Parameters:
-
| sStyleParam | undocumented. |
| sStyleValue | undocumented. |
| pszParamString | undocumented. |
Undocumented.
- Parameters:
-
| pszStyleString | undocumented. |
Set Style Tool units.
- Parameters:
-
| eUnit | the new unit. |
| dfGroundPaperScale | ground to paper scale factor. |
The documentation for this class was generated from the following files: