Stg::StgWorldGui Class Reference
#include <stage.hh>
Inherits Stg::StgWorld.
Detailed Description
Extends StgWorld to present an OpenGL-based GUI to the userPublic Member Functions | |
void | DrawFloor () |
void | DrawTree (bool leaves) |
virtual void | Load (const char *filename) |
virtual void | PopColor () |
virtual void | PushColor (double r, double g, double b, double a) |
virtual void | PushColor (stg_color_t col) |
virtual bool | RealTimeUpdate () |
virtual void | Save () |
StgWorldGui (int W, int H, const char *L=0) | |
virtual bool | Update () |
~StgWorldGui () | |
Static Public Member Functions | |
static void | SaveCallback (Fl_Widget *wid, StgWorldGui *world) |
Friends | |
class | StgCanvas |
Constructor & Destructor Documentation
StgWorldGui::StgWorldGui | ( | int | W, | |
int | H, | |||
const char * | L = 0 | |||
) |
References About_cb(), dummy_cb(), Stg::StgWorld::graphics, SaveCallback(), Stg::STG_SHOW_ARROWS, Stg::STG_SHOW_BLOCKS, Stg::STG_SHOW_CLOCK, Stg::STG_SHOW_DATA, Stg::STG_SHOW_FOLLOW, Stg::STG_SHOW_FOOTPRINT, Stg::STG_SHOW_GRID, Stg::STG_SHOW_OCCUPANCY, Stg::STG_SHOW_QUADTREE, Stg::STG_SHOW_TRAILS, StgCanvas, and view_toggle_cb().
StgWorldGui::~StgWorldGui | ( | ) |
Member Function Documentation
void StgWorldGui::DrawFloor | ( | ) |
References Stg::SuperRegion::Floor_cb(), PopColor(), PushColor(), and Stg::StgWorld::superregions.
void StgWorldGui::DrawTree | ( | bool | leaves | ) |
References Stg::SuperRegion::Draw_cb(), and Stg::StgWorld::superregions.
void StgWorldGui::Load | ( | const char * | filename | ) | [virtual] |
Reimplemented from Stg::StgWorld.
References Stg::StgCanvas::GetShowFlags(), Stg::StgCanvas::interval, Stg::StgWorld::Load(), Stg::Worldfile::LookupEntity(), Stg::StgCanvas::panx, Stg::StgCanvas::pany, PRINT_DEBUG1, Stg::Worldfile::ReadFloat(), Stg::Worldfile::ReadInt(), Stg::Worldfile::ReadTupleFloat(), Stg::StgCanvas::scale, Stg::StgCanvas::SetShowFlags(), Stg::StgCanvas::sphi, Stg::STG_SHOW_ARROWS, Stg::STG_SHOW_BLOCKS, Stg::STG_SHOW_CLOCK, Stg::STG_SHOW_DATA, Stg::STG_SHOW_FOLLOW, Stg::STG_SHOW_FOOTPRINT, Stg::STG_SHOW_GRID, Stg::STG_SHOW_OCCUPANCY, Stg::STG_SHOW_QUADTREE, Stg::STG_SHOW_TRAILS, Stg::StgCanvas::stheta, Stg::StgAncestor::token, and Stg::StgWorld::wf.
Referenced by main().
virtual void Stg::StgWorldGui::PopColor | ( | ) | [inline, virtual] |
virtual void Stg::StgWorldGui::PushColor | ( | double | r, | |
double | g, | |||
double | b, | |||
double | a | |||
) | [inline, virtual] |
virtual void Stg::StgWorldGui::PushColor | ( | stg_color_t | col | ) | [inline, virtual] |
Reimplemented from Stg::StgWorld.
References Stg::StgCanvas::PushColor().
Referenced by DrawFloor().
bool StgWorldGui::RealTimeUpdate | ( | void | ) | [virtual] |
Reimplemented from Stg::StgWorld.
References Stg::StgWorld::interval_real, Stg::StgWorld::RealTimeUpdateWithIdler(), and Update().
Referenced by main().
void StgWorldGui::Save | ( | void | ) | [virtual] |
Reimplemented from Stg::StgWorld.
References Stg::StgCanvas::GetShowFlags(), Stg::StgCanvas::panx, Stg::StgCanvas::pany, PRINT_DEBUG1, Stg::StgWorld::Save(), Stg::StgCanvas::scale, Stg::StgCanvas::sphi, Stg::STG_SHOW_BLOCKS, Stg::STG_SHOW_CLOCK, Stg::STG_SHOW_DATA, Stg::STG_SHOW_FOLLOW, Stg::STG_SHOW_GRID, Stg::STG_SHOW_OCCUPANCY, Stg::STG_SHOW_QUADTREE, Stg::StgCanvas::stheta, Stg::StgAncestor::token, Stg::StgWorld::wf, Stg::Worldfile::WriteFloat(), Stg::Worldfile::WriteInt(), and Stg::Worldfile::WriteTupleFloat().
Referenced by SaveCallback().
void StgWorldGui::SaveCallback | ( | Fl_Widget * | wid, | |
StgWorldGui * | world | |||
) | [static] |
bool StgWorldGui::Update | ( | void | ) | [virtual] |
Reimplemented from Stg::StgWorld.
References Stg::StgWorld::Update().
Referenced by RealTimeUpdate().
Friends And Related Function Documentation
friend class StgCanvas [friend] |
The documentation for this class was generated from the following files:
Generated on Thu Jan 7 17:42:17 2010 for Stage by 1.5.5