27 #include "../se/Utils.h"
37 m_properties(properties),
38 m_contourColor(
te::color::RGBAColor(0, 0, 0,
TE_OPAQUE)),
44 m_avoidConflicts(true),
47 assert(!properties.empty());
59 m_properties(properties),
61 m_contourColor(
te::color::RGBAColor(0, 0, 0,
TE_OPAQUE)),
67 m_avoidConflicts(true),
70 assert(!properties.empty());
71 assert(properties.size() == colors.size());
90 return m_propertiesPos;
95 m_propertiesPos = proPos;
100 assert(i < m_colors.size());
107 assert(i < m_colors.size());
114 return m_contourColor;
119 m_contourColor = color;
124 return m_contourWidth;
129 m_contourWidth = width;
151 return m_barWidth * m_properties.size();
184 m_isVisible = visible;
189 m_avoidConflicts = on;
194 return m_avoidConflicts;
ChartType
The chart types.
ChartType getType() const
const std::vector< std::string > & getProperties() const
void setContourColor(const te::color::RGBAColor &color)
std::size_t getBarWidth() const
void setColor(std::size_t i, const te::color::RGBAColor &color)
std::string getSummary() const
It gets the grouping summary. It is used only in case 1 to n.
std::vector< te::color::RGBAColor > m_colors
The color used to each property.
void setHeight(std::size_t height)
Chart(ChartType type, const std::vector< std::string > &properties)
It constructs a new Chart instance.
std::vector< std::string > m_properties
The property names that will be used to generate the chart.
void setSummary(const std::string &summary)
It gets the grouping summary. It is used only in case 1 to n.
double getMaxValue() const
void setAvoidConflicts(bool on)
const te::color::RGBAColor & getColor(std::size_t i) const
void setBarWidth(std::size_t width)
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque.
std::size_t getHeight() const
bool isVisible() const
It gets the chart visibility.
void setVisibility(bool visible)
It sets the chart visibility.
This class represents the informations needed to build map charts.
void setPropertiesPos(const std::vector< size_t > &propPos)
std::size_t getContourWidth() const
const te::color::RGBAColor & getContourColor() const
const std::vector< size_t > & getPropertiesPos() const
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
bool getAvoidConflicts() const
void setMaxValue(double value)
void setContourWidth(std::size_t width)
std::size_t getWidth() const