27 #include "../common/STLUtils.h"
28 #include "../se/Symbolizer.h"
33 : m_from(from), m_to(to), m_count(0), m_title(
"")
41 m_symbolizers.clear();
45 : m_from(rhs.m_from), m_to(rhs.m_to), m_value(rhs.m_value),
46 m_count(rhs.m_count), m_title(rhs.m_title)
109 else if(!m_from.empty() && !m_to.empty())
110 m_title = m_from +
" - " + m_to;
112 m_title =
"No Value";
135 return m_symbolizers;
141 m_symbolizers.clear();
143 m_symbolizers = symbolizers;
std::string m_from
The value of the lower limit of the legend item.
void setValue(const std::string &value)
It sets value of the legend item.
std::size_t m_count
The number of objects whose values are between the lower and upper limits.
const std::string & getValue() const
It gets the value of the legend item.
GroupingItem & operator=(const GroupingItem &rhs)
void setTitle(const std::string &title)
It sets the title of the legend item.
A GroupingItem contains information about a grouping item associated to a layer.
~GroupingItem()
Destructor.
const std::string & getUpperLimit() const
It gets the upper limit value of the legend item.
std::string m_value
The value of the legend item.
void setCount(std::size_t count)
It It sets the number of objects whose values are between the lower and upper limits.
void setUpperLimit(const std::string &to)
It sets the upper limit value of the legend item.
GroupingItem(const std::string &from="", const std::string &to="")
It initializes a new GroupingItem.
std::string m_to
The value of the upper limit of the legend item.
std::size_t getCount() const
It gets the number of objects whose values are between the lower and upper limits.
std::string getTitle()
It gets the title of the legend item.
const std::string & getLowerLimit() const
It gets the lower limit value of the legend item.
std::string m_title
A text that can be used to identify this legend item.
const std::vector< te::se::Symbolizer * > & getSymbolizers() const
It gets the symbolizer of the legend item.
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...
std::vector< te::se::Symbolizer * > m_symbolizers
The color of the legend item.
void setSymbolizers(const std::vector< te::se::Symbolizer * > &symbolizers)
It sets the symbolizers of the legend item.
void setLowerLimit(const std::string &from)
It sets the lower limit value of the legend item.