27 #include "../se/Utils.h"
37 m_properties(properties),
38 m_contourColor(te::color::RGBAColor(0, 0, 0,
TE_OPAQUE)),
44 m_avoidConflicts(true)
46 assert(!properties.empty());
58 m_properties(properties),
60 m_contourColor(te::color::RGBAColor(0, 0, 0,
TE_OPAQUE)),
66 m_avoidConflicts(true)
68 assert(!properties.empty());
69 assert(properties.size() == colors.size());
88 assert(i < m_colors.size());
95 assert(i < m_colors.size());
102 return m_contourColor;
107 m_contourColor = color;
112 return m_contourWidth;
117 m_contourWidth = width;
139 return m_barWidth * m_properties.size();
172 m_isVisible = visible;
177 m_avoidConflicts = on;
182 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::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.
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.
std::size_t getContourWidth() const
const te::color::RGBAColor & getContourColor() 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