WorldInfoViewer Class Reference
Main class of the WorldInfoViewer application. More...
#include <tools/worldinfo_viewer/worldinfo_viewer.h>
Classes | |
| class | RobotRecord |
Public Member Functions | |
| WorldInfoViewer (Glib::RefPtr< Gnome::Glade::Xml > ref_xml, fawkes::WorldInfoDataContainer *data_container) | |
| Constructor. | |
| virtual | ~WorldInfoViewer () |
| Destructor. | |
| Gtk::Window & | get_window () const |
| Obtain the main window of the application. | |
| bool | update () |
| Update the GUI. | |
| void | gamestate_changed () |
| Call this method whenever the game state changes. | |
Detailed Description
Main class of the WorldInfoViewer application.
Definition at line 36 of file worldinfo_viewer.h.
Constructor & Destructor Documentation
| WorldInfoViewer::WorldInfoViewer | ( | Glib::RefPtr< Gnome::Glade::Xml > | ref_xml, | |
| fawkes::WorldInfoDataContainer * | data_container | |||
| ) |
Constructor.
- Parameters:
-
ref_xml reference to the Glade XML file data_container pointer to the central instance of the WorldInfoDataContainer
Definition at line 51 of file worldinfo_viewer.cpp.
References update().
| WorldInfoViewer::~WorldInfoViewer | ( | ) | [virtual] |
Member Function Documentation
| void WorldInfoViewer::gamestate_changed | ( | ) |
Call this method whenever the game state changes.
Definition at line 228 of file worldinfo_viewer.cpp.
References fawkes::WorldInfoDataContainer::get_game_state_string(), fawkes::WorldInfoDataContainer::get_half_string(), fawkes::WorldInfoDataContainer::get_other_score(), fawkes::WorldInfoDataContainer::get_own_goal_color_string(), fawkes::WorldInfoDataContainer::get_own_score(), and fawkes::WorldInfoDataContainer::get_own_team_color_string().
| Gtk::Window & WorldInfoViewer::get_window | ( | ) | const |
Obtain the main window of the application.
- Returns:
- reference to the main window
Definition at line 103 of file worldinfo_viewer.cpp.
| bool WorldInfoViewer::update | ( | ) |
Update the GUI.
Definition at line 132 of file worldinfo_viewer.cpp.
References fawkes::WorldInfoDataContainer::check_timeout(), fawkes::WorldInfoDataContainer::get_hosts(), fawkes::WorldInfoDataContainer::get_timedout_hosts(), fawkes::WorldInfoDataContainer::new_data_available(), FieldView::remove_host(), FieldView::toggle_show_ball(), FieldView::toggle_show_opponents(), and FieldView::toggle_show_pose().
Referenced by WorldInfoViewer().
The documentation for this class was generated from the following files:
- src/tools/worldinfo_viewer/worldinfo_viewer.h
- src/tools/worldinfo_viewer/worldinfo_viewer.cpp

