Computational Embodied Neuroscience Simulator  1.1
3D simulation library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
cens_types.h
Go to the documentation of this file.
1 // Computational Embodied Neuroscience Simulator (CENS) Library
2 // Copyright (c) 2010 Francesco Mannella
3 //
4 // cens_types.h
5 // Copyright (c) 2010 Francesco Mannella
6 //
7 // This file is part of CENS library.
8 //
9 // CENS library is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // CENS library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with CENS library. If not, see <http://www.gnu.org/licenses/>.
21 
22 #ifndef CENS_TYPES_H
23 #define CENS_TYPES_H
24 
25 #include <vector>
26 
27 // linear algebra
28 #include <Eigen/Core>
29 #include <Eigen/Geometry>
30 
31 
32 using namespace Eigen;
33 
34 // OpenGL
35 #include <GL/glut.h>
36 #include <GL/freeglut.h>
37 
38 #include "cens_pixelmap.h"
39 
40 
41 namespace cens {
42 
43  typedef std::vector<Vector3f> Vertices;
44  typedef std::vector<Vector2f> TexCoords;
45  typedef std::vector<std::string> strings;
46  typedef std::vector<int> Integers;
47  typedef std::vector<float> Floats;
48 
49  extern Vector3f CENS_NULL_COLOR;
50  extern Vertices CENS_NULL_VERTICES;
51  extern TexCoords CENS_NULL_TEXCOORDS;
53  extern strings CENS_NULL_STRINGS;
54 
60  };
61 
62  extern const std::string CENS_DEFAULT_CONTROL;
63  extern const std::string CENS_PD_CONTROL;
64 
65  enum GS_TYPE {
66  GS_NULL = 1,
72  };
73 
74  extern const int GS_SPHERE_LATS;
75  extern const int GS_SPHERE_LONGS;
76 
77 }
78 
79 #endif // CENS_TYPES_H
Computational Embodied Neuroscience Simulator library.
Definition: cens_engine.cpp:29
std::vector< Vector3f > Vertices
Definition: cens_types.h:43
GS_TYPE
Definition: cens_types.h:65
const std::string CENS_DEFAULT_CONTROL
Definition: cens_types.cpp:32
CENSPixelMap CENS_NULL_PIXMAP
Definition: cens_types.cpp:29
strings CENS_NULL_STRINGS
Definition: cens_types.cpp:30
std::vector< Vector2f > TexCoords
Definition: cens_types.h:44
std::vector< float > Floats
Definition: cens_types.h:47
std::vector< std::string > strings
Definition: cens_types.h:45
CENSConstraint
Definition: cens_types.h:55
const std::string CENS_PD_CONTROL
Definition: cens_types.cpp:33
const int GS_SPHERE_LONGS
Definition: cens_types.cpp:36
std::vector< int > Integers
Definition: cens_types.h:46
Use a byte vector as a matrix.
Definition: cens_pixelmap.h:40
Vertices CENS_NULL_VERTICES
Definition: cens_types.cpp:27
Vector3f CENS_NULL_COLOR
Definition: cens_types.cpp:26
TexCoords CENS_NULL_TEXCOORDS
Definition: cens_types.cpp:28
const int GS_SPHERE_LATS
Definition: cens_types.cpp:35