g2o
Toggle main menu visibility
Loading...
Searching...
No Matches
g2o
stuff
opengl_primitives.h
Go to the documentation of this file.
1
// g2o - General Graph Optimization
2
// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
3
//
4
// This file is part of g2o.
5
//
6
// g2o is free software: you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation, either version 3 of the License, or
9
// (at your option) any later version.
10
//
11
// g2o is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
// GNU General Public License for more details.
15
//
16
// You should have received a copy of the GNU General Public License
17
// along with g2o. If not, see <http://www.gnu.org/licenses/>.
18
19
#ifndef G2O_OPENGL_PRIMITIVES_H
20
#define G2O_OPENGL_PRIMITIVES_H
21
23
// @{
24
28
29
#include "g2o/config.h"
30
#include "
opengl_wrapper.h
"
31
32
#ifdef _MSC_VER
33
#ifdef G2O_SHARED_LIBS
34
#ifdef opengl_helper_EXPORTS
35
#define G2O_OPENGL_API __declspec(dllexport)
36
#else
37
#define G2O_OPENGL_API __declspec(dllimport)
38
#endif
39
#else
40
#define G2O_OPENGL_API
41
#endif
42
#else
43
#define G2O_OPENGL_API
44
#endif
45
46
namespace
g2o
{
47
namespace
opengl {
48
55
void
G2O_OPENGL_API
drawBox
(GLfloat l, GLfloat w, GLfloat h);
56
62
void
G2O_OPENGL_API
drawPlane
(GLfloat l, GLfloat w);
63
68
void
G2O_OPENGL_API
drawSphere
(GLfloat radius);
69
77
void
G2O_OPENGL_API
drawEllipsoid
(GLfloat r1, GLfloat r2, GLfloat r3);
78
82
void
G2O_OPENGL_API
drawCone
(GLfloat radius, GLfloat height);
83
87
void
G2O_OPENGL_API
drawDisk
(GLfloat radius);
88
92
void
G2O_OPENGL_API
drawCircle
(GLfloat radius,
int
segments = 32);
93
99
void
G2O_OPENGL_API
drawCylinder
(GLfloat radius, GLfloat height);
100
104
void
G2O_OPENGL_API
drawPyramid
(GLfloat length, GLfloat height);
105
112
void
G2O_OPENGL_API
drawRangeRing
(GLfloat range, GLfloat fov,
113
GLfloat range_width = 0.05);
114
124
void
G2O_OPENGL_API
drawSlice
(GLfloat radius, GLfloat height, GLfloat fov,
125
int
slices_per_circle = 32);
126
130
void
G2O_OPENGL_API
drawPoseBox
();
131
135
void
G2O_OPENGL_API
drawArrow2D
(
float
len,
float
head_width,
float
head_len);
136
140
void
G2O_OPENGL_API
drawPoint
(
float
pointSize);
141
142
// @}
143
144
#define POSE_VERTEX_COLOR 0.5f, 0.5f, 0.8f
145
#define POSE_PARAMETER_COLOR 0.5f, 0.5f, 0.8f
146
#define POSE_EDGE_COLOR 0.4f, 0.4f, 0.7f
147
#define POSE_EDGE_GHOST_COLOR 0.4f, 0.4f, 0.7f
148
149
#define LANDMARK_VERTEX_COLOR 0.8f, 0.5f, 0.3f
150
#define LANDMARK_EDGE_COLOR 0.7f, 0.4f, 0.2f
151
#define LANDMARK_EDGE_GHOST_COLOR 0.7f, 0.4f, 0.2f
152
153
}
// namespace opengl
154
}
// namespace g2o
155
156
#endif
g2o::opengl::drawCylinder
void drawCylinder(GLfloat radius, GLfloat height)
Definition
opengl_primitives.cpp:181
g2o::opengl::drawPoseBox
void drawPoseBox()
Definition
opengl_primitives.cpp:67
g2o::opengl::drawSphere
void drawSphere(GLfloat radius)
Definition
opengl_primitives.cpp:158
g2o::opengl::drawSlice
void drawSlice(GLfloat radius, GLfloat height, GLfloat fov, int slices_per_circle)
Definition
opengl_primitives.cpp:227
g2o::opengl::drawPoint
void drawPoint(float pointSize)
Definition
opengl_primitives.cpp:297
g2o::opengl::drawCone
void drawCone(GLfloat radius, GLfloat height)
Definition
opengl_primitives.cpp:172
g2o::opengl::drawPlane
void drawPlane(GLfloat l, GLfloat w)
Definition
opengl_primitives.cpp:145
g2o::opengl::drawDisk
void drawDisk(GLfloat radius)
Definition
opengl_primitives.cpp:193
g2o::opengl::drawBox
void drawBox(GLfloat l, GLfloat w, GLfloat h)
Definition
opengl_primitives.cpp:100
g2o::opengl::drawCircle
void drawCircle(GLfloat radius, int segments)
Definition
opengl_primitives.cpp:198
g2o::opengl::drawRangeRing
void drawRangeRing(GLfloat range, GLfloat fov, GLfloat range_width)
Definition
opengl_primitives.cpp:219
g2o::opengl::drawArrow2D
void drawArrow2D(float len, float head_width, float head_len)
Definition
opengl_primitives.cpp:53
g2o::opengl::drawPyramid
void drawPyramid(GLfloat length, GLfloat height)
Definition
opengl_primitives.cpp:210
g2o::opengl::drawEllipsoid
void drawEllipsoid(GLfloat r1, GLfloat r2, GLfloat r3)
Definition
opengl_primitives.cpp:162
g2o
Definition
dl_wrapper.cpp:55
G2O_OPENGL_API
#define G2O_OPENGL_API
Definition
opengl_primitives.h:43
opengl_wrapper.h
Generated on
for g2o by
1.17.0