struct mrpt::img::TColorManager¶
Manage R, G, B color triads and ask class instance of the next unique RGB combination.
#include <mrpt/img/TColorManager.h> struct TColorManager { // fields mrpt::img::TColor curr_color; std::set<mrpt::img::TColor> used_colors; bool use_standard_colors_first; bool have_used_standard_colors = false; uint8_t color_step; const uint8_t color_thresh {255}; bool have_exceeded_colors; // construction TColorManager(bool use_standard_colors_first = true); // methods mrpt::img::TColorf getNextTColorf(); mrpt::img::TColor getNextTColor(); bool checkStdColorsUsed(); };
Fields¶
bool use_standard_colors_first
Indicates if the standard colors are to be returned first.
bool have_used_standard_colors = false
Indicates if the standard colors have already been used.
This is a cached version of the value returned from the checkStdColorsUsed method.
Standard colors are: red, green, blue
See also:
Methods¶
mrpt::img::TColorf getNextTColorf()
Get the next RGB triad in TColorf form.
Method automatically advances the current counters for RGB.
mrpt::img::TColor getNextTColor()
Get the next RGB triad in TColor form.
Method automatically advances the current counters for RGB.
bool checkStdColorsUsed()
Check if the standard colors have already been used.
True if they have indeed been used.