10 #ifndef TCOLORMANAGER_H
11 #define TCOLORMANAGER_H
20 namespace mrpt {
namespace utils {
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Manage R, G, B color triads and ask class instance of the next unique RGB combination.
mrpt::utils::TColor color_step_triad
bool use_standard_colors_first
Indicates if the standard colors are to be returned first.
std::set< mrpt::utils::TColor > used_colors
bool have_exceeded_colors
TColorManager(bool use_standard_colors_first=true)
Constructor.
void advanceRGBCounters()
mrpt::utils::TColorf getNextTColorf()
Get the next RGB triad in TColorf form.
void markColorAsUsed(mrpt::utils::TColor color)
Mark the given color as used.
void reset()
Reset all class properties to their default values.
mrpt::utils::TColor curr_color
mrpt::utils::TColor getNextTColor()
Get the next RGB triad in TColor form.
~TColorManager()
Destructor.
const uint8_t color_thresh
bool checkStdColorsUsed()
Check if the standard colors have already been used.
bool have_used_standard_colors
Indicates if the standard colors have already been used.
A RGB color - floats in the range [0,1].