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)
 
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_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

◆ coord_shift()

void Stg::Gl::coord_shift ( double x,
double y,
double z,
double a )

◆ draw_array() [1/2]

void Stg::Gl::draw_array ( float x,
float y,
float w,
float h,
float * data,
size_t len,
size_t offset )

◆ draw_array() [2/2]

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 )

◆ draw_centered_rect()

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

◆ draw_grid()

void Stg::Gl::draw_grid ( bounds3d_t vol)

◆ draw_octagon() [1/2]

void Stg::Gl::draw_octagon ( float w,
float h,
float m )

◆ draw_octagon() [2/2]

void Stg::Gl::draw_octagon ( float x,
float y,
float w,
float h,
float m )

◆ draw_origin()

void Stg::Gl::draw_origin ( double len)

◆ draw_speech_bubble()

void Stg::Gl::draw_speech_bubble ( float x,
float y,
float z,
const char * str )

◆ draw_string()

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

◆ draw_string_multiline()

void Stg::Gl::draw_string_multiline ( float x,
float y,
float w,
float h,
const char * string,
Fl_Align align )

◆ draw_vector()

void Stg::Gl::draw_vector ( double x,
double y,
double z )

◆ pose_inverse_shift()

void Stg::Gl::pose_inverse_shift ( const Pose & pose)

◆ pose_shift()

void Stg::Gl::pose_shift ( const Pose & pose)