Stg::WorldGui Class Reference
#include <stage.hh>
Inherits Stg::World.
Public Member Functions | |
| virtual std::string | ClockString () |
| void | DrawBoundingBoxTree () |
| std::string | EnergyString (void) |
| Canvas * | GetCanvas (void) |
| virtual bool | IsGUI () |
| virtual void | Load (const char *filename) |
| virtual Model * | RecentlySelectedModel () |
| virtual void | RemoveChild (Model *mod) |
| virtual bool | Save (const char *filename) |
| void | SetRealTimeInterval (stg_usec_t usec) |
| void | Show () |
| virtual void | Start () |
| virtual void | Stop () |
| virtual void | UnLoad () |
| virtual bool | Update () |
| WorldGui (int W, int H, const char *L=0) | |
| ~WorldGui () | |
Protected Member Functions | |
| void | DrawFloor () |
| void | DrawTree (bool leaves) |
| virtual void | PopColor () |
| virtual void | PushColor (double r, double g, double b, double a) |
| virtual void | PushColor (Color col) |
Detailed Description
Extends World to implement an FLTK / OpenGL graphical user interface.Constructor & Destructor Documentation
| WorldGui::WorldGui | ( | int | W, | |
| int | H, | |||
| const char * | L = 0 | |||
| ) |
| WorldGui::~WorldGui | ( | ) |
Member Function Documentation
| std::string WorldGui::ClockString | ( | void | ) | [virtual] |
Get human readable string that describes the current simulation time.
Reimplemented from Stg::World.
| void WorldGui::DrawBoundingBoxTree | ( | ) |
| void WorldGui::DrawFloor | ( | ) | [protected] |
| void WorldGui::DrawTree | ( | bool | leaves | ) | [protected] |
| std::string WorldGui::EnergyString | ( | void | ) |
Get human readable string that describes the current global energy state.
| Canvas* Stg::WorldGui::GetCanvas | ( | void | ) | [inline] |
| virtual bool Stg::WorldGui::IsGUI | ( | ) | [inline, virtual] |
Reimplemented from Stg::World.
| void WorldGui::Load | ( | const char * | filename | ) | [virtual] |
Reimplemented from Stg::World.
| void WorldGui::PopColor | ( | ) | [protected, virtual] |
Reimplemented from Stg::World.
| void WorldGui::PushColor | ( | double | r, | |
| double | g, | |||
| double | b, | |||
| double | a | |||
| ) | [protected, virtual] |
Reimplemented from Stg::World.
| void WorldGui::PushColor | ( | Color | col | ) | [protected, virtual] |
Reimplemented from Stg::World.
| Model * WorldGui::RecentlySelectedModel | ( | ) | [virtual] |
Reimplemented from Stg::World.
| void WorldGui::RemoveChild | ( | Model * | mod | ) | [virtual] |
Reimplemented from Stg::Ancestor.
| bool WorldGui::Save | ( | const char * | filename | ) | [virtual] |
Reimplemented from Stg::World.
| void Stg::WorldGui::SetRealTimeInterval | ( | stg_usec_t | usec | ) | [inline] |
Set the minimum real time interval between world updates, in microeconds.
| void WorldGui::Show | ( | ) |
show the window - need to call this if you don't Load().
| void WorldGui::Start | ( | ) | [virtual] |
Reimplemented from Stg::World.
| void WorldGui::Stop | ( | ) | [virtual] |
Reimplemented from Stg::World.
| void WorldGui::UnLoad | ( | ) | [virtual] |
Reimplemented from Stg::World.
| bool WorldGui::Update | ( | void | ) | [virtual] |
Reimplemented from Stg::World.
The documentation for this class was generated from the following files:
Generated on Wed Jul 22 11:51:06 2009 for Stage by
1.5.9
