#include <ColorCodeConverter.h>
|
| static const unsigned int | white = 0 |
| static const unsigned int | black = 1 |
| static const unsigned int | red = 2 |
| static const unsigned int | green = 3 |
| static const unsigned int | blue = 4 |
| static const unsigned int | yellow = 5 |
| static const unsigned int | magenta = 6 |
| static const unsigned int | cyan = 7 |
|
| SoMaterial * | lookup (unsigned int colorCode) |
Definition at line 23 of file ColorCodeConverter.h.
◆ ~ColorCodeConverter()
| ColorCodeConverter::~ColorCodeConverter |
( |
| ) |
|
Definition at line 252 of file ColorCodeConverter.cxx.
253{
254 std::map<unsigned int, SoMaterial*>::const_iterator
it;
256 {
258 }
259}
std::map< unsigned int, SoMaterial * > m_materialCache
◆ getMaterialFromColorCode()
| SoMaterial * ColorCodeConverter::getMaterialFromColorCode |
( |
unsigned int | colorCode = red | ) |
|
|
inline |
◆ lookup()
| SoMaterial * ColorCodeConverter::lookup |
( |
unsigned int | colorCode | ) |
|
|
private |
Definition at line 262 of file ColorCodeConverter.cxx.
263{
264 SoMaterial* ret = nullptr;
265
266
268 {
269
271 }
272
273 std::map<unsigned int, SoMaterial*>::const_iterator
it =
m_materialCache.find( colorCode);
275 {
277 }
278 else
279 {
280 ret = new SoMaterial;
284 ret->ref();
286 }
287
288 return ret;
289}
static const double s_colorConversionTable[][3]
static const unsigned int red
static const unsigned int s_colorConversionTableSize
◆ black
| const unsigned int ColorCodeConverter::black = 1 |
|
static |
◆ blue
| const unsigned int ColorCodeConverter::blue = 4 |
|
static |
◆ cyan
| const unsigned int ColorCodeConverter::cyan = 7 |
|
static |
◆ green
| const unsigned int ColorCodeConverter::green = 3 |
|
static |
◆ m_materialCache
| std::map<unsigned int,SoMaterial*> ColorCodeConverter::m_materialCache |
|
private |
◆ magenta
| const unsigned int ColorCodeConverter::magenta = 6 |
|
static |
◆ red
| const unsigned int ColorCodeConverter::red = 2 |
|
static |
◆ s_colorConversionTable
| const double ColorCodeConverter::s_colorConversionTable |
|
staticprivate |
◆ s_colorConversionTableSize
| const unsigned int ColorCodeConverter::s_colorConversionTableSize = 200 |
|
staticprivate |
◆ white
| const unsigned int ColorCodeConverter::white = 0 |
|
static |
◆ yellow
| const unsigned int ColorCodeConverter::yellow = 5 |
|
static |
The documentation for this class was generated from the following files: