Go to the documentation of this file.
7 #include <RobotAPI/interface/visualization/DebugDrawerInterface.h>
9 #include <SimoxUtility/color/Color.h>
16 struct DrawColor24Bit;
36 static DrawColor
at(std::size_t
id,
float alpha = 1.f);
37 static DrawColor24Bit
atByte(std::size_t
id);
45 static DrawColor
at(UIntT
id,
float alpha = 1.f)
47 return at(
static_cast<std::size_t
>(
id), alpha);
52 static DrawColor
at(IntT
id,
float alpha = 1.f)
54 return at(
static_cast<std::size_t
>(
id >= 0 ?
id :
std::abs(
id)), alpha);
64 static DrawColor24Bit
atByte(UIntT
id)
66 return atByte(
static_cast<std::size_t
>(
id));
70 static DrawColor24Bit
atByte(IntT
id)
72 return atByte(
static_cast<std::size_t
>(
id >= 0 ?
id :
std::abs(
id)));
77 static std::size_t
size();
80 static const std::vector<unsigned char>&
data();
static DrawColor24Bit atByte(std::size_t id)
static std::size_t size()
Get the number of colors in the lookup table.;.
DrawColor toDrawColor(Eigen::Vector4f c)
"Color lookup table consisting of 256 colors structured in a maximally discontinuous manner.
static DrawColor at(std::size_t id, float alpha=1.f)
static DrawColor at(UIntT id, float alpha=1.f)
Get a color from the lookup table with given ID (with float values).
uint32_t Color
RGBA color.
std::shared_ptr< Value > value()
std::vector< T > abs(const std::vector< T > &v)
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 DrawColor at(IntT id, float alpha=1.f)
DrawColor24Bit toDrawColor24Bit(simox::Color c)
static DrawColor24Bit atByte(IntT id)
This file offers overloads of toIce() and fromIce() functions for STL container types.