Functions |
int | compute_max_width (const char *string) |
int | compute_node_lines (const char *string) |
void | display () |
void | draw_edge (GLfloat parent_x, GLfloat parent_y, GLfloat parent_size, GLfloat child_x, GLfloat child_y, GLfloat child_size) |
void | draw_node (float x, float y, int node_type, const char *leafName, int status) |
void | draw_straight_edge (GLfloat parent_x, GLfloat parent_y, GLfloat parent_size, GLfloat child_x, GLfloat child_y, GLfloat child_size) |
void | drawCircle (float radius) |
void | drawEllipse (float xpos, float ypos, float xradius, float yradius) |
void | drawString (void *font, const char *string, float x, float y, float z) |
void | drawTree (BT::ControlNode *tree_) |
void | keyboard (unsigned char key, int x, int y) |
void | keyboard_release (unsigned char key, int x, int y) |
void | processSpecialKeys (int key, int xx, int yy) |
void | renderBitmapString (float x, float y, void *font, const char *string) |
void | updateTree (BT::TreeNode *tree, GLfloat x_pos, GLfloat y_pos, GLfloat y_offset, int depth) |
Variables |
float | additional_spacing_array [10] |
float | b_color = 1 |
const float | DEG2RAD = 3.14159/180.0 |
int | depth |
void * | font = font_array[0] |
void * | font_array [3] = {GLUT_BITMAP_8_BY_13, GLUT_BITMAP_8_BY_13, GLUT_BITMAP_8_BY_13} |
float | fraction = 0.1f |
float | g_color = 1 |
bool | init = false |
bool | is_number_pressed_array [10] |
unsigned char | number_char [4] = {'0', '1', '2', '3'} |
float | r_color = 1 |
BT::ControlNode * | tree |
float | x = 0.0 |
float | x_offset = 0.01 |
GLfloat | x_space = 0.06 |
float | y = 0.4 |
float | y_offset = 0.15 |
double | zoom = 1.0f |
float | zoom_fraction = 0.1f |