26 #ifndef __TERRALIB_COLOR_INTERNAL_COLORSCHEMEGROUP_H
27 #define __TERRALIB_COLOR_INTERNAL_COLORSCHEMEGROUP_H
42 class ColorSchemeCatalog;
A catalog for color schemes.
This class represents a group of color schemes.
ColorSchemeCatalog * m_parent
The parent catalog.
std::vector< ColorScheme * > m_colorSchemes
The group of color schemes.
std::string m_name
Color scheme name.
const std::string & getName() const
It returns the group name.
void setParent(ColorSchemeCatalog *parent)
It sets the parent color catalog for this group.
~ColorSchemeGroup()
Destructor.
ColorSchemeCatalog * getParent() const
It returns the parent catalog or NULL if it doesn't belong to a catalog.
void push_back(ColorScheme *colorScheme)
It adds a new color scheme to the group and sets its relationship.
ColorSchemeGroup(const ColorSchemeGroup &rhs)
Copy constructor not allowed.
const std::vector< ColorScheme * > & getColorSchemes() const
It returns a reference to the list of color schemes belonging to this group.
void disconnect(ColorScheme *colorScheme)
It just remove the reference to the informed color scheme.
ColorSchemeGroup & operator=(const ColorSchemeGroup &rhs)
Assignment operator not allowed.
std::string m_description
A brief description about the color scheme, that can helps someone to decide to use it or not (when i...
void setDescription(const std::string &d)
It sets the group description.
const std::string & getDescription() const
It returns the group description.
void setName(const std::string &name)
It sets the group name and adjust its entry in its the catalog if needed.
ColorSchemeGroup(const std::string &name)
It initializes a new ColorSchemeGroup and adds it to the parent catalog.
It models the concept of color scheme.
#define TECOLOREXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).