bpp-core3
3.0.0
|
Molscript color definitions. More...
#include <Bpp/Graphics/Molscript/MolscriptColorSet.h>
Public Member Functions | |
MolscriptColorSet () | |
virtual | ~MolscriptColorSet () |
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_ |
Molscript color definitions.
Definition at line 16 of file MolscriptColorSet.h.
MolscriptColorSet::MolscriptColorSet | ( | ) |
Definition at line 9 of file MolscriptColorSet.cpp.
References bpp::AbstractColorSet::colors_.
|
inlinevirtual |
Definition at line 21 of file MolscriptColorSet.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 bpp::DefaultColorSet::DefaultColorSet(), bpp::DvipsColorSet::DvipsColorSet(), MolscriptColorSet(), and bpp::RColorSet::RColorSet().