00001 // Copyright (C) 2004 University of Louisiana at Lafayette 00002 // Authors: Suresh Golconda, Nitin, Arun Pratap 00003 00004 #ifndef CAJUN_DRAW_CBLN_DTM_H 00005 #define CAJUN_DRAW_CBLN_DTM_H 00006 00007 #include "data_queue.H" 00008 #include "cbviz_util.H" 00009 #include "conf.H" 00010 #include "component_interface.H" 00011 00012 namespace cajun 00013 { 00015 class draw_cbln_dtm_t : public component_interface_t 00016 { 00017 public: 00018 draw_cbln_dtm_t (double cbviz_origin[3], conf_t &conf, 00019 world_state_t *ws_); 00020 virtual ~draw_cbln_dtm_t () {;}; 00021 void update_data (double bot_pos_[3]); 00022 void display (double bot_pos[3]); 00023 void toggle_display () {m_display = !m_display;} 00024 private: 00026 cbln_dtm_data_t m_cbln_dtm; 00028 double m_grid_height; 00029 bool read_cbln_dtm (); 00030 double dtm_y_to_sim_y (int x, int y); 00031 double dtm_x_to_sim_x (int x, int y); 00032 }; 00033 } 00034 #endif 00035