27 #include "../common/STLUtils.h" 28 #include "../fe/Filter.h" 40 m_description(nullptr),
41 m_legendGraphic(nullptr),
44 m_minScaleDenominator(0.0),
45 m_maxScaleDenominator(
std::numeric_limits<double>::infinity())
149 m_symbolizers[i] = s;
175 m_symbolizers.erase(m_symbolizers.begin() + i);
A Description gives human-readable descriptive information for the object it is included within...
bool hasElseFilter() const
void setLegendGraphic(Graphic *legendGraphic)
A Symbolizer describes how a feature is to appear on a map.
Graphic * m_legendGraphic
It allows an optional explicit Graphic Symbolizer to be displayed in a legend for this rule...
double m_minScaleDenominator
It defines the range of map-rendering scales for which the rule should be applied. Default: 0.0. (Optional)
const double & getMinScaleDenominator() const
void setDescription(Description *d)
Rule * clone() const
It creates a new copy of this object.
Rule()
It initializes a new Rule.
void setName(std::string *name)
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
void setFilter(te::fe::Filter *f)
const te::fe::Filter * getFilter() const
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
te::fe::Filter * m_filter
It allows the selection of features in rules to be controlled by attribute conditions. (Optional)
void push_back(Symbolizer *s)
std::string * m_name
It allows the rule to be referenced externally, which is needed in some methods of SE usage...
void setMaxScaleDenominator(const double &maxScaleDenominator)
double m_maxScaleDenominator
It defines the range of map-rendering scales for which the rule should be applied. Default: TE_DOUBLE_INFINITY. (Optional)
Filter * clone() const
It creates a new copy of this object.
A Description gives human-readable descriptive information for the object it is included within...
Description * m_description
It gives the familiar short title for display lists and longer description for the rule...
Graphic * clone() const
It creates a new copy of this object.
Description * clone() const
It creates a new copy of this object.
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
A filter is any valid predicate expression.
void setSymbolizers(const std::vector< Symbolizer * > &symbs)
const std::vector< Symbolizer * > & getSymbolizers() const
void removeSymbolizer(std::size_t i)
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
std::vector< Symbolizer * > m_symbolizers
A Symbolizer describes how a feature/coverage is to appear on a map. (Mandatory)
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
A Symbolizer describes how a Feature is to appear on a map.
void setMinScaleDenominator(const double &minScaleDenominator)
const double & getMaxScaleDenominator() const
void setSymbolizer(std::size_t i, Symbolizer *s)
const Description * getDescription() const
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...
const Symbolizer * getSymbolizer(std::size_t i) const
const Graphic * getLegendGraphic() const
bool m_elseFilter
It allows rules to be specified that are activated for features that are not selected by any other ru...
const std::string * getName() const