Namespaces | Files | Functions
libviewer
Collaboration diagram for libviewer:

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)

Function Documentation

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

Parameters:
llength of the box (x dimension)
wwidth of the box (y dimension)
hheight 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

Parameters:
radiusthe radius of the cylinder
heightthe 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

Parameters:
r1radius along x axis
r2radius along y axis
r3radius 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

Parameters:
llength in x
wwidth 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

Parameters:
rangethe range (radius) of the partial ring
fovField Of View of the range sensor
range_widthspecify 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)

Parameters:
radiusthe radius of the cylinder
heightthe height of the cylinder
fovthe "fov" of the slice (om degree)
slices_per_circlethe 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

Parameters:
radiusthe radius of the sphere

Definition at line 177 of file primitives.cpp.



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