te::map::Grouping Class Reference

This class contains the parameters needed for grouping the values of a Property. More...

#include <Grouping.h>

Public Member Functions

Groupingclone ()
 
const size_t getNumSlices () const
 It gets the number of slices used in the Equal Steps and Quantil groupings. More...
 
const size_t getPrecision () const
 It gets the precision used for the property values. More...
 
std::string getPropertyName () const
 It gets the property name whose values will be grouped. More...
 
int getPropertyType () const
 It gets the property type whose values will be grouped. More...
 
const double getStdDeviation () const
 It gets the standard deviation used in the Standard Deviation grouping. More...
 
std::string getSummary () const
 It gets the grouping summary. It is used only in case 1 to n. More...
 
const GroupingType getType () const
 It gets the grouping type. More...
 
 Grouping (const std::string &propertyName, GroupingType type, size_t precision=6)
 It constructs a new Grouping instance. More...
 
 Grouping (const Grouping &rhs)
 Copy constructor. More...
 
bool isVisible () const
 It gets the grouping visibility. More...
 
void setNumSlices (size_t numSlices)
 It sets the number of slices for the EqualSteps and Quantil groupings. More...
 
void setPrecision (size_t precision)
 It sets the precision to be used for the property values. More...
 
void setPropertyName (const std::string &name)
 It sets the property name whose values will be grouped. More...
 
void setPropertyType (const int &type)
 It sets the property type whose values will be grouped. More...
 
void setStdDeviation (double stdDeviation)
 It sets the standard deviation for the Standard Deviation grouping. More...
 
void setSummary (const std::string &summary)
 It gets the grouping summary. It is used only in case 1 to n. More...
 
void setType (GroupingType type)
 It sets the grouping type. More...
 
void setVisibility (bool visible)
 It sets the grouping visibility. More...
 
 ~Grouping ()
 Destructor. More...
 

Private Attributes

bool m_isVisible
 A flag that indicates if the grouping is visible. More...
 
size_t m_numSlices
 The number of slices used in the Equal Steps and Quantil groupings. More...
 
size_t m_precision
 The precision of the values. More...
 
std::string m_propertyName
 The property name whose values will be used to make the grouping. More...
 
int m_propertyType
 The property type whose values will be used to make the grouping. More...
 
double m_stdDeviation
 The standard deviation used in the Standard Deviation grouping. More...
 
std::string m_summary
 The summary used in case 1 to n. More...
 
GroupingType m_type
 The grouping type. More...
 

Detailed Description

This class contains the parameters needed for grouping the values of a Property.

See also
Layer

Definition at line 57 of file Grouping.h.

Constructor & Destructor Documentation

te::map::Grouping::Grouping ( const std::string &  propertyName,
GroupingType  type,
size_t  precision = 6 
)

It constructs a new Grouping instance.

Parameters
propertyNameThe property name whose values will be used to make the grouping.
typeThe grouping type.
precisionThe precision to be set to the property values.

Definition at line 32 of file Grouping.cpp.

References m_propertyType, and te::dt::UNKNOWN_TYPE.

Referenced by clone().

te::map::Grouping::~Grouping ( )
default

Destructor.

Referenced by Grouping().

te::map::Grouping::Grouping ( const Grouping rhs)

Copy constructor.

Definition at line 42 of file Grouping.cpp.

References m_numSlices, m_stdDeviation, setNumSlices(), setStdDeviation(), and ~Grouping().

Member Function Documentation

const size_t te::map::Grouping::getNumSlices ( ) const

It gets the number of slices used in the Equal Steps and Quantil groupings.

The number of slices.

Definition at line 109 of file Grouping.cpp.

References m_numSlices.

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

const size_t te::map::Grouping::getPrecision ( ) const
int te::map::Grouping::getPropertyType ( ) const

It gets the property type whose values will be grouped.

Returns
The property type.

Definition at line 78 of file Grouping.cpp.

References m_propertyType.

Referenced by te::map::AbstractLayerRenderer::drawLayerGrouping(), and te::map::serialize::WriteLayerGrouping().

const double te::map::Grouping::getStdDeviation ( ) const

It gets the standard deviation used in the Standard Deviation grouping.

The standard deviation.

Definition at line 119 of file Grouping.cpp.

References m_stdDeviation.

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

std::string te::map::Grouping::getSummary ( ) const

It gets the grouping summary. It is used only in case 1 to n.

Definition at line 139 of file Grouping.cpp.

References m_summary.

Referenced by te::map::QueryLayerRenderer::drawLayerGroupingMem(), te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem(), and te::map::serialize::WriteLayerGrouping().

bool te::map::Grouping::isVisible ( ) const

It gets the grouping visibility.

