Functions | Variables
draw.cpp File Reference
#include <draw.h>
#include <string>
#include <vector>
#include <X11/Xlib.h>
Include dependency graph for draw.cpp:

Go to the source code of this file.

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::ControlNodetree
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

Function Documentation

int compute_max_width ( const char *  string)

Definition at line 91 of file draw.cpp.

int compute_node_lines ( const char *  string)

Definition at line 72 of file draw.cpp.

void display ( )

Definition at line 400 of file draw.cpp.

void draw_edge ( GLfloat  parent_x,
GLfloat  parent_y,
GLfloat  parent_size,
GLfloat  child_x,
GLfloat  child_y,
GLfloat  child_size 
)

Definition at line 248 of file draw.cpp.

void draw_node ( float  x,
float  y,
int  node_type,
const char *  leafName,
int  status 
)

Definition at line 141 of file draw.cpp.

void draw_straight_edge ( GLfloat  parent_x,
GLfloat  parent_y,
GLfloat  parent_size,
GLfloat  child_x,
GLfloat  child_y,
GLfloat  child_size 
)

Definition at line 273 of file draw.cpp.

void drawCircle ( float  radius)

Definition at line 313 of file draw.cpp.

void drawEllipse ( float  xpos,
float  ypos,
float  xradius,
float  yradius 
)

Definition at line 54 of file draw.cpp.

void drawString ( void *  font,
const char *  string,
float  x,
float  y,
float  z 
)

Definition at line 67 of file draw.cpp.

void drawTree ( BT::ControlNode tree_)

Definition at line 480 of file draw.cpp.

void keyboard ( unsigned char  key,
int  x,
int  y 
)

Definition at line 286 of file draw.cpp.

void keyboard_release ( unsigned char  key,
int  x,
int  y 
)

Definition at line 301 of file draw.cpp.

void processSpecialKeys ( int  key,
int  xx,
int  yy 
)

Definition at line 410 of file draw.cpp.

void renderBitmapString ( float  x,
float  y,
void *  font,
const char *  string 
)

Definition at line 119 of file draw.cpp.

void updateTree ( BT::TreeNode tree,
GLfloat  x_pos,
GLfloat  y_pos,
GLfloat  y_offset,
int  depth 
)

Definition at line 326 of file draw.cpp.


Variable Documentation

Definition at line 30 of file draw.cpp.

float b_color = 1

Definition at line 41 of file draw.cpp.

const float DEG2RAD = 3.14159/180.0

Definition at line 21 of file draw.cpp.

int depth

Definition at line 44 of file draw.cpp.

void* font = font_array[0]

Definition at line 29 of file draw.cpp.

void* font_array[3] = {GLUT_BITMAP_8_BY_13, GLUT_BITMAP_8_BY_13, GLUT_BITMAP_8_BY_13}

Definition at line 28 of file draw.cpp.

float fraction = 0.1f

Definition at line 48 of file draw.cpp.

float g_color = 1

Definition at line 40 of file draw.cpp.

bool init = false

Definition at line 25 of file draw.cpp.

Definition at line 31 of file draw.cpp.

unsigned char number_char[4] = {'0', '1', '2', '3'}

Definition at line 32 of file draw.cpp.

float r_color = 1

Definition at line 39 of file draw.cpp.

Definition at line 24 of file draw.cpp.

float x = 0.0

Definition at line 35 of file draw.cpp.

float x_offset = 0.01

Definition at line 37 of file draw.cpp.

GLfloat x_space = 0.06

Definition at line 42 of file draw.cpp.

float y = 0.4

Definition at line 36 of file draw.cpp.

float y_offset = 0.15

Definition at line 38 of file draw.cpp.

double zoom = 1.0f

Definition at line 46 of file draw.cpp.

float zoom_fraction = 0.1f

Definition at line 49 of file draw.cpp.



behavior_tree_core
Author(s): Michele Colledanchise
autogenerated on Sun Sep 10 2017 02:31:49