This class represents a group of color schemes.
More...
#include <ColorSchemeGroup.h>
This class represents a group of color schemes.
It is used to group color schemes.
- See also
- ColorScheme, ColorSchemeCatalog, ColorSchemeCatalogManager
Definition at line 55 of file ColorSchemeGroup.h.
te::color::ColorSchemeGroup::ColorSchemeGroup |
( |
const std::string & |
name | ) |
|
It initializes a new ColorSchemeGroup and adds it to the parent catalog.
- Parameters
-
name | Color scheme group name. |
te::color::ColorSchemeGroup::~ColorSchemeGroup |
( |
| ) |
|
Copy constructor not allowed.
- Parameters
-
rhs | The right-hand-side copy that would be used to copy from. |
void te::color::ColorSchemeGroup::disconnect |
( |
ColorScheme * |
colorScheme | ) |
|
It just remove the reference to the informed color scheme.
- Parameters
-
colorScheme | The color scheme to be disconnected from this group. |
- Note
- The caller of this method will take the ownership of the color scheme.
const std::vector<ColorScheme*>& te::color::ColorSchemeGroup::getColorSchemes |
( |
| ) |
const |
It returns a reference to the list of color schemes belonging to this group.
- Returns
- A reference to the list of color schemes belonging to this group.
const std::string& te::color::ColorSchemeGroup::getDescription |
( |
| ) |
const |
It returns the group description.
- Returns
- The group description.
const std::string& te::color::ColorSchemeGroup::getName |
( |
| ) |
const |
It returns the group name.
- Returns
- The group name.
It returns the parent catalog or NULL if it doesn't belong to a catalog.
- Returns
- The parent catalog or NULL if it doesn't belong to a catalog.
Assignment operator not allowed.
- Parameters
-
rhs | The right-hand-side copy that would be used to copy from. |
- Returns
- A reference to this object.
void te::color::ColorSchemeGroup::push_back |
( |
ColorScheme * |
colorScheme | ) |
|
It adds a new color scheme to the group and sets its relationship.
- Parameters
-
colorScheme | The color scheme that will take part of the group. |
- Note
- The color group will take the ownership of the color scheme.
-
Don't inform a NULL pointer.
void te::color::ColorSchemeGroup::setDescription |
( |
const std::string & |
d | ) |
|
It sets the group description.
- Parameters
-
void te::color::ColorSchemeGroup::setName |
( |
const std::string & |
name | ) |
|
It sets the group name and adjust its entry in its the catalog if needed.
- Parameters
-
It sets the parent color catalog for this group.
- Parameters
-
parent | The parent catalog. |
- Note
- This method is intended to be used by a ColorSchemeCatalog object.
std::vector<ColorScheme*> te::color::ColorSchemeGroup::m_colorSchemes |
|
private |
std::string te::color::ColorSchemeGroup::m_description |
|
private |
A brief description about the color scheme, that can helps someone to decide to use it or not (when its use can be best applied).
Definition at line 190 of file ColorSchemeGroup.h.
std::string te::color::ColorSchemeGroup::m_name |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/color/ColorSchemeGroup.h