26 #ifndef __TERRALIB_COLOR_INTERNAL_COLORSCHEME_H
27 #define __TERRALIB_COLOR_INTERNAL_COLORSCHEME_H
41 class ColorSchemeGroup;
114 const std::vector<std::vector<RGBAColor>* >&
getColors()
const;
A helper class for 24-bit RGBA (Red-Green-Blue-Alpha channel) color.
This class represents a group of color schemes.
It models the concept of color scheme.
ColorSchemeGroup * m_parent
A pointer to the parent group.
ColorScheme(const ColorScheme &rhs)
Copy constructor not allowed.
const std::string & getName() const
It returns the color schema name.
const std::vector< std::vector< RGBAColor > * > & getColors() const
It returns all color lists.
ColorSchemeGroup * getParent() const
It returns the parent scheme group or NULL if it doesn't belong to a group.
void push_back(std::vector< RGBAColor > *colors)
It adds a new list of colors to the color scheme.
~ColorScheme()
Destructor.
std::string m_name
Color scheme name.
void setName(const std::string &name)
It sets the color schema name and adjust its entry in the scheme group if needed.
std::vector< RGBAColor > * getColors(size_t size) const
It returns a color list having the specified number of elements or NULL if none is found.
ColorScheme(const std::string &name)
It initializes a new ColorScheme and adds it to the parent group of schemes.
ColorScheme & operator=(const ColorScheme &rhs)
Assignment operator not allowed.
std::vector< std::vector< RGBAColor > * > m_colorSet
A set of color list.
void setParent(ColorSchemeGroup *parent)
It sets the parent color scheme group for this scheme.
#define TECOLOREXPORT
You can use this macro in order to export/import classes and functions from this module.