Specify a set of color definitions.
More...
#include <Bpp/Graphics/ColorSet.h>
Specify a set of color definitions.
Definition at line 20 of file ColorSet.h.
◆ ColorSet()
bpp::ColorSet::ColorSet |
( |
| ) |
|
|
inline |
◆ ~ColorSet()
virtual bpp::ColorSet::~ColorSet |
( |
| ) |
|
|
inlinevirtual |
◆ getColor() [1/2]
virtual const RGBColor& bpp::ColorSet::getColor |
( |
const std::string & |
name | ) |
const |
|
pure virtual |
Get the color object corresponding to a given name.
- Parameters
-
name | The name of the color to look for. |
- Returns
- The color associated to the given name.
- Exceptions
-
Exception | if the name is not assigned to any color. |
Implemented in bpp::AbstractColorSet.
Referenced by ~ColorSet().
◆ getColor() [2/2]
virtual const RGBColor& bpp::ColorSet::getColor |
( |
unsigned int |
index | ) |
const |
|
pure virtual |
Get the ith color object in the set.
- Parameters
-
index | The index of the color to look for. |
- Returns
- The color associated to the given index.
- Exceptions
-
Implemented in bpp::AbstractColorSet.
◆ getColorNames()
virtual std::vector<std::string> bpp::ColorSet::getColorNames |
( |
| ) |
const |
|
pure virtual |
◆ getNumberOfColors()
virtual size_t bpp::ColorSet::getNumberOfColors |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: