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());
70 assert(!properties.empty());
71 assert(properties.size() == colors.size());
ChartType
The chart types.
ChartType getType() const
const std::vector< std::string > & getProperties() const
std::size_t m_height
The chart height (in pixels).
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.
double m_maxValue
The max value of the chart.
std::vector< te::color::RGBAColor > m_colors
The color used to each property.
std::size_t m_barWidth
The bar width for char Bar type (in pixels).
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque.
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
This class represents the informations needed to build map charts.
ChartType m_type
The chart type.
void setBarWidth(std::size_t width)
std::size_t getHeight() const
te::color::RGBAColor m_contourColor
The chart contour color.
bool isVisible() const
It gets the chart visibility.
void setVisibility(bool visible)
It sets the chart visibility.
std::string m_summary
The summary used in case 1 to n.
This class represents the informations needed to build map charts.
void setPropertiesPos(const std::vector< size_t > &propPos)
bool m_isVisible
A flag that indicates if the chart is visible.
std::size_t getContourWidth() const
const te::color::RGBAColor & getContourColor() const
std::vector< size_t > m_propertiesPos
The properties position.
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)
std::size_t m_contourWidth
The chart contour width (in pixels).
bool m_avoidConflicts
A flag that indicates if conflicts must be avoided.
void setContourWidth(std::size_t width)
std::size_t getWidth() const