This class contains the parameters needed for grouping the values of a Property.
More...
#include <Grouping.h>
This class contains the parameters needed for grouping the values of a Property.
- See also
- GroupingItem, Layer
Definition at line 59 of file Grouping.h.
te::map::Grouping::Grouping |
( |
const std::string & |
propertyName, |
|
|
GroupingType |
type, |
|
|
size_t |
precision = 6 |
|
) |
| |
It constructs a new Grouping instance.
- Parameters
-
propertyName | The property name whose values will be used to make the grouping. |
type | The grouping type. |
precision | The precision to be set to the property values. |
te::map::Grouping::~Grouping |
( |
| ) |
|
te::map::Grouping::Grouping |
( |
const Grouping & |
rhs | ) |
|
It gets the vector of grouping items.
- Returns
- The vector of grouping items.
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.
const size_t te::map::Grouping::getPrecision |
( |
| ) |
const |
It gets the precision used for the property values.
The precision used for the property values.
std::string te::map::Grouping::getPropertyName |
( |
| ) |
const |
It gets the property name whose values will be grouped.
- Returns
- The property name.
int te::map::Grouping::getPropertyType |
( |
| ) |
const |
It gets the property type whose values will be grouped.
- Returns
- The property type.
const double te::map::Grouping::getStdDeviation |
( |
| ) |
const |
It gets the standard deviation used in the Standard Deviation grouping.
The standard deviation.
std::string te::map::Grouping::getSummary |
( |
| ) |
const |
It gets the grouping summary. It is used only in case 1 to n.
It gets the grouping type.
- Returns
- The grouping type.
bool te::map::Grouping::isVisible |
( |
| ) |
const |
It gets the grouping visibility.
It sets the vector of grouping items.
- Parameters
-
The | vector of grouping items. |
void te::map::Grouping::setNumSlices |
( |
size_t |
numSlices | ) |
|
It sets the number of slices for the EqualSteps and Quantil groupings.
- Parameters
-
numSlices | The number of slices. |
void te::map::Grouping::setPrecision |
( |
size_t |
precision | ) |
|
It sets the precision to be used for the property values.
- Parameters
-
precision | The precision value. |
void te::map::Grouping::setPropertyName |
( |
const std::string & |
name | ) |
|
It sets the property name whose values will be grouped.
- Parameters
-
void te::map::Grouping::setPropertyType |
( |
const int & |
type | ) |
|
It sets the property type whose values will be grouped.
- Parameters
-
void te::map::Grouping::setStdDeviation |
( |
double |
stdDeviation | ) |
|
It sets the standard deviation for the Standard Deviation grouping.
- Parameters
-
stdDeviation | The standard deviation. |
void te::map::Grouping::setSummary |
( |
const std::string & |
summary | ) |
|
It gets the grouping summary. It is used only in case 1 to n.
- Parameters
-
summary | The summary mode. It can be: "MIN", "MAX", "SUM", "AVERAGE", "MEDIAN", "STDDEV" or "VARIANCE" |
It sets the grouping type.
- Parameters
-
void te::map::Grouping::setVisibility |
( |
bool |
visible | ) |
|
It sets the grouping visibility.
- Parameters
-
visible | The visibility value. |
bool te::map::Grouping::m_isVisible |
|
private |
A flag that indicates if the grouping is visible.
Definition at line 205 of file Grouping.h.
The vector of grouping items.
Definition at line 206 of file Grouping.h.
size_t te::map::Grouping::m_numSlices |
|
private |
The number of slices used in the Equal Steps and Quantil groupings.
Definition at line 203 of file Grouping.h.
size_t te::map::Grouping::m_precision |
|
private |
The precision of the values.
Definition at line 202 of file Grouping.h.
std::string te::map::Grouping::m_propertyName |
|
private |
The property name whose values will be used to make the grouping.
Definition at line 199 of file Grouping.h.
int te::map::Grouping::m_propertyType |
|
private |
The property type whose values will be used to make the grouping.
Definition at line 200 of file Grouping.h.
double te::map::Grouping::m_stdDeviation |
|
private |
The standard deviation used in the Standard Deviation grouping.
Definition at line 204 of file Grouping.h.
std::string te::map::Grouping::m_summary |
|
private |
The summary used in case 1 to n.
Definition at line 207 of file Grouping.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/src/terralib/maptools/Grouping.h