26 #ifndef __TERRALIB_COLOR_INTERNAL_COLORBAR_H
27 #define __TERRALIB_COLOR_INTERNAL_COLORBAR_H
115 const std::map<double, te::color::RGBAColor>&
getColorMap()
const;
130 const std::vector<te::color::RGBAColor>&
getSlices(
const int& n);
241 int move(
const int& index,
const double& pos);
253 double move(
const double& pi,
const double& pm);
A helper class for 24-bit RGBA (Red-Green-Blue-Alpha channel) color.
It models the concept of color bar.
int moveReverse(const int &index, const double &pos)
It moves a color to new posisiton.
double move(const double &pi, const double &pm)
It moves a color to new posisiton.
ColorBar()
It initializes a new ColorBar(default constructor)
void generateSlices(const int &n)
It generates legend colors.
std::string m_name
Color bar name.
void remove(const int &index)
It removes a color in the color bar.
void removeReverse(const int &index)
It removes a color in the color bar.
void setBarSize(const int &size)
It sets number of colors in the color bar.
std::map< double, RGBAColor > m_colorMap
Color map.
int getBarSize()
It returns number of colors in the color bar.
const std::vector< te::color::RGBAColor > & getUpperMeanSlices(const int &n)
std::vector< RGBAColor > m_colorBarVec
Color vector.
const std::vector< te::color::RGBAColor > & getLowerMeanSlices(const int &n)
void remove(const RGBAColor &color)
It removes a color in the color bar.
ColorBar(const ColorBar &rhs)
Copy constructor.
const te::color::RGBAColor & getMeanSlice()
void setName(const std::string &name)
It sets the color bar name and adjust its entry in the scheme group if needed.
te::color::ColorBar & operator=(const ColorBar &rhs)
const std::map< double, te::color::RGBAColor > & getColorMap() const
It gets color map.
void remove(const double &pos)
It removes a color in the color bar.
int m_barSize
Size of color bar (number of colors in the color bar).
void generateColorBar()
It generates bar colors.
const std::vector< te::color::RGBAColor > & getSlices(const int &n)
It generates color bar.
std::vector< RGBAColor > m_colorSliceVec
Color step vector.
const std::string & getName() const
It returns the color bar name.
ColorBar(const RGBAColor &colorBegin, const RGBAColor &colorEnd, int size)
It initializes a new ColorBar.
ColorBar(int size)
It initializes a new ColorBar.
int move(const int &index, const double &pos)
It moves a color to new posisiton.
void move(const RGBAColor &color, const double &pos)
It moves a color to new posisiton.
void changeColor(const double &pos, const RGBAColor &color)
It moves a color to new posisiton.
const std::vector< te::color::RGBAColor > & getColorBar()
It generates color bar.
void addColor(const RGBAColor &color, const double &pos)
It adds a color in the color bar.
void changeColor(const int &index, const RGBAColor &color)
It moves a color to new posisiton.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
#define TECOLOREXPORT
You can use this macro in order to export/import classes and functions from this module.