GlasbeyLUT Class Reference

"Color lookup table consisting of 256 colors structured in a maximally discontinuous manner. More...

#include <RobotAPI/libraries/core/visualization/GlasbeyLUT.h>

Static Public Member Functions

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...
 

Detailed Description

"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 32 of file GlasbeyLUT.h.

Member Function Documentation

◆ at() [1/3]

static DrawColor at ( IntT  id,
float  alpha = 1.f 
)
inlinestatic

Definition at line 52 of file GlasbeyLUT.h.

+ Here is the call graph for this function:

◆ at() [2/3]

DrawColor at ( std::size_t  id,
float  alpha = 1.f 
)
static

Definition at line 25 of file GlasbeyLUT.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 45 of file GlasbeyLUT.h.

+ Here is the call graph for this function:

◆ atByte() [1/3]

static DrawColor24Bit atByte ( IntT  id)
inlinestatic

Definition at line 70 of file GlasbeyLUT.h.

+ Here is the call graph for this function:

◆ atByte() [2/3]

DrawColor24Bit atByte ( std::size_t  id)
static

Definition at line 30 of file GlasbeyLUT.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 64 of file GlasbeyLUT.h.

+ Here is the call graph for this function:

◆ data()

const std::vector< unsigned char > & data ( )
static

Get the raw lookup table (flat).

Definition at line 41 of file GlasbeyLUT.cpp.

◆ size()

std::size_t size ( )
static

Get the number of colors in the lookup table.;.

Definition at line 36 of file GlasbeyLUT.cpp.


The documentation for this class was generated from the following files: