bpp-core3
3.0.0
|
R color definitions. More...
#include <Bpp/Graphics/R/RColorSet.h>
Public Member Functions | |
RColorSet () | |
virtual | ~RColorSet () |
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_ |
R color definitions.
Definition at line 16 of file RColorSet.h.
RColorSet::RColorSet | ( | ) |
The following R code has been used to generate this code:
Definition at line 9 of file RColorSet.cpp.
References bpp::AbstractColorSet::colors_.
|
inlinevirtual |
Definition at line 36 of file RColorSet.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(), bpp::MolscriptColorSet::MolscriptColorSet(), and RColorSet().