#include <cstdlib>
#include <GL/glut.h>
#include <math.h>
#include <iostream>
#include <string>
#include <control_node.h>
Go to the source code of this file.
Functions |
int | compute_max_width (const char *string) |
int | compute_node_lines (const char *string) |
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_status (float x, float y, int node_status) |
void | drawCircle (float radius) |
void | drawEllipse (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 | renderBitmapString (float x, float y, void *font, const char *string) |
Function Documentation
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 drawString |
( |
void * |
font, |
|
|
const char * |
string, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
void keyboard |
( |
unsigned char |
key, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |