A LineSymbolizer is used to style a stroke along a linear geometry type, such as a string of line segments.
More...
#include <LineSymbolizer.h>
|
static const std::string | sm_type |
| A static data member used in the implementation of getType method. More...
|
|
A LineSymbolizer is used to style a stroke along a linear geometry type, such as a string of line segments.
- See also
- Symbolizer, Stroke, ParameterValue, te::fe::PropertyName, ImageOutline
Definition at line 51 of file LineSymbolizer.h.
te::se::LineSymbolizer::LineSymbolizer |
( |
| ) |
|
Copy constructor.
- Parameters
-
rhs | The other line symbolizer. |
te::se::LineSymbolizer::~LineSymbolizer |
( |
| ) |
|
It call the visit method from the guest object.
- Parameters
-
guest | The guest or visitor. |
- Returns
- Any valid value define by the template type R.
Symbolizer* te::se::LineSymbolizer::clone |
( |
| ) |
const |
|
virtual |
const Description* te::se::Symbolizer::getDescription |
( |
| ) |
const |
|
inherited |
const std::string& te::se::Symbolizer::getName |
( |
| ) |
const |
|
inherited |
const ParameterValue* te::se::LineSymbolizer::getPerpendicularOffset |
( |
| ) |
const |
const Stroke* te::se::LineSymbolizer::getStroke |
( |
| ) |
const |
const std::string& te::se::LineSymbolizer::getType |
( |
| ) |
const |
|
virtual |
It returns the symbolizer type.
- Returns
- The symbolizer type.
Implements te::se::Symbolizer.
const te::common::BaseUnitOfMeasure* te::se::Symbolizer::getUom |
( |
| ) |
const |
|
inherited |
const std::string& te::se::Symbolizer::getVersion |
( |
| ) |
const |
|
inherited |
void te::se::Symbolizer::setDescription |
( |
Description * |
d | ) |
|
|
inherited |
The Geometry element of a LineSymbolizer defines the linear geometry to be used for styling. The Geometry element is optional and if it is absent then the all geometry properties of the feature type that is used in the containing FeatureType are used. Most frequently, though, feature types will have only a single geometry property. See OGC te::fe::PropertyName class for more information on attribute names.
- Note
- Geometry types other than inherently linear types can also be used. If a point geometry is used, it should be interpreted as a line of "epsilon" (arbitrarily small) length with a horizontal orientation centered on the point, and should be rendered with two end caps. If a polygon is used (or other "area" type), then its closed outline is used as the line string (with no end caps). If a raster geometry is used, its coverage-area outline is used for the line, rendered with no end caps.
void te::se::Symbolizer::setName |
( |
const std::string & |
name | ) |
|
|
inherited |
void te::se::LineSymbolizer::setPerpendicularOffset |
( |
ParameterValue * |
perpendicularOffset | ) |
|
PerpendicularOffset allows to draw lines in parallel to the original geometry. For complex line strings these parallel lines have to be constructed so that the distance between original geometry and drawn line stays equal. This construction can result in drawn lines that are actually smaller or longer than the original geometry. The distance is in uoms and is positive to the left-hand side of the line string. Negative numbers mean right. The default offset is 0.
void te::se::LineSymbolizer::setStroke |
( |
Stroke * |
stroke | ) |
|
A Stroke specifies the appearance of a linear geometry. The Stroke element is optional inside of LineSymbolizer (and other Symbolizers), and its absence means that no stroke is to be rendered.
void te::se::Symbolizer::setUom |
( |
const te::common::BaseUnitOfMeasure * |
uom | ) |
|
|
inherited |
It sets the unit-of-measure.
All Symbolizers include an optional gml:uom-attribute as used by GML (this is set inside the abstract SymbolizerType and therefore inherited by all Symbolizers). This applies to all elements included inside a Symbolizer such as stroke-width, size, font-size, Gap, InitialGap, Displacement and PerpendicularOffset. If no uom is set inside of Symbolizer, all units are measured in pixel, the behaviour used by SLD 1.0.0. The following uom definitions are recommended to be used:
void te::se::Symbolizer::setVersion |
( |
const std::string & |
version | ) |
|
|
inherited |
A Geometry gives reference to a (the) geometry property of a feature to be used for rendering. (Optional)
Definition at line 144 of file LineSymbolizer.h.
A PerpendicularOffset gives the perpendicular distance away from a line to draw a label. (Optional)
Definition at line 146 of file LineSymbolizer.h.
Stroke* te::se::LineSymbolizer::m_stroke |
|
private |
const std::string te::se::LineSymbolizer::sm_type |
|
staticprivate |
A static data member used in the implementation of getType method.
Definition at line 148 of file LineSymbolizer.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/se/LineSymbolizer.h