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).
 
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).
 
static const std::vector< unsigned char > & data ()
 Get the raw lookup table (flat).
 
static std::size_t size ()
 Get the number of colors in the lookup table.;.
 

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] <a href="https://github.com/PointCloudLibrary/pcl/blob/master/common/include/pcl/common/colors.h" >1

Member Function Documentation

◆ at() [1/3]

template<typename IntT, std::enable_if_t< std::is_signed< IntT >::value, int > = 0>
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]

template<typename UIntT, std::enable_if_t< std::is_unsigned< UIntT >::value, int > = 0>
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.

◆ atByte() [1/3]

template<typename IntT, std::enable_if_t< std::is_signed< IntT >::value, int > = 0>
static DrawColor24Bit atByte ( IntT id)
inlinestatic

◆ atByte() [2/3]

DrawColor24Bit atByte ( std::size_t id)
static

◆ atByte() [3/3]

template<typename UIntT, std::enable_if_t< std::is_unsigned< UIntT >::value, int > = 0>
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.

◆ data()

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

Get the raw lookup table (flat).

◆ size()

std::size_t size ( )
static

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


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