00001 // Copyright (C) 2006 Christopher Mire 00002 // Copyright (C) 2006 University of Louisiana at Lafayette 00003 // Authors: Pablo Mejia, Suresh Golconda, Christopher Mire 00004 00005 #ifndef CAJUN_DRAW_LDTM_H 00006 #define CAJUN_DRAW_LDTM_H 00007 00008 #include "data_queue.H" 00009 #include "cbviz_util.H" 00010 #include "local_dtm.H" 00011 #include "component_interface.H" 00012 #include "conf.H" 00013 00014 namespace cajun 00015 { 00016 class draw_ldtm_t : public component_interface_t 00017 { 00018 public: 00019 draw_ldtm_t (double cbviz_origin[3], conf_t &conf, 00020 world_state_t *ws_); 00021 virtual ~draw_ldtm_t (); 00022 void update_data (double bot_pos_[3]); 00023 void display (double bot_pos[3]); 00024 void toggle_display (); 00025 private: 00026 void draw_dtm_grid (); 00027 double dtm_x_to_sim_x (int x); 00028 double dtm_y_to_sim_y (int y); 00029 00030 local_dtm_t *m_ldtm; 00031 double grid_height; 00032 }; 00033 } 00034 #endif 00035