27 #include "../common/STLUtils.h"
49 assert(name.empty() ==
false);
57 m_parent->disconnect(
this);
59 m_parent->push_back(
this);
65 m_colorSet.push_back(colors);
75 const size_t n = m_colorSet.size();
77 for(
size_t i = 0; i < n; ++i)
78 if(m_colorSet[i]->size() == size)
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 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.
~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...