|
Namespaces | |
| namespace | g2o |
Executes code, only if secs are gone since last exec. | |
Files | |
| file | primitives.h |
draw primitives with OpenGL | |
Functions | |
| void | g2o::drawArrow (float length, float radius, int nbSubdivisions) |
| void | g2o::drawArrow2D (float len, float head_width, float head_len) |
| void | g2o::drawAxis (float length) |
| void | g2o::drawBox (GLfloat l, GLfloat w, GLfloat h) |
| void | g2o::drawCone (GLfloat radius, GLfloat height) |
| void | g2o::drawCylinder (GLfloat radius, GLfloat height) |
| void | g2o::drawDisk (GLfloat radius) |
| void | g2o::drawEllipsoid (GLfloat r1, GLfloat r2, GLfloat r3) |
| void | g2o::drawGrid (float size, int nbSubdivisions) |
| void | g2o::drawPlane (GLfloat l, GLfloat w) |
| void | g2o::drawPoseBox () |
| void | g2o::drawPyramid (GLfloat length, GLfloat height) |
| void | g2o::drawRangeRing (GLfloat range, GLfloat fov, GLfloat range_width) |
| void | g2o::drawSlice (GLfloat radius, GLfloat height, GLfloat fov, int slices_per_circle) |
| void | g2o::drawSphere (GLfloat radius) |
| void g2o::drawArrow | ( | float | length = 1.0f, |
| float | radius = -1.0f, |
||
| int | nbSubdivisions = 12 |
||
| ) |
Draws a 3D arrow along the positive Z axis.
Definition at line 58 of file primitives.cpp.
| void g2o::drawArrow2D | ( | float | len, |
| float | head_width, | ||
| float | head_len | ||
| ) |
draw a 2D arrow along the x axis with the given len
Definition at line 68 of file primitives.cpp.
| void g2o::drawAxis | ( | float | length = 1.f | ) |
Draws an XYZ axis, with a given len (default is 1.0).
The axis position and orientation matches the current modelView matrix state: three arrows (red, green and blue) of length length are drawn along the positive X, Y and Z directions.
Definition at line 53 of file primitives.cpp.
| void g2o::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 117 of file primitives.cpp.
| void g2o::drawCone | ( | GLfloat | radius, |
| GLfloat | height | ||
| ) |
draw a cone
Definition at line 195 of file primitives.cpp.
| void g2o::drawCylinder | ( | GLfloat | radius, |
| GLfloat | height | ||
| ) |
draw a (closed) cylinder
| radius | the radius of the cylinder |
| height | the height of the cylinder |
Definition at line 205 of file primitives.cpp.
| void g2o::drawDisk | ( | GLfloat | radius | ) |
draw a disk
Definition at line 218 of file primitives.cpp.
| void g2o::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 182 of file primitives.cpp.
| void g2o::drawGrid | ( | float | size = 1.0f, |
| int | nbSubdivisions = 10 |
||
| ) |
Draws a grid in the XY plane, centered on (0,0,0) (defined in the current coordinate system).
Definition at line 63 of file primitives.cpp.
| void g2o::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 163 of file primitives.cpp.
| void g2o::drawPoseBox | ( | ) |
draws a box used to represent a 6d pose
Definition at line 83 of file primitives.cpp.
| void g2o::drawPyramid | ( | GLfloat | length, |
| GLfloat | height | ||
| ) |
draw a pyramid
Definition at line 224 of file primitives.cpp.
| void g2o::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 234 of file primitives.cpp.
| void g2o::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 242 of file primitives.cpp.
| void g2o::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 177 of file primitives.cpp.