Definition at line 129 of file Grouping.cpp.

References m_isVisible.

Referenced by te::map::QueryLayerRenderer::draw(), and te::map::AbstractLayerRenderer::draw().

void te::map::Grouping::setNumSlices ( size_t  numSlices)

It sets the number of slices for the EqualSteps and Quantil groupings.

Parameters
numSlicesThe number of slices.

Definition at line 114 of file Grouping.cpp.

References m_numSlices.

Referenced by clone(), te::sa::CreateBayesGrouping(), te::sa::CreateKernelGrouping(), and Grouping().

void te::map::Grouping::setPrecision ( size_t  precision)

It sets the precision to be used for the property values.

Parameters
precisionThe precision value.

Definition at line 104 of file Grouping.cpp.

References m_precision.

Referenced by te::sa::CreateBayesGrouping(), te::sa::CreateKernelGrouping(), te::sa::CreateSampleGeneratorStratifiedGrouping(), and te::sa::CreateSkaterGrouping().

void te::map::Grouping::setPropertyName ( const std::string &  name)

It sets the property name whose values will be grouped.

Parameters
nameThe property name.

Definition at line 73 of file Grouping.cpp.

References m_propertyName.

void te::map::Grouping::setPropertyType ( const int type)

It sets the property type whose values will be grouped.

Parameters
typeThe property type.

Definition at line 83 of file Grouping.cpp.

References m_propertyType.

Referenced by clone(), te::sa::CreateBayesGrouping(), te::sa::CreateKernelGrouping(), te::sa::CreateSampleGeneratorStratifiedGrouping(), te::sa::CreateSkaterGrouping(), and te::qt::plugins::terralib4::GetGrouping().

void te::map::Grouping::setStdDeviation ( double  stdDeviation)

It sets the standard deviation for the Standard Deviation grouping.

Parameters
stdDeviationThe standard deviation.

Definition at line 124 of file Grouping.cpp.

References m_stdDeviation.

Referenced by clone(), te::sa::CreateBayesGrouping(), te::sa::CreateKernelGrouping(), te::sa::CreateSampleGeneratorStratifiedGrouping(), te::sa::CreateSkaterGrouping(), te::qt::plugins::terralib4::GetGrouping(), and Grouping().

void te::map::Grouping::setSummary ( const std::string &  summary)

It gets the grouping summary. It is used only in case 1 to n.

Parameters
summaryThe summary mode. It can be: "MIN", "MAX", "SUM", "AVERAGE", "MEDIAN", "STDDEV" or "VARIANCE"

Definition at line 144 of file Grouping.cpp.

References m_summary.

Referenced by clone().

void te::map::Grouping::setType ( GroupingType  type)

It sets the grouping type.

Parameters
typeThe grouping type.

Definition at line 94 of file Grouping.cpp.

References m_type.

void te::map::Grouping::setVisibility ( bool  visible)

It sets the grouping visibility.

Parameters
visibleThe visibility value.

Definition at line 134 of file Grouping.cpp.

References m_isVisible.

Referenced by clone().

Member Data Documentation

bool te::map::Grouping::m_isVisible
private

A flag that indicates if the grouping is visible.

Definition at line 191 of file Grouping.h.

Referenced by clone(), isVisible(), and setVisibility().

size_t te::map::Grouping::m_numSlices
private

The number of slices used in the Equal Steps and Quantil groupings.

Definition at line 189 of file Grouping.h.

Referenced by clone(), getNumSlices(), Grouping(), and setNumSlices().

size_t te::map::Grouping::m_precision
private

The precision of the values.

Definition at line 188 of file Grouping.h.

Referenced by clone(), getPrecision(), and setPrecision().

std::string te::map::Grouping::m_propertyName
private

The property name whose values will be used to make the grouping.

Definition at line 185 of file Grouping.h.

Referenced by clone(), getPropertyName(), and setPropertyName().

int te::map::Grouping::m_propertyType
private

The property type whose values will be used to make the grouping.

Definition at line 186 of file Grouping.h.

Referenced by clone(), getPropertyType(), Grouping(), and setPropertyType().

double te::map::Grouping::m_stdDeviation
private

The standard deviation used in the Standard Deviation grouping.

Definition at line 190 of file Grouping.h.

Referenced by clone(), getStdDeviation(), Grouping(), and setStdDeviation().

std::string te::map::Grouping::m_summary
private

The summary used in case 1 to n.

Definition at line 193 of file Grouping.h.

Referenced by clone(), getSummary(), and setSummary().

GroupingType te::map::Grouping::m_type
private

The grouping type.

Definition at line 187 of file Grouping.h.

Referenced by clone(), getType(), and setType().


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