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 
42 
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_ */
ColorTable
Definition: Color.hpp:43
static void getColor(float *c, Color name, ColorTable table=BASIC)
Definition: Color.cpp:72
static float HighlightColorTable[][3]
Definition: Color.hpp:51
static float PrimeColorTable[][3]
Definition: Color.hpp:49
static float LightColorTable[][3]
Definition: Color.hpp:50
Color
Definition: Color.hpp:41
static unsigned long getRGBIndex(unsigned char r, unsigned char g, unsigned char b)
Definition: Color.hpp:53


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 Mon Feb 28 2022 22:46:06