#include <draw_map.H>
Classes | |
struct | map_info_t |
struct | tfw_data_t |
Public Member Functions | |
draw_map_t (double cbviz_origin[3], conf_t &conf, const char *geotiff_dir_, world_state_t *ws_, rndf_t const *rndf_) | |
virtual | ~draw_map_t () |
void | dynamic_data () |
Dynamic changing data. | |
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 | move_map_x (int dir) |
void | move_map_y (int dir) |
Private Member Functions | |
bool | load_map_buffer (double bot_pos[3]) |
bool | load_map_texture () |
std::list< tfw_data_t >::iterator | find_tile (double bot_pos[3]) |
some value here are hard coded for victorville | |
void | find_geotiffs (const char *geotiff_dir_) |
void | index_geotiff (char *filename) |
Private Attributes | |
std::list< tfw_data_t > | m_tfw_data |
map_info_t | m_map_info [MAX_TEXTURES] |
map_view_t | m_map |
int | m_num_tiles |
double | m_cbviz_origin [3] |
Offset used for drawing coordinates. | |
double | m_off_x |
double | m_off_y |
draw_map_t::draw_map_t | ( | double | cbviz_origin[3], | |
conf_t & | conf, | |||
const char * | geotiff_dir_, | |||
world_state_t * | ws_, | |||
rndf_t const * | rndf_ | |||
) |
References find_geotiffs(), m_cbviz_origin, and cajun::component_interface_t::m_display.
draw_map_t::~draw_map_t | ( | ) | [virtual] |
void draw_map_t::display | ( | double | bot_bos_[3] | ) | [virtual] |
Function called during display loop.
Implements cajun::component_interface_t.
References cajun::draw_map_t::map_info_t::m_bottom_right_x, cajun::draw_map_t::map_info_t::m_bottom_right_y, cajun::component_interface_t::m_display, m_map_info, m_num_tiles, cajun::draw_map_t::map_info_t::m_top_left_x, and cajun::draw_map_t::map_info_t::m_top_left_y.
void draw_map_t::dynamic_data | ( | ) | [virtual] |
Dynamic changing data.
Reimplemented from cajun::component_interface_t.
References load_map_texture().
void draw_map_t::find_geotiffs | ( | const char * | geotiff_dir_ | ) | [private] |
References index_geotiff().
Referenced by draw_map_t().
list< draw_map_t::tfw_data_t >::iterator draw_map_t::find_tile | ( | double | bot_pos[3] | ) | [private] |
some value here are hard coded for victorville
References m_cbviz_origin, m_tfw_data, POSX, and POSY.
Referenced by load_map_buffer().
void draw_map_t::index_geotiff | ( | char * | filename | ) | [private] |
bool draw_map_t::load_map_buffer | ( | double | bot_pos[3] | ) | [private] |
References find_tile(), cajun::draw_map_t::map_info_t::m_bottom_right_x, cajun::draw_map_t::map_info_t::m_bottom_right_y, m_cbviz_origin, m_map, m_map_info, m_num_tiles, m_off_x, m_off_y, cajun::draw_map_t::map_info_t::m_offset_x, cajun::draw_map_t::map_info_t::m_offset_y, m_tfw_data, cajun::draw_map_t::map_info_t::m_top_left_x, cajun::draw_map_t::map_info_t::m_top_left_y, and MAX_TEXTURES.
Referenced by update_data().
bool draw_map_t::load_map_texture | ( | ) | [private] |
References cajun::draw_map_t::map_info_t::m_loaded, m_map, m_map_info, and m_num_tiles.
Referenced by dynamic_data().
void draw_map_t::move_map_x | ( | int | dir | ) |
Referenced by cajun::simulation_draw_t::normalKey_callback().
void draw_map_t::move_map_y | ( | int | dir | ) |
Referenced by cajun::simulation_draw_t::normalKey_callback().
void draw_map_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_map_t::update_data | ( | double | bot_pos_[3] | ) | [virtual] |
Function called for idle loop.
Implements cajun::component_interface_t.
References load_map_buffer().
double cajun::draw_map_t::m_cbviz_origin[3] [private] |
Offset used for drawing coordinates.
Reimplemented from cajun::component_interface_t.
Referenced by draw_map_t(), find_tile(), and load_map_buffer().
map_view_t cajun::draw_map_t::m_map [private] |
Referenced by load_map_buffer(), and load_map_texture().
map_info_t cajun::draw_map_t::m_map_info[MAX_TEXTURES] [private] |
Referenced by display(), load_map_buffer(), and load_map_texture().
int cajun::draw_map_t::m_num_tiles [private] |
Referenced by display(), load_map_buffer(), and load_map_texture().
double cajun::draw_map_t::m_off_x [private] |
Referenced by load_map_buffer().
double cajun::draw_map_t::m_off_y [private] |
Referenced by load_map_buffer().
std::list<tfw_data_t> cajun::draw_map_t::m_tfw_data [private] |
Referenced by find_tile(), index_geotiff(), and load_map_buffer().