primitives.h
Go to the documentation of this file.
00001 // g2o - General Graph Optimization
00002 // Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard
00003 //
00004 // This file is part of g2o.
00005 // 
00006 // g2o is free software: you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License as published by
00008 // the Free Software Foundation, either version 3 of the License, or
00009 // (at your option) any later version.
00010 // 
00011 // g2o is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 // 
00016 // You should have received a copy of the GNU General Public License
00017 // along with g2o.  If not, see <http://www.gnu.org/licenses/>.
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 } // end namespace
00132 
00133 #endif


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:32:09