23 #ifndef __TOOLS_WORLDINFO_VIEWER_WORLDINFO_VIEWER_H_ 24 #define __TOOLS_WORLDINFO_VIEWER_WORLDINFO_VIEWER_H_ 27 #include <cairomm/context.h> 31 class WorldInfoDataContainer;
41 Gtk::Window& get_window()
const;
44 void gamestate_changed();
47 class RobotRecord :
public Gtk::TreeModelColumnRecord
60 Gtk::TreeModelColumn<Glib::ustring> hostname;
61 Gtk::TreeModelColumn<Glib::ustring> fqdn;
62 Gtk::TreeModelColumn<bool> show_pose;
63 Gtk::TreeModelColumn<bool> show_ball;
64 Gtk::TreeModelColumn<bool> show_opponents;
69 void on_show_pose_toggled(
const Glib::ustring& path );
70 void on_show_ball_toggled(
const Glib::ustring& path );
71 void on_show_opponents_toggled(
const Glib::ustring& path );
73 Gtk::Window* m_wnd_main;
74 Gtk::VBox* m_vbx_field;
75 Gtk::TreeView* m_trv_robots;
76 Gtk::Statusbar* m_stb_status;
78 unsigned int m_stb_message_id;
82 RobotRecord m_robot_record;
83 Glib::RefPtr<Gtk::ListStore> m_robots_list;
87 unsigned int m_robot_id;
88 std::map<Glib::ustring, unsigned int> m_robots;
89 std::map<unsigned int, Gtk::TreeModel::Row> m_list_entries;
Data container to store and exchange worldinfo data.
Main class of the WorldInfoViewer application.
Fawkes library namespace.
Drawing widget that draws an (MSL-) soccer field with robots, opponents, and balls.