44 #include <visp3/core/vpConfig.h>
45 #include <visp3/core/vpRGBa.h>
188 :
vpRGBa(), id(id_unknown)
200 inline vpColor(
unsigned char r,
unsigned char g,
unsigned char b,
202 :
vpRGBa(r, g, b), id(cid)
220 inline void setColor(
unsigned char r,
unsigned char g,
unsigned char b) {
241 #if defined(VISP_USE_MSVC) && defined(visp_EXPORTS)
245 vpColor const __declspec(selectany) vpColor::white = vpColor(255, 255, 255, id_white);
247 vpColor const __declspec(selectany) vpColor::lightGray = vpColor(192, 192, 192, id_lightGray);
249 vpColor const __declspec(selectany) vpColor::gray = vpColor(128, 128, 128, id_gray);
251 vpColor const __declspec(selectany) vpColor::darkGray = vpColor(64, 64, 64, id_darkGray);
254 vpColor const __declspec(selectany) vpColor::lightRed = vpColor(255, 140, 140, id_lightRed);
257 vpColor const __declspec(selectany) vpColor::red = vpColor(255, 0, 0, id_red);
260 vpColor const __declspec(selectany) vpColor::darkRed = vpColor(128, 0, 0, id_darkRed);
263 vpColor const __declspec(selectany) vpColor::lightGreen = vpColor(140, 255, 140, id_lightGreen);
266 vpColor const __declspec(selectany) vpColor::green = vpColor(0, 255, 0, id_green);
269 vpColor const __declspec(selectany) vpColor::darkGreen = vpColor(0, 128, 0, id_darkGreen);
272 vpColor const __declspec(selectany) vpColor::lightBlue = vpColor(140, 140, 255, id_lightBlue);
275 vpColor const __declspec(selectany) vpColor::blue = vpColor(0, 0, 255, id_blue);
278 vpColor const __declspec(selectany) vpColor::darkBlue = vpColor(0, 0, 128, id_darkBlue);
281 vpColor const __declspec(selectany) vpColor::yellow = vpColor(255, 255, 0, id_yellow);
284 vpColor const __declspec(selectany) vpColor::cyan = vpColor(0, 255, 255, id_cyan);
287 vpColor const __declspec(selectany) vpColor::orange = vpColor(255, 165, 0, id_orange);
290 vpColor const __declspec(selectany) vpColor::purple = vpColor(128, 0, 128, id_purple);
292 vpColor const __declspec(selectany) vpColor::none = vpColor(0, 0, 0, id_unknown);
294 const __declspec(selectany)
unsigned int vpColor::nbColors = 18;
297 vpColor const __declspec(selectany) vpColor::allColors[vpColor::nbColors] = {
void setColor(unsigned char r, unsigned char g, unsigned char b)
static const vpColor allColors[]
static const vpColor black
static const vpColor darkRed
Class to define colors available for display functionnalities.
static const vpColor none
static const vpColor lightGray
static const vpColor darkBlue
static const vpColor green
static const vpColor lightRed
Class that defines a RGB 32 bits structure.
static const vpColor orange
bool operator==(const vpRGBa &v)
static const vpColor cyan
static const vpColor lightGreen
static const vpColor gray
static const vpColor darkGray
static const vpColor darkGreen
static vpColor getColor(const unsigned int &i)
static const vpColor yellow
static const vpColor lightBlue
static const vpColor purple
static const vpColor white
bool operator!=(const vpRGBa &v)
static const unsigned int nbColors
static const vpColor blue
vpColor(unsigned char r, unsigned char g, unsigned char b, vpColor::vpColorIdentifier cid=vpColor::id_unknown)