g2o
|
Namespaces | |
g2o | |
g2o::opengl | |
Macros | |
#define | G2O_OPENGL_API |
Functions | |
void | g2o::opengl::drawBox (GLfloat l, GLfloat w, GLfloat h) |
void | g2o::opengl::drawPlane (GLfloat l, GLfloat w) |
void | g2o::opengl::drawSphere (GLfloat radius) |
void | g2o::opengl::drawEllipsoid (GLfloat r1, GLfloat r2, GLfloat r3) |
void | g2o::opengl::drawCone (GLfloat radius, GLfloat height) |
void | g2o::opengl::drawDisk (GLfloat radius) |
void | g2o::opengl::drawCylinder (GLfloat radius, GLfloat height) |
void | g2o::opengl::drawPyramid (GLfloat length, GLfloat height) |
void | g2o::opengl::drawRangeRing (GLfloat range, GLfloat fov, GLfloat range_width) |
void | g2o::opengl::drawSlice (GLfloat radius, GLfloat height, GLfloat fov, int slices_per_circle) |
void | g2o::opengl::drawPoseBox () |
void | g2o::opengl::drawArrow2D (float len, float head_width, float head_len) |
void | g2o::opengl::drawPoint (float pointSize) |
#define G2O_OPENGL_API |
Definition at line 44 of file opengl_primitives.h.
void G2O_OPENGL_API g2o::opengl::drawArrow2D | ( | float | len, |
float | head_width, | ||
float | head_len | ||
) |
draw a 2D arrow along the x axis with the given len
Definition at line 59 of file opengl_primitives.cpp.
Referenced by g2o::VertexSE2WriteGnuplotAction::operator()(), g2o::EdgeSE2WriteGnuplotAction::operator()(), and g2o::VertexSE3WriteGnuplotAction::operator()().
void G2O_OPENGL_API g2o::opengl::drawBox | ( | GLfloat | l, |
GLfloat | w, | ||
GLfloat | h | ||
) |
draw a box that is centered in the current coordinate frame
l | length of the box (x dimension) |
w | width of the box (y dimension) |
h | height of the box (z dimension) |
Definition at line 108 of file opengl_primitives.cpp.
Referenced by g2o::opengl::drawPoseBox(), g2o::CacheSE3Offset::setOffsetParam(), and g2o::VertexTag::write().
void G2O_OPENGL_API g2o::opengl::drawCone | ( | GLfloat | radius, |
GLfloat | height | ||
) |
draw a cone
Definition at line 186 of file opengl_primitives.cpp.
References g2o::opengl::GLUWrapper::getQuadradic().
void G2O_OPENGL_API g2o::opengl::drawCylinder | ( | GLfloat | radius, |
GLfloat | height | ||
) |
draw a (closed) cylinder
radius | the radius of the cylinder |
height | the height of the cylinder |
Definition at line 196 of file opengl_primitives.cpp.
References g2o::opengl::GLUWrapper::getQuadradic().
void G2O_OPENGL_API g2o::opengl::drawDisk | ( | GLfloat | radius | ) |
draw a disk
Definition at line 209 of file opengl_primitives.cpp.
References g2o::opengl::GLUWrapper::getQuadradic().
void G2O_OPENGL_API g2o::opengl::drawEllipsoid | ( | GLfloat | r1, |
GLfloat | r2, | ||
GLfloat | r3 | ||
) |
draw a ellipsoid whose center is in the origin of the current coordinate frame
r1 | radius along x axis |
r2 | radius along y axis |
r3 | radius along z axis |
Definition at line 173 of file opengl_primitives.cpp.
References g2o::opengl::GLUWrapper::getQuadradic().
void G2O_OPENGL_API g2o::opengl::drawPlane | ( | GLfloat | l, |
GLfloat | w | ||
) |
draw a plane in x-y dimension with a height of zero
l | length in x |
w | width in y |
Definition at line 154 of file opengl_primitives.cpp.
void G2O_OPENGL_API g2o::opengl::drawPoint | ( | float | pointSize | ) |
draw a point in the origin, having a size of pointSize
Definition at line 301 of file opengl_primitives.cpp.
Referenced by g2o::VertexPointXYWriteGnuplotAction::operator()(), and g2o::VertexPointXYZ::write().
void G2O_OPENGL_API g2o::opengl::drawPoseBox | ( | ) |
draws a box used to represent a 6d pose
Definition at line 74 of file opengl_primitives.cpp.
References g2o::opengl::drawBox().
void G2O_OPENGL_API g2o::opengl::drawPyramid | ( | GLfloat | length, |
GLfloat | height | ||
) |
draw a pyramid
Definition at line 215 of file opengl_primitives.cpp.
References g2o::opengl::GLUWrapper::getQuadradic().
Referenced by g2o::CacheCamera::updateImpl().
void G2O_OPENGL_API g2o::opengl::drawRangeRing | ( | GLfloat | range, |
GLfloat | fov, | ||
GLfloat | range_width = 0.05 |
||
) |
draw a range ring
range | the range (radius) of the partial ring |
fov | Field Of View of the range sensor |
range_width | specify how thick the ring should be drawn |
Definition at line 225 of file opengl_primitives.cpp.
References g2o::opengl::GLUWrapper::getQuadradic().
void G2O_OPENGL_API g2o::opengl::drawSlice | ( | GLfloat | radius, |
GLfloat | height, | ||
GLfloat | fov, | ||
int | slices_per_circle = 32 |
||
) |
draw a slice of a cylinder (approximated with slices_per_circle triangles for the complete circle)
radius | the radius of the cylinder |
height | the height of the cylinder |
fov | the "fov" of the slice (om degree) |
slices_per_circle | the number of triangle used to approximate the fulle circle |
Definition at line 233 of file opengl_primitives.cpp.
References M_PI.
void G2O_OPENGL_API g2o::opengl::drawSphere | ( | GLfloat | radius | ) |
draw a sphere whose center is in the origin of the current coordinate frame
radius | the radius of the sphere |
Definition at line 168 of file opengl_primitives.cpp.
References g2o::opengl::GLUWrapper::getQuadradic().