#include <draw_path_wp.H>
Public Member Functions | |
draw_path_wp_t (double cbviz_origin[3], conf_t &conf, int id, world_state_t *ws_) | |
virtual | ~draw_path_wp_t () |
void | toggle_display () |
Toggle displaying of the data. | |
void | update_data (double bot_pos_[3]) |
Function called for idle loop. | |
void | display (double bot_pos[3]) |
Function called during display loop. | |
Private Member Functions | |
bool | read_path_wp () |
void | select_color (unsigned pi) |
Private Attributes | |
path_data_t | m_path_data |
nav_data_t | m_nav |
int | m_id |
bool | m_line_from_bot |
double | m_flag_posy |
bool | m_display_wp_number |
cajun::draw_path_wp_t::draw_path_wp_t | ( | double | cbviz_origin[3], | |
conf_t & | conf, | |||
int | id, | |||
world_state_t * | ws_ | |||
) |
virtual cajun::draw_path_wp_t::~draw_path_wp_t | ( | ) | [inline, virtual] |
void draw_path_wp_t::display | ( | double | bot_bos_[3] | ) | [virtual] |
Function called during display loop.
Implements cajun::component_interface_t.
References cajun::draw_line(), cajun::draw_square(), cajun::component_interface_t::m_data_ok, cajun::component_interface_t::m_display, m_display_wp_number, m_flag_posy, m_id, m_line_from_bot, m_nav, m_path_data, cajun::output_int_number(), POSZ, and select_color().
bool draw_path_wp_t::read_path_wp | ( | ) | [private] |
References cajun::component_interface_t::m_cbviz_origin, m_id, m_nav, m_path_data, cajun::component_interface_t::m_world_state, POSX, and POSY.
Referenced by update_data().
void draw_path_wp_t::select_color | ( | unsigned | pi | ) | [private] |
References m_id, and m_path_data.
Referenced by display().
void draw_path_wp_t::toggle_display | ( | ) | [virtual] |
Toggle displaying of the data.
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_display.
Referenced by cajun::simulation_draw_t::normalKey_callback().
void draw_path_wp_t::update_data | ( | double | bot_pos_[3] | ) | [virtual] |
Function called for idle loop.
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_data_ok, and read_path_wp().
bool cajun::draw_path_wp_t::m_display_wp_number [private] |
Referenced by display(), and draw_path_wp_t().
double cajun::draw_path_wp_t::m_flag_posy [private] |
Referenced by display(), and draw_path_wp_t().
int cajun::draw_path_wp_t::m_id [private] |
Referenced by display(), draw_path_wp_t(), read_path_wp(), and select_color().
bool cajun::draw_path_wp_t::m_line_from_bot [private] |
Referenced by display(), and draw_path_wp_t().
nav_data_t cajun::draw_path_wp_t::m_nav [private] |
Referenced by display(), and read_path_wp().
path_data_t cajun::draw_path_wp_t::m_path_data [private] |
Referenced by display(), read_path_wp(), and select_color().