#include <draw_obstacles.H>
Public Member Functions | |
draw_obstacles_t (double cbviz_origin_[3], unsigned qid_, world_state_t *ws_, conf_t &viz_conf_, int viz_mode_) | |
void | init_data () |
Initialization of display lists, etc. | |
void | update_data (double bot_pos_[3]) |
Function called for idle loop. | |
void | display (double cbviz_origin_[3]) |
Function called during display loop. | |
void | toggle_display () |
Toggle displaying of the data. | |
Private Attributes | |
Model * | m_pWheel |
Model * | m_pVehicle |
std::vector< obstacle_data_t > | m_obstacle_list |
obstacle_data_t | m_obstacle_data |
int | m_object_lookup [NUM_OBJECTS] |
unsigned | m_list_counter |
int | m_viz_mode |
double | m_object_rotation [16] |
unsigned | m_qid |
world_state_t * | m_ws |
bool | m_display_vel |
bool | m_display_id |
draw_obstacles_t::draw_obstacles_t | ( | double | cbviz_origin_[3], | |
unsigned | qid_, | |||
world_state_t * | ws_, | |||
conf_t & | viz_conf_, | |||
int | viz_mode_ | |||
) |
void draw_obstacles_t::display | ( | double | bot_bos_[3] | ) | [virtual] |
Function called during display loop.
Implements cajun::component_interface_t.
References Model::draw(), cajun::draw_cube(), cajun::draw_cylinder(), cajun::draw_sphere(), cajun::get_rotation_matrix(), cajun::component_interface_t::m_cbviz_origin, cajun::component_interface_t::m_display, m_display_id, m_display_vel, m_object_rotation, m_obstacle_list, m_pVehicle, cajun::output_float_number(), cajun::output_int_number(), POSX, POSY, and POSZ.
void draw_obstacles_t::init_data | ( | ) | [virtual] |
Initialization of display lists, etc.
Reimplemented from cajun::component_interface_t.
References Model::Init(), m_pVehicle, m_pWheel, m_viz_mode, and SIMULATION.
void cajun::draw_obstacles_t::toggle_display | ( | ) | [inline, virtual] |
Toggle displaying of the data.
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_display.
void draw_obstacles_t::update_data | ( | double | bot_pos_[3] | ) | [virtual] |
Function called for idle loop.
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_display, m_obstacle_list, m_qid, and m_ws.
bool cajun::draw_obstacles_t::m_display_id [private] |
Referenced by display(), and draw_obstacles_t().
bool cajun::draw_obstacles_t::m_display_vel [private] |
Referenced by display(), and draw_obstacles_t().
unsigned cajun::draw_obstacles_t::m_list_counter [private] |
int cajun::draw_obstacles_t::m_object_lookup[NUM_OBJECTS] [private] |
double cajun::draw_obstacles_t::m_object_rotation[16] [private] |
Referenced by display().
obstacle_data_t cajun::draw_obstacles_t::m_obstacle_data [private] |
std::vector<obstacle_data_t> cajun::draw_obstacles_t::m_obstacle_list [private] |
Referenced by display(), and update_data().
Model* cajun::draw_obstacles_t::m_pVehicle [private] |
Referenced by display(), draw_obstacles_t(), and init_data().
Model* cajun::draw_obstacles_t::m_pWheel [private] |
Referenced by draw_obstacles_t(), and init_data().
unsigned cajun::draw_obstacles_t::m_qid [private] |
Referenced by draw_obstacles_t(), and update_data().
int cajun::draw_obstacles_t::m_viz_mode [private] |
Referenced by draw_obstacles_t(), and init_data().
world_state_t* cajun::draw_obstacles_t::m_ws [private] |
Referenced by draw_obstacles_t(), and update_data().