Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef DRAW_H
00014 #define DRAW_H
00015 #include <cstdlib>
00016 #include <GL/glut.h>
00017 #include <math.h>
00018 #include <iostream>
00019 #include <string>
00020 #include <control_node.h>
00021
00022
00023 void drawEllipse(float xradius, float yradius);
00024
00025 void drawTree(BT::ControlNode* tree_);
00026
00027 void draw_status(float x, float y, int node_status);
00028
00029 void drawString(void * font, const char *string, float x, float y, float z);
00030
00031 void renderBitmapString(float x, float y, void *font, const char *string);
00032
00033 void draw_node(float x, float y, int node_type, const char *leafName, int status);
00034
00035 void draw_edge(GLfloat parent_x, GLfloat parent_y, GLfloat parent_size,
00036 GLfloat child_x, GLfloat child_y, GLfloat child_size);
00037
00038 void keyboard(unsigned char key, int x, int y);
00039
00040 void drawCircle(float radius);
00041
00042 int compute_node_lines(const char *string);
00043
00044 int compute_max_width(const char *string);
00045
00046 #endif // DRAW_H