18 : use_standard_colors_first(use_standard_colors_first_in)
110 pair<set<TColor>::const_iterator,
bool> ret =
used_colors.insert(color);
void markColorAsUsed(mrpt::img::TColor color)
Mark the given color as used.
void advanceRGBCounters()
#define THROW_EXCEPTION(msg)
static constexpr TColor blue()
bool checkStdColorsUsed()
Check if the standard colors have already been used.
mrpt::img::TColor getNextTColor()
Get the next RGB triad in TColor form.
mrpt::img::TColor color_step_triad
bool use_standard_colors_first
Indicates if the standard colors are to be returned first.
mrpt::img::TColorf getNextTColorf()
Get the next RGB triad in TColorf form.
#define ASSERT_(f)
Defines an assertion mechanism.
~TColorManager()
Destructor.
const uint8_t color_thresh
void reset()
Reset all class properties to their default values.
static constexpr TColor green()
static constexpr TColor red()
Predefined colors.
An RGBA color - floats in the range [0,1].
mrpt::img::TColor curr_color
bool have_used_standard_colors
Indicates if the standard colors have already been used.
bool have_exceeded_colors
TColorManager(bool use_standard_colors_first=true)
Constructor.
std::set< mrpt::img::TColor > used_colors