Skip to content
Snippets Groups Projects
Commit 603ad5da authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Add getGlasybeyLUTColor()

parent 8b42fa8e
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@
#include "../Pose.h"
#include "GlasbeyLUT.h"
namespace armarx
{
......@@ -900,5 +902,15 @@ namespace armarx
return rgb;
}
DrawColor DebugDrawerTopic::getGlasbeyLUTColor(int id, float alpha)
{
return GlasbeyLUT::at(id, alpha);
}
DrawColor DebugDrawerTopic::getGlasbeyLUTColor(std::size_t id, float alpha)
{
return GlasbeyLUT::at(id, alpha);
}
}
......@@ -639,6 +639,11 @@ namespace armarx
static DrawColor toDrawColor(const ColorT& color, float alpha = 1, bool byteToFloat = false);
/// Get a color from the Glasbey look-up-table.
static DrawColor getGlasbeyLUTColor(int id, float alpha = 1.f);
static DrawColor getGlasbeyLUTColor(std::size_t id, float alpha = 1.f);
private:
/// Get the layer to draw on. (passedLayer if not empty, _layer otherwise).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment