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;
 
   79         const std::vector<size_t>& getPropertiesPos() 
const;
 
   81         void setPropertiesPos(
const std::vector<size_t>& propPos);
 
   91         std::size_t getContourWidth() 
const;
 
   93         void setContourWidth(std::size_t width);
 
   95         std::size_t getHeight() 
const;
 
   97         void setHeight(std::size_t height);
 
   99         std::size_t getWidth() 
const;
 
  101         std::size_t getBarWidth() 
const;
 
  103         void setBarWidth(std::size_t width);
 
  105         void setMaxValue(
double value);
 
  107         double getMaxValue() 
const;
 
  110         bool isVisible() 
const;
 
  117         void setVisibility(
bool visible);
 
  119         void setAvoidConflicts(
bool on);
 
  121         bool getAvoidConflicts() 
const;
 
  125         std::string getSummary() 
const;
 
  132         void setSummary(
const std::string& summary);
 
  153 #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. 
 
std::string m_summary
The summary used in case 1 to n. 
 
bool m_isVisible
A flag that indicates if the chart is visible. 
 
std::vector< size_t > m_propertiesPos
The properties position. 
 
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.