draw.h
Go to the documentation of this file.
00001 /* Copyright (C) 2015-2017 Michele Colledanchise - All Rights Reserved
00002 *
00003 *   Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
00004 *   to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
00005 *   and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
00006 *   The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
00007 *
00008 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00009 *   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
00010 *   WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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


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