bpp-core3
3.0.0
|
Color manager for the XFig format. More...
#include <Bpp/Graphics/ColorManager.h>
Public Member Functions | |
XFigColorManager () | |
virtual | ~XFigColorManager () |
unsigned int | getCode (const RGBColor &color) |
const RGBColor & | getColor (unsigned int &code) const |
const std::vector< unsigned int > & | getCodes () const |
const std::vector< RGBColor > & | getColors () const |
size_t | getNumberOfColors () const |
Protected Attributes | |
unsigned int | currentCode_ |
std::vector< RGBColor > | colors_ |
std::vector< unsigned int > | codes_ |
Color manager for the XFig format.
Default colors are coded from 0 to 31. New colors may be added from code 32.
Definition at line 103 of file ColorManager.h.
|
inline |
Definition at line 112 of file ColorManager.h.
References bpp::ColorTools::BLACK, bpp::ColorTools::BLUE, codes_, colors_, bpp::ColorTools::CYAN, bpp::ColorTools::GREEN, bpp::ColorTools::MAGENTA, bpp::ColorTools::RED, bpp::ColorTools::WHITE, and bpp::ColorTools::YELLOW.
|
inlinevirtual |
Definition at line 151 of file ColorManager.h.
|
inlinevirtual |
color | The color to look for. |
Implements bpp::ColorManager< unsigned int >.
Definition at line 154 of file ColorManager.h.
References codes_, colors_, and currentCode_.
|
inlinevirtual |
Implements bpp::ColorManager< unsigned int >.
Definition at line 179 of file ColorManager.h.
References codes_.
|
inlinevirtual |
code | The code to look for. |
exception | if the code is not valid. |
Implements bpp::ColorManager< unsigned int >.
Definition at line 168 of file ColorManager.h.
References codes_, colors_, and bpp::TextTools::toString().
|
inlinevirtual |
Implements bpp::ColorManager< unsigned int >.
Definition at line 180 of file ColorManager.h.
References colors_.
|
inlinevirtual |
Implements bpp::ColorManager< unsigned int >.
Definition at line 181 of file ColorManager.h.
References colors_.
|
protected |
Definition at line 109 of file ColorManager.h.
Referenced by getCode(), getCodes(), getColor(), and XFigColorManager().
|
protected |
Definition at line 108 of file ColorManager.h.
Referenced by getCode(), getColor(), getColors(), getNumberOfColors(), and XFigColorManager().
|
protected |
Definition at line 107 of file ColorManager.h.
Referenced by getCode().