A TextSymbolizer is used to render text labels according to various graphical parameters.
More...
#include <TextSymbolizer.h>
|
static const std::string | sm_type |
| A static data member used in the implementation of getType method. More...
|
|
A TextSymbolizer is used to render text labels according to various graphical parameters.
In this case, if a line, polygon, or raster geometry is used with this Symbolizer, then the semantic is to use the centroid of the geometry, or any similar representative point.
- See also
- Symbolizer, ParameterValue, Font, LabelPlacement, Halo, Fill, te::fe::PropertyName
- Note
- If a Label element is not provided in a TextSymbolizer, then no text shall be rendered.
Definition at line 62 of file TextSymbolizer.h.
te::se::TextSymbolizer::TextSymbolizer |
( |
| ) |
|
Copy constructor.
- Parameters
-
rhs | The other text symbolizer. |
te::se::TextSymbolizer::~TextSymbolizer |
( |
| ) |
|
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::TextSymbolizer::clone |
( |
| ) |
const |
|
virtual |
const Description* te::se::Symbolizer::getDescription |
( |
| ) |
const |
|
inherited |
const Fill* te::se::TextSymbolizer::getFill |
( |
| ) |
const |
const Font* te::se::TextSymbolizer::getFont |
( |
| ) |
const |
const Halo* te::se::TextSymbolizer::getHalo |
( |
| ) |
const |
const LabelPlacement* te::se::TextSymbolizer::getLabelPlacement |
( |
| ) |
const |
const std::string& te::se::Symbolizer::getName |
( |
| ) |
const |
|
inherited |
const std::string& te::se::TextSymbolizer::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 |
void te::se::TextSymbolizer::setFill |
( |
Fill * |
f | ) |
|
void te::se::TextSymbolizer::setFont |
( |
Font * |
f | ) |
|
void te::se::TextSymbolizer::setHalo |
( |
Halo * |
h | ) |
|
void te::se::Symbolizer::setName |
( |
const std::string & |
name | ) |
|
|
inherited |
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 |
Fill* te::se::TextSymbolizer::m_fill |
|
private |
It specifies how the text area will be filled. (Optional)
Definition at line 129 of file TextSymbolizer.h.
Font* te::se::TextSymbolizer::m_font |
|
private |
The font element specifies the text font to use. (Optional)
Definition at line 126 of file TextSymbolizer.h.
Halo* te::se::TextSymbolizer::m_halo |
|
private |
A Halo is a type of Fill that is applied to the backgrounds of font glyphs. (Optional)
Definition at line 128 of file TextSymbolizer.h.
The label specifies the textual content to be rendered. (Optional)
Definition at line 125 of file TextSymbolizer.h.
The label placement specifies where and how a text label should be rendered relative to a geometry. (Optional)
Definition at line 127 of file TextSymbolizer.h.
const std::string te::se::TextSymbolizer::sm_type |
|
staticprivate |
A static data member used in the implementation of getType method.
Definition at line 131 of file TextSymbolizer.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/se/TextSymbolizer.h