|
bpp-core3
3.0.0
|
Color manager for the XFig format. More...
#include <Bpp/Graphics/ColorManager.h>
Inheritance diagram for bpp::XFigColorManager:
Collaboration diagram for bpp::XFigColorManager: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 67 of file ColorManager.h.
|
inline |
Definition at line 76 of file ColorManager.h.
References bpp::ColorTools::BLACK, bpp::ColorTools::BLUE, bpp::ColorTools::CYAN, bpp::ColorTools::GREEN, bpp::ColorTools::MAGENTA, bpp::ColorTools::RED, bpp::ColorTools::WHITE, and bpp::ColorTools::YELLOW.
|
inlinevirtual |
Definition at line 115 of file ColorManager.h.
|
inlinevirtual |
| color | The color to look for. |
Implements bpp::ColorManager< unsigned int >.
Definition at line 118 of file ColorManager.h.
|
inlinevirtual |
Implements bpp::ColorManager< unsigned int >.
Definition at line 143 of file ColorManager.h.
|
inlinevirtual |
| code | The code to look for. |
| exception | if the code is not valid. |
Implements bpp::ColorManager< unsigned int >.
Definition at line 132 of file ColorManager.h.
References bpp::TextTools::toString().
|
inlinevirtual |
Implements bpp::ColorManager< unsigned int >.
Definition at line 144 of file ColorManager.h.
|
inlinevirtual |
Implements bpp::ColorManager< unsigned int >.
Definition at line 145 of file ColorManager.h.
|
protected |
Definition at line 73 of file ColorManager.h.
|
protected |
Definition at line 72 of file ColorManager.h.
|
protected |
Definition at line 71 of file ColorManager.h.