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