#include <draw_vpath.H>
Public Member Functions | |
draw_vpath_t (double cbivz_origin[3], conf_t &conf, world_state_t *ws_) | |
virtual | ~draw_vpath_t () |
void | update_data (double bot_pos_[3]) |
Function called for idle loop. | |
void | display (double bot_pos[3]) |
Function called during display loop. | |
void | toggle_display () |
Toggle displaying of the data. | |
void | toggle_filter_type () |
Private Member Functions | |
void | read_vpath () |
void | draw_vpath_segment (vpath_data_t &vpath_) |
Private Attributes | |
std::vector< vpath_data_t > * | m_vpath_to_draw |
std::vector< vpath_data_t > * | m_vpath_to_populate |
data_queue_reader_t < vpath_data_t > * | m_vpath_dq |
double | m_last_vpath_tstamp |
bool | m_display_id |
bool | m_display_curve_orientation |
double | m_vpath_height |
int | m_display_type |
double | m_cell_size |
double | m_sq_space |
int | m_c_func |
unsigned | m_filter |
cajun::draw_vpath_t::draw_vpath_t | ( | double | cbivz_origin[3], | |
conf_t & | conf, | |||
world_state_t * | ws_ | |||
) |
References m_c_func, cajun::component_interface_t::m_cbviz_origin, m_cell_size, cajun::component_interface_t::m_display, m_display_curve_orientation, m_display_id, m_display_type, m_filter, m_last_vpath_tstamp, m_sq_space, m_vpath_dq, m_vpath_height, m_vpath_to_draw, m_vpath_to_populate, POSX, POSY, and POSZ.
virtual cajun::draw_vpath_t::~draw_vpath_t | ( | ) | [inline, virtual] |
void cajun::draw_vpath_t::display | ( | double | bot_bos_[3] | ) | [virtual] |
Function called during display loop.
Implements cajun::component_interface_t.
References draw_vpath_segment(), cajun::component_interface_t::m_display, m_vpath_dq, m_vpath_height, m_vpath_to_draw, POSZ, and read_vpath().
void cajun::draw_vpath_t::draw_vpath_segment | ( | vpath_data_t & | vpath_ | ) | [private] |
References b, cajun::color_contour(), cajun::color_gradient(), cajun::draw_square(), g, m_c_func, m_display_curve_orientation, m_display_id, m_display_type, m_filter, m_sq_space, cajun::output_int_number(), and r.
Referenced by display().
void cajun::draw_vpath_t::read_vpath | ( | ) | [private] |
References cajun::component_interface_t::m_cbviz_origin, m_last_vpath_tstamp, m_vpath_dq, m_vpath_to_draw, m_vpath_to_populate, POSX, and POSY.
Referenced by display().
void draw_vpath_t::toggle_display | ( | ) | [virtual] |
Toggle displaying of the data.
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_display.
void cajun::draw_vpath_t::toggle_filter_type | ( | ) |
References m_filter.
void draw_vpath_t::update_data | ( | double | bot_pos_[3] | ) | [virtual] |
Function called for idle loop.
Implements cajun::component_interface_t.
int cajun::draw_vpath_t::m_c_func [private] |
Referenced by draw_vpath_segment(), and draw_vpath_t().
double cajun::draw_vpath_t::m_cell_size [private] |
Referenced by draw_vpath_t().
bool cajun::draw_vpath_t::m_display_curve_orientation [private] |
Referenced by draw_vpath_segment(), and draw_vpath_t().
bool cajun::draw_vpath_t::m_display_id [private] |
Referenced by draw_vpath_segment(), and draw_vpath_t().
int cajun::draw_vpath_t::m_display_type [private] |
Referenced by draw_vpath_segment(), and draw_vpath_t().
unsigned cajun::draw_vpath_t::m_filter [private] |
Referenced by draw_vpath_segment(), draw_vpath_t(), and toggle_filter_type().
double cajun::draw_vpath_t::m_last_vpath_tstamp [private] |
Referenced by draw_vpath_t(), and read_vpath().
double cajun::draw_vpath_t::m_sq_space [private] |
Referenced by draw_vpath_segment(), and draw_vpath_t().
data_queue_reader_t<vpath_data_t>* cajun::draw_vpath_t::m_vpath_dq [private] |
Referenced by display(), draw_vpath_t(), and read_vpath().
double cajun::draw_vpath_t::m_vpath_height [private] |
Referenced by display(), and draw_vpath_t().
std::vector<vpath_data_t>* cajun::draw_vpath_t::m_vpath_to_draw [private] |
Referenced by display(), draw_vpath_t(), and read_vpath().
std::vector<vpath_data_t>* cajun::draw_vpath_t::m_vpath_to_populate [private] |
Referenced by draw_vpath_t(), and read_vpath().