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);
77 const std::vector<std::string>& getProperties()
const;
87 std::size_t getContourWidth()
const;
89 void setContourWidth(std::size_t width);
91 std::size_t getHeight()
const;
93 void setHeight(std::size_t height);
95 std::size_t getWidth()
const;
97 std::size_t getBarWidth()
const;
99 void setBarWidth(std::size_t width);
101 void setMaxValue(
double value);
103 double getMaxValue()
const;
106 bool isVisible()
const;
113 void setVisibility(
bool visible);
115 void setAvoidConflicts(
bool on);
117 bool getAvoidConflicts()
const;
136 #endif // __TERRALIB_MAPTOOLS_INTERNAL_CHART_H
ChartType
The chart types.
std::size_t m_height
The chart height (in pixels).
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).
std::vector< std::string > m_properties
The property names that will be used to generate the chart.
This class represents the informations needed to build map charts.
ChartType m_type
The chart type.
te::color::RGBAColor m_contourColor
The chart contour color.
bool m_isVisible
A flag that indicates if the chart is visible.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
std::size_t m_contourWidth
The chart contour width (in pixels).
bool m_avoidConflicts
A flag that indicates if conflicts must be avoided.