ViSP  2.8.0
vpColor.cpp
1 /****************************************************************************
2  *
3  * $Id: vpColor.cpp 4056 2013-01-05 13:04:42Z fspindle $
4  *
5  * This file is part of the ViSP software.
6  * Copyright (C) 2005 - 2013 by INRIA. All rights reserved.
7  *
8  * This software is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * ("GPL") version 2 as published by the Free Software Foundation.
11  * See the file LICENSE.txt at the root directory of this source
12  * distribution for additional information about the GNU GPL.
13  *
14  * For using ViSP with software that can not be combined with the GNU
15  * GPL, please contact INRIA about acquiring a ViSP Professional
16  * Edition License.
17  *
18  * See http://www.irisa.fr/lagadic/visp/visp.html for more information.
19  *
20  * This software was developed at:
21  * INRIA Rennes - Bretagne Atlantique
22  * Campus Universitaire de Beaulieu
23  * 35042 Rennes Cedex
24  * France
25  * http://www.irisa.fr/lagadic
26  *
27  * If you have questions regarding the use of this file, please contact
28  * INRIA at visp@inria.fr
29  *
30  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
31  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32  *
33  *
34  * Description:
35  * Color definition.
36  *
37  * Authors:
38  * Nicolas Melchior
39  * Fabien Spindler
40  *
41  *****************************************************************************/
42 
43 #include <visp/vpColor.h>
44 
46 vpColor const vpColor::black = vpColor(0, 0, 0, id_black);
48 vpColor const vpColor::white = vpColor(255, 255, 255, id_white);
50 vpColor const vpColor::lightGray = vpColor(192, 192, 192, id_lightGray);
52 vpColor const vpColor::gray = vpColor(128, 128, 128, id_gray);
54 vpColor const vpColor::darkGray = vpColor(64, 64, 64, id_darkGray);
57 vpColor const vpColor::lightRed = vpColor(255, 140, 140, id_lightRed);
60 vpColor const vpColor::red = vpColor(255, 0, 0, id_red);
63 vpColor const vpColor::darkRed = vpColor(128, 0, 0, id_darkRed);
66 vpColor const vpColor::lightGreen = vpColor(140, 255, 140, id_lightGreen);
69 vpColor const vpColor::green = vpColor(0, 255, 0, id_green);
72 vpColor const vpColor::darkGreen = vpColor(0, 128, 0, id_darkGreen);
75 vpColor const vpColor::lightBlue = vpColor(140, 140, 255, id_lightBlue);
78 vpColor const vpColor::blue = vpColor(0, 0, 255, id_blue);
81 vpColor const vpColor::darkBlue = vpColor(0, 0, 128, id_darkBlue);
84 vpColor const vpColor::yellow = vpColor(255, 255, 0, id_yellow);
87 vpColor const vpColor::cyan = vpColor(0, 255, 255, id_cyan);
90 vpColor const vpColor::orange = vpColor(255, 165, 0, id_orange);
93 vpColor const vpColor::purple = vpColor(128, 0, 128, id_purple);
94 
95 const unsigned int vpColor::nbColors = 18;
96 
97 
99 
102  vpColor::blue , // 12
103  vpColor::green , // 9
104  vpColor::red , // 6
105  vpColor::cyan , // 15
106  vpColor::purple , // 4
107  vpColor::yellow , // 14
108  vpColor::orange , // 16
109  vpColor::lightBlue ,// 11
111  vpColor::lightRed , // 5
112  vpColor::darkBlue , // 13
113  vpColor::darkGreen ,// 10
114  vpColor::darkRed , // 7
115  vpColor::lightGray ,// 2
116  vpColor::gray , // 3
117  vpColor::darkGray , // 4
118  vpColor::black , // 0
119  vpColor::white}; // 17
120 
122 vpColor const vpColor::none = vpColor(0, 0, 0, id_unknown);
123 
static const vpColor allColors[]
Definition: vpColor.h:182
static const vpColor black
Definition: vpColor.h:161
static const vpColor darkRed
Definition: vpColor.h:168
Class to define colors available for display functionnalities.
Definition: vpColor.h:125
static const vpColor none
Definition: vpColor.h:179
static const vpColor lightGray
Definition: vpColor.h:163
static const vpColor darkBlue
Definition: vpColor.h:174
static const vpColor green
Definition: vpColor.h:170
static const vpColor lightRed
Definition: vpColor.h:166
static const vpColor red
Definition: vpColor.h:167
static const vpColor orange
Definition: vpColor.h:177
static const vpColor cyan
Definition: vpColor.h:176
static const vpColor lightGreen
Definition: vpColor.h:169
static const vpColor gray
Definition: vpColor.h:164
static const vpColor darkGray
Definition: vpColor.h:165
static const vpColor darkGreen
Definition: vpColor.h:171
static const vpColor yellow
Definition: vpColor.h:175
static const vpColor lightBlue
Definition: vpColor.h:172
static const vpColor purple
Definition: vpColor.h:178
static const vpColor white
Definition: vpColor.h:162
static const unsigned int nbColors
Definition: vpColor.h:181
static const vpColor blue
Definition: vpColor.h:173