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