37#ifndef _vpColorBlindFliendlyPalette_h_
38#define _vpColorBlindFliendlyPalette_h_
40#include<visp3/core/vpConfig.h>
41#include<visp3/core/vpColor.h>
43#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
67 static std::vector<std::string> s_paletteNames;
97 Palette get_colorID()
const;
114 std::vector<unsigned char> to_RGB()
const;
125 std::vector<double> to_colorRatio()
const;
134 bool set_fromString(
const std::string &nameColor);
141 std::string to_string()
const;
158 static std::string getAvailableColorsNames(
const std::string &prefix =
"",
const std::string &separator =
" ",
const std::string &suffix =
"");
160 static std::vector<vpColor> s_palette;
169 static unsigned int to_uint(
const Palette &colorID);
178 static std::string to_string(
const Palette &colorID);
Class that furnishes a set of colors that color blind people should be able to distinguish one from a...
Palette
Enum that list the different available colors.
unsigned int to_uint() const
Cast the object into an unsigned int that matches the value of its _colorID member.
Class to define RGB colors available for display functionalities.