#include <draw_ldtm.H>
Public Member Functions | |
draw_ldtm_t (double cbviz_origin[3], conf_t &conf, world_state_t *ws_) | |
virtual | ~draw_ldtm_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. | |
Private Member Functions | |
void | draw_dtm_grid () |
double | dtm_x_to_sim_x (int x) |
double | dtm_y_to_sim_y (int y) |
Private Attributes | |
local_dtm_t * | m_ldtm |
double | grid_height |
draw_ldtm_t::draw_ldtm_t | ( | double | cbviz_origin[3], | |
conf_t & | conf, | |||
world_state_t * | ws_ | |||
) |
References grid_height, cajun::component_interface_t::m_cbviz_origin, cajun::component_interface_t::m_display, m_ldtm, POSX, POSY, and POSZ.
draw_ldtm_t::~draw_ldtm_t | ( | ) | [virtual] |
References m_ldtm.
void draw_ldtm_t::display | ( | double | bot_bos_[3] | ) | [virtual] |
Function called during display loop.
Implements cajun::component_interface_t.
References b, draw_dtm_grid(), dtm_x_to_sim_x(), dtm_y_to_sim_y(), g, grid_height, cajun::component_interface_t::m_data_ok, cajun::component_interface_t::m_display, m_ldtm, POSZ, and r.
void draw_ldtm_t::draw_dtm_grid | ( | ) | [private] |
References cajun::draw_line(), cajun::draw_rectangle(), dtm_x_to_sim_x(), dtm_y_to_sim_y(), grid_height, and m_ldtm.
Referenced by display().
double draw_ldtm_t::dtm_x_to_sim_x | ( | int | x | ) | [private] |
References cajun::component_interface_t::m_cbviz_origin, m_ldtm, and POSX.
Referenced by display(), and draw_dtm_grid().
double draw_ldtm_t::dtm_y_to_sim_y | ( | int | y | ) | [private] |
References cajun::component_interface_t::m_cbviz_origin, m_ldtm, and POSY.
Referenced by display(), and draw_dtm_grid().
void draw_ldtm_t::toggle_display | ( | ) | [virtual] |
Toggle displaying of the data.
Implements cajun::component_interface_t.
References cajun::component_interface_t::m_display.
void draw_ldtm_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 m_ldtm.
double cajun::draw_ldtm_t::grid_height [private] |
Referenced by display(), draw_dtm_grid(), and draw_ldtm_t().
local_dtm_t* cajun::draw_ldtm_t::m_ldtm [private] |
Referenced by display(), draw_dtm_grid(), draw_ldtm_t(), dtm_x_to_sim_x(), dtm_y_to_sim_y(), update_data(), and ~draw_ldtm_t().