A catalog for color schemes. More...
#include <ColorSchemeCatalog.h>
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
ColorSchemeCatalog (const std::string &name) | |
It initializes a new ColorSchemeCatalog. More... | |
~ColorSchemeCatalog () | |
Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
const std::string & | getName () const |
It returns the catalog name. More... | |
void | setName (const std::string &newName) |
It changes the catalog name and adjusts its entry in the catalog manager if needed. More... | |
const std::string & | getDescription () const |
It returns the catalog description. More... | |
void | setDescription (const std::string &d) |
It sets the catalog description. More... | |
const std::string & | getAuthor () const |
It returns the catalog author name. More... | |
void | setAuthor (const std::string &author) |
It sets the catalog author name. More... | |
const std::string & | getCopyright () const |
It returns the catalog copyright notice. More... | |
void | setCopyright (const std::string &c) |
It sets the catalog copyright notice. More... | |
const std::string & | getOnlineResource () const |
It returns a link for more information about the catalog. More... | |
void | setOnlineResource (const std::string &r) |
It sets the link for more information about the catalog. More... | |
void | push_back (ColorSchemeGroup *group) |
It adds a new group to the catalog and sets its relationship. More... | |
void | disconnect (ColorSchemeGroup *group) |
It removes the internal reference to the group. More... | |
const std::vector< ColorSchemeGroup * > & | getColorSchemeGroups () const |
It returns the list of color scheme groups in the catalog. More... | |
Private Member Functions | |
Copy Constructor and Assignment Operator | |
Copy constructor and assignment operator not allowed. | |
ColorSchemeCatalog (const ColorSchemeCatalog &rhs) | |
Copy constructor not allowed. More... | |
ColorSchemeCatalog & | operator= (const ColorSchemeCatalog &rhs) |
Assignment operator not allowed. More... | |
Private Attributes | |
std::string | m_author |
Information about catalog author. More... | |
std::vector< ColorSchemeGroup * > | m_colorSchemeGroups |
The color scheme groups. More... | |
std::string | m_copyright |
Copyright notice. More... | |
std::string | m_description |
A brief description about the catalog. More... | |
std::string | m_name |
Catalog name. More... | |
std::string | m_onlineResource |
A link location for more information on the catalog. More... | |
A catalog for color schemes.
A color scheme catalog contains several color scheme groups that can be choosed by the user in order to color a given map.
Definition at line 58 of file ColorSchemeCatalog.h.
te::color::ColorSchemeCatalog::ColorSchemeCatalog | ( | const std::string & | name | ) |
It initializes a new ColorSchemeCatalog.
name | The catalog name. |
Definition at line 37 of file ColorSchemeCatalog.cpp.
te::color::ColorSchemeCatalog::~ColorSchemeCatalog | ( | ) |
Destructor.
Definition at line 42 of file ColorSchemeCatalog.cpp.
References te::common::FreeContents().
|
private |
Copy constructor not allowed.
rhs | The right-hand-side copy that would be used to copy from. |
void te::color::ColorSchemeCatalog::disconnect | ( | ColorSchemeGroup * | group | ) |
It removes the internal reference to the group.
group | The group to remove the internal reference. |
Definition at line 114 of file ColorSchemeCatalog.cpp.
const std::string & te::color::ColorSchemeCatalog::getAuthor | ( | ) | const |
It returns the catalog author name.
Definition at line 76 of file ColorSchemeCatalog.cpp.
const std::vector< te::color::ColorSchemeGroup * > & te::color::ColorSchemeCatalog::getColorSchemeGroups | ( | ) | const |
It returns the list of color scheme groups in the catalog.
Definition at line 122 of file ColorSchemeCatalog.cpp.
Referenced by te::sa::GetColorBar(), te::qt::widgets::ColorCatalogWidget::onCatalogComboBoxActivated(), te::qt::widgets::ColorCatalogWidget::onGroupComboBoxActivated(), and te::qt::widgets::ColorCatalogWidget::onSchemaComboBoxActivated().
const std::string & te::color::ColorSchemeCatalog::getCopyright | ( | ) | const |
It returns the catalog copyright notice.
Definition at line 86 of file ColorSchemeCatalog.cpp.
const std::string & te::color::ColorSchemeCatalog::getDescription | ( | ) | const |
It returns the catalog description.
Definition at line 66 of file ColorSchemeCatalog.cpp.
const std::string & te::color::ColorSchemeCatalog::getName | ( | ) | const |
It returns the catalog name.
Definition at line 47 of file ColorSchemeCatalog.cpp.
Referenced by te::color::ColorSchemeCatalogManager::disconnect(), te::color::ColorSchemeCatalogManager::insert(), and te::qt::widgets::ColorCatalogWidget::loadDefaultColorCatalog().
const std::string & te::color::ColorSchemeCatalog::getOnlineResource | ( | ) | const |
It returns a link for more information about the catalog.
Definition at line 96 of file ColorSchemeCatalog.cpp.
|
private |
Assignment operator not allowed.
rhs | The right-hand-side copy that would be used to copy from. |
void te::color::ColorSchemeCatalog::push_back | ( | ColorSchemeGroup * | group | ) |
It adds a new group to the catalog and sets its relationship.
group | The group that will take part of the catalog. |
Definition at line 106 of file ColorSchemeCatalog.cpp.
References te::color::ColorSchemeGroup::setParent().
Referenced by te::color::ColorSchemeCatalogManager::init().
void te::color::ColorSchemeCatalog::setAuthor | ( | const std::string & | author | ) |
It sets the catalog author name.
author | The catalog author name. |
Definition at line 81 of file ColorSchemeCatalog.cpp.
void te::color::ColorSchemeCatalog::setCopyright | ( | const std::string & | c | ) |
It sets the catalog copyright notice.
c | The catalog copyright notice. |
Definition at line 91 of file ColorSchemeCatalog.cpp.
void te::color::ColorSchemeCatalog::setDescription | ( | const std::string & | d | ) |
It sets the catalog description.
d | The catalog description. |
Definition at line 71 of file ColorSchemeCatalog.cpp.
void te::color::ColorSchemeCatalog::setName | ( | const std::string & | newName | ) |
It changes the catalog name and adjusts its entry in the catalog manager if needed.
newName | The new catalog name (must be a non-empty value). |
Definition at line 52 of file ColorSchemeCatalog.cpp.
References te::common::Singleton< T >::getInstance().
void te::color::ColorSchemeCatalog::setOnlineResource | ( | const std::string & | r | ) |
It sets the link for more information about the catalog.
r | The link for more information about the catalog. |
Definition at line 101 of file ColorSchemeCatalog.cpp.
|
private |
Information about catalog author.
Definition at line 212 of file ColorSchemeCatalog.h.
|
private |
The color scheme groups.
Definition at line 215 of file ColorSchemeCatalog.h.
|
private |
Copyright notice.
Definition at line 213 of file ColorSchemeCatalog.h.
|
private |
A brief description about the catalog.
Definition at line 211 of file ColorSchemeCatalog.h.
|
private |
Catalog name.
Definition at line 210 of file ColorSchemeCatalog.h.
|
private |
A link location for more information on the catalog.
Definition at line 214 of file ColorSchemeCatalog.h.