27 #include "../common/STLUtils.h"
28 #include "../datatype/Enums.h"
34 : m_propertyName(propertyName),
36 m_precision(precision),
49 return m_propertyName;
55 m_propertyName = name;
60 return m_propertyType;
65 m_propertyType = type;
86 m_precision = precision;
96 m_numSlices = numSlices;
101 return m_stdDeviation;
106 m_stdDeviation = stdDeviation;
126 m_isVisible = visible;
GroupingType
The grouping type associated to the layer.
const double getStdDeviation() const
It gets the standard deviation used in the Standard Deviation grouping.
void setPrecision(size_t precision)
It sets the precision to be used for the property values.
void setType(GroupingType type)
It sets the grouping type.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
void setGroupingItems(std::vector< te::map::GroupingItem * > &items)
It sets the vector of grouping items.
int getPropertyType() const
It gets the property type whose values will be grouped.
void setNumSlices(size_t numSlices)
It sets the number of slices for the EqualSteps and Quantil groupings.
bool isVisible() const
It gets the grouping visibility.
void setVisibility(bool visible)
It sets the grouping visibility.
Grouping(const std::string &propertyName, GroupingType type, size_t precision=6)
It constructs a new Grouping instance.
const size_t getNumSlices() const
It gets the number of slices used in the Equal Steps and Quantil groupings.
std::string getPropertyName() const
It gets the property name whose values will be grouped.
void setPropertyName(const std::string &name)
It sets the property name whose values will be grouped.
const size_t getPrecision() const
It gets the precision used for the property values.
void setStdDeviation(double stdDeviation)
It sets the standard deviation for the Standard Deviation grouping.
This class contains the parameters needed for grouping the values of a Property.
int m_propertyType
The property type whose values will be used to make the grouping.
void setPropertyType(const int &type)
It sets the property type whose values will be grouped.
const std::vector< te::map::GroupingItem * > & getGroupingItems() const
It gets the vector of grouping items.
const GroupingType getType() const
It gets the grouping type.