Image Component Library (ICL)
GeomDefs.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLGeom/src/ICLGeom/GeomDefs.h **
10 ** Module : ICLGeom **
11 ** Authors: Christof Elbrechter **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
34 #include <ICLCore/Types.h>
35 #include <ICLMath/FixedMatrix.h>
36 #include <ICLMath/FixedVector.h>
38 #include <vector>
39 #include <ICLCore/Color.h>
40 #include <ICLUtils/Point32f.h>
41 
42 namespace icl{
43  namespace geom{
46 
48  inline GeomColor geom_white(float alpha=255) { return GeomColor(255,255,255,alpha); }
49 
51  inline GeomColor geom_red(float alpha=255) { return GeomColor(255,0,0,alpha); }
52 
54  inline GeomColor geom_blue(float alpha=255) { return GeomColor(0,100,255,alpha); }
55 
57  inline GeomColor geom_green(float alpha=255) { return GeomColor(0,255,0,alpha); }
58 
60  inline GeomColor geom_yellow(float alpha=255) { return GeomColor(255,255,0,alpha); }
61 
63  inline GeomColor geom_magenta(float alpha=255) { return GeomColor(255,0,255,alpha); }
64 
66  inline GeomColor geom_cyan(float alpha=255) { return GeomColor(0,255,255,alpha); }
67 
69  inline GeomColor geom_black(float alpha=255) { return GeomColor(0,0,0,alpha); }
70 
72  inline GeomColor geom_invisible() { return GeomColor(0,0,0,0); }
73 
76 
79 
82 
85 
87  typedef Vec4D32f Vec;
88 
90  typedef Mat4D32f Mat;
91 
93  typedef std::vector<Vec> VecArray;
94 
95  } // namespace geom
96 }
97 
98 
GeomColor geom_cyan(float alpha=255)
inline utililty function to create a cyan color instance
Definition: GeomDefs.h:66
GeomColor geom_black(float alpha=255)
inline utililty function to create a cyan color instance
Definition: GeomDefs.h:69
undocument this line if you encounter any issues!
Definition: Any.h:37
Mat4D32f Mat
Short typedef for 4D float matrices.
Definition: GeomDefs.h:90
GeomColor geom_white(float alpha=255)
inline utililty function to create a white color instance
Definition: GeomDefs.h:48
GeomColor geom_yellow(float alpha=255)
inline utililty function to create a yellow color instance
Definition: GeomDefs.h:60
math::FixedColVector< icl32f, 4 > Vec4D32f
Vector typedef of float vectors.
Definition: GeomDefs.h:81
math::FixedMatrix< icl32f, 4, 4 > Mat4D32f
Matrix Typedef of float matrices.
Definition: GeomDefs.h:75
GeomColor geom_green(float alpha=255)
inline utililty function to create a green color instance
Definition: GeomDefs.h:57
GeomColor geom_invisible()
inline utililty function to create an invisible color instance (alpha is 0.0f)
Definition: GeomDefs.h:72
GeomColor geom_magenta(float alpha=255)
inline utililty function to create a magenta color instance
Definition: GeomDefs.h:63
GeomColor geom_red(float alpha=255)
inline utililty function to create a red color instance
Definition: GeomDefs.h:51
Vec4D32f Vec
Short typedef for 4D float vectors.
Definition: GeomDefs.h:87
math::FixedColVector< icl64f, 4 > Vec4D64f
Vector typedef of double vectors.
Definition: GeomDefs.h:84
math::FixedMatrix< icl64f, 4, 4 > Mat4D64f
Matrix Typedef of double matrices.
Definition: GeomDefs.h:78
std::vector< Vec > VecArray
typedef for vector of Vec instances
Definition: GeomDefs.h:93
core::Color4D32f GeomColor
color for geometry primitives
Definition: GeomDefs.h:45
Definition: FixedVector.h:40
GeomColor geom_blue(float alpha=255)
inline utililty function to create a blue color instance
Definition: GeomDefs.h:54