26 #ifndef __TERRALIB_COLOR_INTERNAL_COLORBAR_H
27 #define __TERRALIB_COLOR_INTERNAL_COLORBAR_H
101 const std::string& getName()
const;
108 void setName(
const std::string& name);
115 const std::map<double, te::color::RGBAColor>& getColorMap()
const;
122 const std::vector<te::color::RGBAColor>& getColorBar();
130 const std::vector<te::color::RGBAColor>& getSlices(
const int& n);
134 const std::vector<te::color::RGBAColor>& getLowerMeanSlices(
const int& n);
136 const std::vector<te::color::RGBAColor>& getUpperMeanSlices(
const int& n);
143 void setBarSize(
const int& size);
162 void addColor(
const RGBAColor& color,
const double& pos);
183 void remove(
const int& index);
193 void remove(
const double& pos);
204 void removeReverse(
const int& index);
212 void changeColor(
const double& pos,
const RGBAColor& color);
220 void changeColor(
const int& index,
const RGBAColor& color);
229 void move(
const RGBAColor& color,
const double& pos);
241 int move(
const int& index,
const double& pos);
253 double move(
const double& pi,
const double& pm);
265 int moveReverse(
const int& index,
const double& pos);
277 void generateColorBar();
284 void generateSlices(
const int& n);
300 #endif // __TERRALIB_COLOR_INTERNAL_COLORBAR_H
std::vector< RGBAColor > m_colorSliceVec
Color step vector.
A helper class for 24-bit RGBA (Red-Green-Blue-Alpha channel) color.
int m_barSize
Size of color bar (number of colors in the color bar).
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
std::vector< RGBAColor > m_colorBarVec
Color vector.
It models the concept of color bar.
std::map< double, RGBAColor > m_colorMap
Color map.
std::string m_name
Color bar name.
#define TECOLOREXPORT
You can use this macro in order to export/import classes and functions from this module.