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... | |
GroupingItem & | operator= (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... | |
A GroupingItem contains information about a grouping item associated to a layer.
Definition at line 48 of file GroupingItem.h.
te::map::GroupingItem::GroupingItem | ( | const std::string & | from = "" , |
const std::string & | to = "" |
||
) |
It initializes a new GroupingItem.
from | The value of the lower limit of the legend item. |
to | The value of the upper limit of the legend item. |
Definition at line 32 of file GroupingItem.cpp.
te::map::GroupingItem::~GroupingItem | ( | ) |
te::map::GroupingItem::GroupingItem | ( | const GroupingItem & | rhs | ) |
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().
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.
Definition at line 83 of file GroupingItem.cpp.
Referenced by te::map::DataSetLayerRenderer::drawGrouping(), te::layout::LegendModel::drawGroupingLegend(), te::map::AbstractLayerRenderer::drawLayerGrouping(), te::map::QueryLayerRenderer::drawLayerGroupingMem(), te::map::AbstractLayerRenderer::drawLayerGroupingMem(), te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem(), te::layout::LegendItem::paint(), te::map::SetNumberOfElementsByLegendItem(), te::layout::LegendModel::updateBox(), te::qt::widgets::GroupingWidget::updateUi(), and te::map::serialize::WriteLayerGrouping().
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.
Definition at line 133 of file GroupingItem.cpp.
Referenced by te::map::DataSetLayerRenderer::drawGrouping(), te::map::AbstractLayerRenderer::drawLayerGrouping(), te::map::QueryLayerRenderer::drawLayerGroupingMem(), te::map::AbstractLayerRenderer::drawLayerGroupingMem(), te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem(), te::qt::widgets::GroupingWidget::onTableWidgetItemDoubleClicked(), te::layout::LegendItem::paint(), te::qt::widgets::GroupingWidget::updateUi(), and te::map::serialize::WriteLayerGrouping().
std::string te::map::GroupingItem::getTitle | ( | ) |
It gets 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().
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.
Definition at line 93 of file GroupingItem.cpp.
Referenced by te::map::DataSetLayerRenderer::drawGrouping(), te::layout::LegendModel::drawGroupingLegend(), te::map::AbstractLayerRenderer::drawLayerGrouping(), te::map::QueryLayerRenderer::drawLayerGroupingMem(), te::map::AbstractLayerRenderer::drawLayerGroupingMem(), te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem(), te::layout::LegendItem::paint(), te::map::SetNumberOfElementsByLegendItem(), te::layout::LegendModel::updateBox(), te::qt::widgets::GroupingWidget::updateUi(), and te::map::serialize::WriteLayerGrouping().
const std::string & te::map::GroupingItem::getValue | ( | ) | const |
It gets the value of the legend item.
The value of the legend item.
Definition at line 73 of file GroupingItem.cpp.
Referenced by te::map::DataSetLayerRenderer::drawGrouping(), te::layout::LegendModel::drawGroupingLegend(), te::map::AbstractLayerRenderer::drawLayerGrouping(), te::map::QueryLayerRenderer::drawLayerGroupingMem(), te::map::AbstractLayerRenderer::drawLayerGroupingMem(), te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem(), te::layout::LegendItem::paint(), te::layout::LegendModel::updateBox(), 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.
count | The 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 | ) |
It sets the lower limit value of the legend item.
from | The lower limit value. |
Definition at line 88 of file GroupingItem.cpp.
Referenced by te::sa::CreateBayesGrouping(), te::qt::widgets::GroupingWidget::createDoubleNullGroupingItem(), te::sa::CreateKernelGrouping(), te::qt::plugins::terralib4::GetGrouping(), 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.
symbolizers | The symbolizers of the legend item.. |
Definition at line 138 of file GroupingItem.cpp.
References te::common::FreeContents().
Referenced by te::sa::CreateBayesGrouping(), te::qt::widgets::GroupingWidget::createDoubleNullGroupingItem(), te::sa::CreateKernelGrouping(), te::qt::widgets::GroupingWidget::createStringNullGroupingItem(), te::qt::plugins::terralib4::GetGrouping(), and te::qt::widgets::GroupingWidget::onTableWidgetItemDoubleClicked().
void te::map::GroupingItem::setTitle | ( | const std::string & | title | ) |
It sets the title of the legend item.
title | The title of the legend item.. |
Definition at line 118 of file GroupingItem.cpp.
Referenced by te::sa::CreateBayesGrouping(), te::qt::widgets::GroupingWidget::createDoubleNullGroupingItem(), te::sa::CreateKernelGrouping(), te::qt::widgets::GroupingWidget::createStringNullGroupingItem(), te::qt::plugins::terralib4::GetGrouping(), and te::map::GroupingByStdDeviation().
void te::map::GroupingItem::setUpperLimit | ( | const std::string & | to | ) |
It sets the upper limit value of the legend item.
to | The upper limit value. |
Definition at line 98 of file GroupingItem.cpp.
Referenced by te::sa::CreateBayesGrouping(), te::qt::widgets::GroupingWidget::createDoubleNullGroupingItem(), te::sa::CreateKernelGrouping(), te::qt::plugins::terralib4::GetGrouping(), 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.
value | The 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().
|
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=().
|
private |
The value of the lower limit of the legend item.
Definition at line 155 of file GroupingItem.h.
Referenced by operator=().
|
private |
The color of the legend item.
Definition at line 160 of file GroupingItem.h.
Referenced by GroupingItem(), and operator=().
|
private |
A text that can be used to identify this legend item.
Definition at line 159 of file GroupingItem.h.
Referenced by operator=().
|
private |
The value of the upper limit of the legend item.
Definition at line 156 of file GroupingItem.h.
Referenced by operator=().
|
private |
The value of the legend item.
Definition at line 157 of file GroupingItem.h.
Referenced by operator=().