bpp-core3
3.0.0
|
Default color definitions. More...
#include <Bpp/Graphics/DefaultColorSet.h>
Public Member Functions | |
DefaultColorSet () | |
virtual | ~DefaultColorSet () |
const RGBColor & | getColor (const std::string &name) const |
Get the color object corresponding to a given name. More... | |
const RGBColor & | getColor (unsigned int index) const |
Get the ith color object in the set. More... | |
std::vector< std::string > | getColorNames () const |
size_t | getNumberOfColors () const |
Protected Attributes | |
std::map< std::string, RGBColor > | colors_ |
Default color definitions.
Definition at line 17 of file DefaultColorSet.h.
|
inline |
Definition at line 21 of file DefaultColorSet.h.
References bpp::ColorTools::BLACK, bpp::ColorTools::BLUE, bpp::AbstractColorSet::colors_, bpp::ColorTools::CYAN, bpp::ColorTools::GREEN, bpp::ColorTools::MAGENTA, bpp::ColorTools::RED, bpp::ColorTools::WHITE, and bpp::ColorTools::YELLOW.
|
inlinevirtual |
Definition at line 32 of file DefaultColorSet.h.
|
inlinevirtualinherited |
Get the color object corresponding to a given name.
name | The name of the color to look for. |
Exception | if the name is not assigned to any color. |
Implements bpp::ColorSet.
Definition at line 73 of file ColorSet.h.
|
inlinevirtualinherited |
Get the ith color object in the set.
index | The index of the color to look for. |
IndexOutOfBoundsException | if the index is not assigned to any color. |
Implements bpp::ColorSet.
Definition at line 80 of file ColorSet.h.
|
inlinevirtualinherited |
Implements bpp::ColorSet.
Definition at line 88 of file ColorSet.h.
References bpp::MapTools::getKeys().
|
inlinevirtualinherited |
Implements bpp::ColorSet.
Definition at line 90 of file ColorSet.h.
|
protectedinherited |
Definition at line 66 of file ColorSet.h.
Referenced by DefaultColorSet(), bpp::DvipsColorSet::DvipsColorSet(), bpp::MolscriptColorSet::MolscriptColorSet(), and bpp::RColorSet::RColorSet().