"Color lookup table consisting of 256 colors structured in a maximally discontinuous manner.
More...
#include <RobotAPI/libraries/core/visualization/GlasbeyLUT.h>
|
| template<typename IntT , std::enable_if_t< std::is_signed< IntT >::value, int > = 0> |
| static DrawColor | at (IntT id, float alpha=1.f) |
| |
| static DrawColor | at (std::size_t id, float alpha=1.f) |
| |
| template<typename UIntT , std::enable_if_t< std::is_unsigned< UIntT >::value, int > = 0> |
| static DrawColor | at (UIntT id, float alpha=1.f) |
| | Get a color from the lookup table with given ID (with float values). More...
|
| |
| template<typename IntT , std::enable_if_t< std::is_signed< IntT >::value, int > = 0> |
| static DrawColor24Bit | atByte (IntT id) |
| |
| static DrawColor24Bit | atByte (std::size_t id) |
| |
| template<typename UIntT , std::enable_if_t< std::is_unsigned< UIntT >::value, int > = 0> |
| static DrawColor24Bit | atByte (UIntT id) |
| | Get a color from the lookup table with given ID (with integer values). More...
|
| |
| static const std::vector< unsigned char > & | data () |
| | Get the raw lookup table (flat). More...
|
| |
| static std::size_t | size () |
| | Get the number of colors in the lookup table.;. More...
|
| |
"Color lookup table consisting of 256 colors structured in a maximally discontinuous manner.
Generated using the method of Glasbey et al. (see https://github.com/taketwo/glasbey)" [1]
1
Definition at line 30 of file GlasbeyLUT.h.
◆ at() [1/3]
| static DrawColor at |
( |
IntT |
id, |
|
|
float |
alpha = 1.f |
|
) |
| |
|
inlinestatic |
◆ at() [2/3]
| DrawColor at |
( |
std::size_t |
id, |
|
|
float |
alpha = 1.f |
|
) |
| |
|
static |
◆ at() [3/3]
| static DrawColor at |
( |
UIntT |
id, |
|
|
float |
alpha = 1.f |
|
) |
| |
|
inlinestatic |
Get a color from the lookup table with given ID (with float values).
The ID is automaticall wrapped if greater than size(). If id is negative, its absolute value is used.
Definition at line 43 of file GlasbeyLUT.h.
◆ atByte() [1/3]
| static DrawColor24Bit atByte |
( |
IntT |
id | ) |
|
|
inlinestatic |
◆ atByte() [2/3]
| DrawColor24Bit atByte |
( |
std::size_t |
id | ) |
|
|
static |
◆ atByte() [3/3]
| static DrawColor24Bit atByte |
( |
UIntT |
id | ) |
|
|
inlinestatic |
Get a color from the lookup table with given ID (with integer values).
The ID is automaticall wrapped if greater than size(). If id is negative, its absolute value is used.
Definition at line 63 of file GlasbeyLUT.h.
◆ data()
| const std::vector< unsigned char > & data |
( |
| ) |
|
|
static |
◆ size()
Get the number of colors in the lookup table.;.
Definition at line 39 of file GlasbeyLUT.cpp.
The documentation for this class was generated from the following files: