26 #ifndef __TERRALIB_MAPTOOLS_INTERNAL_CHART_H
27 #define __TERRALIB_MAPTOOLS_INTERNAL_CHART_H
30 #include "../color/RGBAColor.h"
70 Chart(
ChartType type,
const std::vector<std::string>& properties,
const std::vector<te::color::RGBAColor>& colors);
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
This class represents the informations needed to build map charts.
te::color::RGBAColor m_contourColor
The chart contour color.
const te::color::RGBAColor & getContourColor() const
const std::vector< size_t > & getPropertiesPos() const
std::string m_summary
The summary used in case 1 to n.
bool m_avoidConflicts
A flag that indicates if conflicts must be avoided.
std::size_t getWidth() const
Chart(ChartType type, const std::vector< std::string > &properties, const std::vector< te::color::RGBAColor > &colors)
It constructs a new Chart instance.
void setColor(std::size_t i, const te::color::RGBAColor &color)
bool isVisible() const
It gets the chart visibility.
double getMaxValue() const
ChartType m_type
The chart type.
std::size_t m_barWidth
The bar width for char Bar type (in pixels).
Chart(ChartType type, const std::vector< std::string > &properties)
It constructs a new Chart instance.
bool m_isVisible
A flag that indicates if the chart is visible.
void setVisibility(bool visible)
It sets the chart visibility.
std::size_t getBarWidth() const
std::vector< te::color::RGBAColor > m_colors
The color used to each property.
void setAvoidConflicts(bool on)
bool getAvoidConflicts() const
ChartType getType() const
void setPropertiesPos(const std::vector< size_t > &propPos)
const std::vector< std::string > & getProperties() const
std::size_t getHeight() const
const te::color::RGBAColor & getColor(std::size_t i) const
void setBarWidth(std::size_t width)
std::size_t getContourWidth() const
void setContourColor(const te::color::RGBAColor &color)
std::string getSummary() const
It gets the grouping summary. It is used only in case 1 to n.
void setSummary(const std::string &summary)
It gets the grouping summary. It is used only in case 1 to n.
std::vector< size_t > m_propertiesPos
The properties position.
void setHeight(std::size_t height)
std::vector< std::string > m_properties
The property names that will be used to generate the chart.
std::size_t m_height
The chart height (in pixels).
double m_maxValue
The max value of the chart.
void setMaxValue(double value)
std::size_t m_contourWidth
The chart contour width (in pixels).
void setContourWidth(std::size_t width)
ChartType
The chart types.
Proxy configuration file for TerraView (see terraview_config.h).
Enumerations of XML module.