Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef PRIMITIVES_H
00020 #define PRIMITIVES_H
00021
00023
00024
00029 #include <qgl.h>
00030
00031 namespace g2o {
00032
00039 void drawBox(GLfloat l, GLfloat w, GLfloat h);
00040
00046 void drawPlane(GLfloat l, GLfloat w);
00047
00052 void drawSphere(GLfloat radius);
00053
00060 void drawEllipsoid(GLfloat r1, GLfloat r2, GLfloat r3);
00061
00065 void drawCone(GLfloat radius, GLfloat height);
00066
00070 void drawDisk(GLfloat radius);
00071
00077 void drawCylinder(GLfloat radius, GLfloat height);
00078
00082 void drawPyramid(GLfloat length, GLfloat height);
00083
00090 void drawRangeRing(GLfloat range, GLfloat fov, GLfloat range_width = 0.05);
00091
00099 void drawSlice(GLfloat radius, GLfloat height, GLfloat fov, int slices_per_circle = 32);
00100
00104 void drawPoseBox();
00105
00109 void drawArrow(float length=1.0f, float radius=-1.0f, int nbSubdivisions=12);
00110
00114 void drawArrow2D(float len, float head_width, float head_len);
00115
00122 void drawAxis(float length = 1.f);
00123
00127 void drawGrid(float size=1.0f, int nbSubdivisions=10);
00128
00129
00130
00131 }
00132
00133 #endif