27 #include "../common/STLUtils.h" 61 std::string name = p->
getName();
62 std::map<std::string, te::se::SvgParameter*>::iterator it =
m_svgParams.find(name);
112 std::map<std::string, SvgParameter*>::const_iterator it;
114 font->
add(it->second->clone());
121 std::map<std::string, te::se::SvgParameter*>::iterator it =
m_svgParams.find(name);
129 std::map<std::string, te::se::SvgParameter*>::const_iterator it =
m_svgParams.find(name);
A Font specifies the text font to use in a text symbolizer.
A SvgParameter refers to an SVG/CSS graphical-formatting parameter.
static const std::string sm_family
SVG/CSS "font-family" parameter.
const SvgParameter * getParameter(const std::string &name) const
void add(SvgParameter *p)
Add a SvgParameter to this Font.
const SvgParameter * getFamily() const
void setSize(const std::string &size)
const SvgParameter * getWeight() const
static std::map< FontStyleType, std::string > sm_fontStyleMap
A map that associates FontStyleType to the correct string value.
const SvgParameter * getSize() const
std::map< std::string, SvgParameter * > m_svgParams
Set of SvgParameters.
A Font specifies the text font to use in a text symbolizer.
static const std::string sm_weight
SVG/CSS "font-weight" parameter.
std::string getName() const
FontStyleType
It defines the style to use for a font.
static const std::string sm_size
SVG/CSS "font-size" parameter.
Font()
It initializes a new Font.
void setWeight(const FontWeightType &weight)
static std::map< FontWeightType, std::string > sm_fontWeightMap
A map that associates FontWeightType to the correct string value.
void setFamily(const std::string &family)
const SvgParameter * getStyle() const
void setParameter(const std::string &name, const std::string &value)
A SvgParameter refers to an SVG/CSS graphical-formatting parameter.
static const std::string sm_style
SVG/CSS "font-style parameter.
void setStyle(const FontStyleType &style)
FontWeightType
It gives the amount of weight or boldness to use for a font.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
Font * clone() const
It creates a new copy of this object.