27 #include "../common/STLUtils.h" 49 assert(name.empty() ==
false);
77 for(
size_t i = 0; i < n; ++i)
ColorSchemeGroup * m_parent
A pointer to the parent group.
void disconnect(ColorScheme *colorScheme)
It just remove the reference to the informed color scheme.
ColorScheme(const std::string &name)
It initializes a new ColorScheme and adds it to the parent group of schemes.
This class represents a group of color schemes.
const std::vector< std::vector< RGBAColor > * > & getColors() const
It returns all color lists.
void setParent(ColorSchemeGroup *parent)
It sets the parent color scheme group for this scheme.
void push_back(ColorScheme *colorScheme)
It adds a new color scheme to the group and sets its relationship.
void setName(const std::string &name)
It sets the color schema name and adjust its entry in the scheme group if needed. ...
const std::string & getName() const
It returns the color schema name.
The concept of color scheme.
void push_back(std::vector< RGBAColor > *colors)
It adds a new list of colors to the color scheme.
ColorSchemeGroup * getParent() const
It returns the parent scheme group or NULL if it doesn't belong to a group.
This class represents a group of color schemes.
std::string m_name
Color scheme name.
~ColorScheme()
Destructor.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
std::vector< std::vector< RGBAColor > * > m_colorSet
A set of color list.