WorldInfoViewer Class Reference

Main class of the WorldInfoViewer application. More...

#include <tools/worldinfo_viewer/worldinfo_viewer.h>

List of all members.

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.

Classes

class  RobotRecord


Detailed Description

Main class of the WorldInfoViewer application.

Author:
Daniel Beck

Definition at line 35 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 50 of file worldinfo_viewer.cpp.

References update().

WorldInfoViewer::~WorldInfoViewer (  )  [virtual]

Destructor.

Definition at line 91 of file worldinfo_viewer.cpp.


Member Function Documentation

void WorldInfoViewer::gamestate_changed (  ) 

Call this method whenever the game state changes.

Definition at line 229 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 102 of file worldinfo_viewer.cpp.

bool WorldInfoViewer::update (  ) 

Update the GUI.

Returns:
always true

Definition at line 133 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:
Generated on Tue Feb 22 13:32:38 2011 for Fawkes API by  doxygen 1.4.7