All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

Definition at line 32 of file GroupingItem.cpp.

te::map::GroupingItem::~GroupingItem ( )

Destructor.

Definition at line 38 of file GroupingItem.cpp.

References te::common::FreeContents().

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

Copy constructor.

Definition at line 44 of file GroupingItem.cpp.

References m_symbolizers.

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.

Definition at line 123 of file GroupingItem.cpp.

Referenced by te::qt::widgets::GroupingWidget::updateUi().

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

It gets the title of the legend item.

Returns
The title of the legend item.

Definition at line 103 of file GroupingItem.cpp.

Referenced by te::qt::widgets::GroupingWidget::updateUi(), and te::map::serialize::WriteLayerGrouping().

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

Assignment operator.

Definition at line 54 of file GroupingItem.cpp.

References m_count, m_from, m_symbolizers, m_title, m_to, and m_value.

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

Definition at line 128 of file GroupingItem.cpp.

Referenced by te::sa::CreateBayesGrouping(), te::qt::widgets::GroupingWidget::createDoubleNullGroupingItem(), te::sa::CreateKernelGrouping(), te::qt::widgets::GroupingWidget::createStringNullGroupingItem(), te::map::GroupingByUniqueValues(), and te::map::SetNumberOfElementsByLegendItem().

void te::map::GroupingItem::setLowerLimit ( const std::string &  from)
void te::map::GroupingItem::setSymbolizers ( const std::vector< te::se::Symbolizer * > &  symbolizers)
void te::map::GroupingItem::setTitle ( const std::string &  title)
void te::map::GroupingItem::setUpperLimit ( const std::string &  to)
void te::map::GroupingItem::setValue ( const std::string &  value)

It sets value of the legend item.

Parameters
valueThe value of the legend item.

Definition at line 78 of file GroupingItem.cpp.

Referenced by te::qt::widgets::GroupingWidget::createStringNullGroupingItem(), te::qt::plugins::terralib4::GetGrouping(), and te::map::GroupingByUniqueValues().

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.

Referenced by operator=().

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.

Referenced by operator=().

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.

Referenced by GroupingItem(), and operator=().

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.

Referenced by operator=().

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.

Referenced by operator=().

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

The value of the legend item.

Definition at line 157 of file GroupingItem.h.

Referenced by operator=().


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