include
lvr2
display
Color.hpp
Go to the documentation of this file.
1
28
/*
29
* Color.h
30
*
31
* Created on: 31.08.2010
32
* Author: Thomas Wiemann
33
*/
34
35
#ifndef COLOR_H_
36
#define COLOR_H_
37
38
namespace
lvr2
39
{
40
41
enum
Color
{
RED
,
GREEN
,
BLUE
,
YELLOW
,
PINK
,
ORANGE
,
LIGHTBLUE
,
LIGHTGREY
,
BLACK
,
WHITE
};
42
43
enum
ColorTable
{
BASIC
,
LIGHT
,
HIGHLIGHT
};
44
45
class
Colors
{
46
public
:
47
static
void
getColor
(
float
* c,
Color
name,
ColorTable
table =
BASIC
);
48
49
static
float
PrimeColorTable
[][3];
50
static
float
LightColorTable
[][3];
51
static
float
HighlightColorTable
[][3];
52
53
static
unsigned
long
getRGBIndex
(
unsigned
char
r,
unsigned
char
g,
unsigned
char
b)
54
{
55
return
((r & 0xff) << 16) + ((g & 0xff) << 8) + (b & 0xff);
56
}
57
};
58
59
}
// namespace lvr2
60
61
#endif
/* COLOR_H_ */
lvr2::LIGHTBLUE
@ LIGHTBLUE
Definition:
Color.hpp:41
lvr2::HIGHLIGHT
@ HIGHLIGHT
Definition:
Color.hpp:43
lvr2::Colors::LightColorTable
static float LightColorTable[][3]
Definition:
Color.hpp:50
lvr2::BLUE
@ BLUE
Definition:
Color.hpp:41
lvr2::BASIC
@ BASIC
Definition:
Color.hpp:43
lvr2::LIGHTGREY
@ LIGHTGREY
Definition:
Color.hpp:41
lvr2::Colors::PrimeColorTable
static float PrimeColorTable[][3]
Definition:
Color.hpp:49
lvr2::WHITE
@ WHITE
Definition:
Color.hpp:41
lvr2::Colors::HighlightColorTable
static float HighlightColorTable[][3]
Definition:
Color.hpp:51
lvr2::ORANGE
@ ORANGE
Definition:
Color.hpp:41
lvr2::Colors
Definition:
Color.hpp:45
lvr2::YELLOW
@ YELLOW
Definition:
Color.hpp:41
lvr2::BLACK
@ BLACK
Definition:
Color.hpp:41
lvr2::Colors::getColor
static void getColor(float *c, Color name, ColorTable table=BASIC)
Definition:
Color.cpp:72
lvr2::RED
@ RED
Definition:
Color.hpp:41
lvr2::ColorTable
ColorTable
Definition:
Color.hpp:43
lvr2::PINK
@ PINK
Definition:
Color.hpp:41
lvr2
Definition:
BaseBufferManipulators.hpp:39
lvr2::Color
Color
Definition:
Color.hpp:41
lvr2::Colors::getRGBIndex
static unsigned long getRGBIndex(unsigned char r, unsigned char g, unsigned char b)
Definition:
Color.hpp:53
lvr2::GREEN
@ GREEN
Definition:
Color.hpp:41
lvr2::LIGHT
@ LIGHT
Definition:
Color.hpp:43
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz
, Alexander Mock
, Lars Kiesow
, Lukas Kalbertodt
, Tristan Igelbrink
, Johan M. von Behren
, Dominik Feldschnieders
, Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:23