Stg::Gl Namespace Reference

Functions

void coord_shift (double x, double y, double z, double a)
void draw_array (float x, float y, float w, float h, float *data, size_t len, size_t offset, float min, float max)
void draw_array (float x, float y, float w, float h, float *data, size_t len, size_t offset)
void draw_centered_rect (float x, float y, float dx, float dy)
void draw_grid (bounds3d_t vol)
void draw_octagon (float w, float h, float m)
void draw_octagon (float x, float y, float w, float h, float m)
void draw_origin (double len)
void draw_speech_bubble (float x, float y, float z, const char *str)
void draw_string (float x, float y, float z, const char *string)
void draw_string_multiline (float x, float y, float w, float h, const char *string, Fl_Align align)
void draw_vector (double x, double y, double z)
void pose_inverse_shift (const Pose &pose)
void pose_shift (const Pose &pose)

Detailed Description

Convenient OpenGL drawing routines, used by visualization code.


Function Documentation

void Stg::Gl::coord_shift ( double  x,
double  y,
double  z,
double  a 
)
void Stg::Gl::draw_array ( float  x,
float  y,
float  w,
float  h,
float *  data,
size_t  len,
size_t  offset,
float  min,
float  max 
)
void Stg::Gl::draw_array ( float  x,
float  y,
float  w,
float  h,
float *  data,
size_t  len,
size_t  offset 
)
void Stg::Gl::draw_centered_rect ( float  x,
float  y,
float  dx,
float  dy 
)

Draws a rectangle with center at x,y, with sides of length dx,dy

void Stg::Gl::draw_grid ( bounds3d_t  vol)
void Stg::Gl::draw_octagon ( float  w,
float  h,
float  m 
)
void Stg::Gl::draw_octagon ( float  x,
float  y,
float  w,
float  h,
float  m 
)
void Stg::Gl::draw_origin ( double  len)
void Stg::Gl::draw_speech_bubble ( float  x,
float  y,
float  z,
const char *  str 
)
void Stg::Gl::draw_string ( float  x,
float  y,
float  z,
const char *  string 
)

Render a string at [x,y,z] in the current color

void Stg::Gl::draw_string_multiline ( float  x,
float  y,
float  w,
float  h,
const char *  string,
Fl_Align  align 
)
void Stg::Gl::draw_vector ( double  x,
double  y,
double  z 
)
void Stg::Gl::pose_inverse_shift ( const Pose pose)
void Stg::Gl::pose_shift ( const Pose pose)