te::map::GroupingItem Class Reference

A GroupingItem contains information about a grouping item associated to a layer. More...

#include <GroupingItem.h>

Public Member Functions

std::size_t getCount () const
 It gets the number of objects whose values are between the lower and upper limits. More...
 
const std::string & getLowerLimit () const
 It gets the lower limit value of the legend item. More...
 
const std::vector< te::se::Symbolizer * > & getSymbolizers () const
 It gets the symbolizer of the legend item. More...
 
std::string getTitle ()
 It gets the title of the legend item. More...
 
const std::string & getUpperLimit () const
 It gets the upper limit value of the legend item. More...
 
const std::string & getValue () const
 It gets the value of the legend item. More...
 
 GroupingItem (const std::string &from="", const std::string &to="")
 It initializes a new GroupingItem. More...
 
 GroupingItem (const GroupingItem &rhs)
 Copy constructor. More...
 
GroupingItemoperator= (const GroupingItem &rhs)
 
void setCount (std::size_t count)
 It It sets the number of objects whose values are between the lower and upper limits. More...
 
void setLowerLimit (const std::string &from)
 It sets the lower limit value of the legend item. More...
 
void setSymbolizers (const std::vector< te::se::Symbolizer * > &symbolizers)
 It sets the symbolizers of the legend item. More...
 
void setTitle (const std::string &title)
 It sets the title of the legend item. More...
 
void setUpperLimit (const std::string &to)
 It sets the upper limit value of the legend item. More...
 
void setValue (const std::string &value)
 It sets value of the legend item. More...
 
 ~GroupingItem ()
 Destructor. More...
 

Private Attributes

std::size_t m_count
 The number of objects whose values are between the lower and upper limits. More...
 
std::string m_from
 The value of the lower limit of the legend item. More...
 
std::vector< te::se::Symbolizer * > m_symbolizers
 The color of the legend item. More...
 
std::string m_title
 A text that can be used to identify this legend item. More...
 
std::string m_to
 The value of the upper limit of the legend item. More...
 
std::string m_value
 The value of the legend item. More...
 

Detailed Description

A GroupingItem contains information about a grouping item associated to a layer.

See also
AbstractLayer, Layer

Definition at line 48 of file GroupingItem.h.

Constructor & Destructor Documentation

te::map::GroupingItem::GroupingItem ( const std::string &  from = "",
const std::string &  to = "" 
)

It initializes a new GroupingItem.

Parameters
fromThe value of the lower limit of the legend item.
toThe value of the upper limit of the legend item.
te::map::GroupingItem::~GroupingItem ( )

Destructor.

te::map::GroupingItem::GroupingItem ( const GroupingItem rhs)

Copy constructor.

Member Function Documentation

std::size_t te::map::GroupingItem::getCount ( ) const

It gets the number of objects whose values are between the lower and upper limits.

The number of objects whose values are between the lower and upper limits.

const std::string& te::map::GroupingItem::getLowerLimit ( ) const

It gets the lower limit value of the legend item.

The lower limit value of the legend item.

Referenced by te::map::SetNumberOfElementsByLegendItem().

const std::vector<te::se::Symbolizer*>& te::map::GroupingItem::getSymbolizers ( ) const

It gets the symbolizer of the legend item.

The symbolizer of the legend item.

std::string te::map::GroupingItem::getTitle ( )

It gets the title of the legend item.

Returns
The title of the legend item.
const std::string& te::map::GroupingItem::getUpperLimit ( ) const

It gets the upper limit value of the legend item.

The upper limit value of the legend item.

Referenced by te::map::SetNumberOfElementsByLegendItem().

const std::string& te::map::GroupingItem::getValue ( ) const

It gets the value of the legend item.

The value of the legend item.

GroupingItem& te::map::GroupingItem::operator= ( const GroupingItem rhs)

Assignment operator.

void te::map::GroupingItem::setCount ( std::size_t  count)

It It sets the number of objects whose values are between the lower and upper limits.

Parameters
countThe number of objects whose values are between the lower and upper limits

Referenced by te::map::SetNumberOfElementsByLegendItem().

void te::map::GroupingItem::setLowerLimit ( const std::string &  from)

It sets the lower limit value of the legend item.

Parameters
fromThe lower limit value.

Referenced by te::map::GroupingByEqualSteps(), te::map::GroupingByQuantil(), and te::map::GroupingByStdDeviation().

void te::map::GroupingItem::setSymbolizers ( const std::vector< te::se::Symbolizer * > &  symbolizers)

It sets the symbolizers of the legend item.

Parameters
symbolizersThe symbolizers of the legend item..
void te::map::GroupingItem::setTitle ( const std::string &  title)

It sets the title of the legend item.

Parameters
titleThe title of the legend item..

Referenced by te::map::GroupingByStdDeviation().

void te::map::GroupingItem::setUpperLimit ( const std::string &  to)

It sets the upper limit value of the legend item.

Parameters
toThe upper limit value.

Referenced by te::map::GroupingByEqualSteps(), te::map::GroupingByQuantil(), and te::map::GroupingByStdDeviation().

void te::map::GroupingItem::setValue ( const std::string &  value)

It sets value of the legend item.

Parameters
valueThe value of the legend item.

Member Data Documentation

std::size_t te::map::GroupingItem::m_count
private

The number of objects whose values are between the lower and upper limits.

Definition at line 158 of file GroupingItem.h.

std::string te::map::GroupingItem::m_from
private

The value of the lower limit of the legend item.

Definition at line 155 of file GroupingItem.h.

std::vector<te::se::Symbolizer*> te::map::GroupingItem::m_symbolizers
private

The color of the legend item.

Definition at line 160 of file GroupingItem.h.

std::string te::map::GroupingItem::m_title
private

A text that can be used to identify this legend item.

Definition at line 159 of file GroupingItem.h.

std::string te::map::GroupingItem::m_to
private

The value of the upper limit of the legend item.

Definition at line 156 of file GroupingItem.h.

std::string te::map::GroupingItem::m_value
private

The value of the legend item.

Definition at line 157 of file GroupingItem.h.


The documentation for this class was generated from the following file: