27 #include "../se/Utils.h"
37 m_properties(properties),
38 m_contourColor(te::color::RGBAColor(0, 0, 0,
TE_OPAQUE)),
45 assert(!properties.empty());
57 m_properties(properties),
59 m_contourColor(te::color::RGBAColor(0, 0, 0,
TE_OPAQUE)),
66 assert(!properties.empty());
67 assert(properties.size() == colors.size());
86 assert(i < m_colors.size());
93 assert(i < m_colors.size());
100 return m_contourColor;
105 m_contourColor = color;
110 return m_contourWidth;
115 m_contourWidth = width;
137 return m_barWidth * m_properties.size();
170 m_isVisible = visible;
This class represents the informations needed to build map charts.
void setColor(std::size_t i, const te::color::RGBAColor &color)
void setVisibility(bool visible)
It sets the chart visibility.
const te::color::RGBAColor & getContourColor() const
std::size_t getWidth() const
std::size_t getContourWidth() const
ChartType getType() const
bool isVisible() const
It gets the chart visibility.
void setMaxValue(double value)
std::vector< std::string > m_properties
The property names that will be used to generate the chart.
const std::vector< std::string > & getProperties() const
void setHeight(std::size_t height)
ChartType
The chart types.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
void setBarWidth(std::size_t width)
void setContourColor(const te::color::RGBAColor &color)
const te::color::RGBAColor & getColor(std::size_t i) const
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque.
std::vector< te::color::RGBAColor > m_colors
The color used to each property.
std::size_t getHeight() const
double getMaxValue() const
void setContourWidth(std::size_t width)
std::size_t getBarWidth() const
Chart(ChartType type, const std::vector< std::string > &properties)
It constructs a new Chart instance.