Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Gui Class Reference

A generic class for designing graphical user interfaces (GUIs). More...

#include <gui.h>

Inheritance diagram for Gui::

GuiPlanner List of all members.

Public Methods

 Gui (Render *render)
 The window.

virtual ~Gui ()
virtual void Start ()
 Start running the Gui.

virtual void HandleEvents ()=0
 Process any IO events (may be used by Render).

virtual void ButtonHandle (int b)
 Figure out what actions to take based on menu choices.


Public Attributes

RenderR
bool Finished
 Set to true if you want to main loop to terminate.


Protected Methods

virtual void CreateWindow ()
 Make the menu window.

virtual void Init ()
 Initialize Gui and Render.

virtual void MainLoop ()
 The main event processing loop.


Protected Attributes

string FilePath

Detailed Description

A generic class for designing graphical user interfaces (GUIs).

The graphical user interface (GUI) is designed as a hierarchy of classes to enable specific user interfaces to be designed for a variety of different motion strategy problems and planning algorithms. Currently, there is one derived class which serves as the GUI for all of the RRT-based planners. Each instance of Gui includes an instance of an RRT Planner class and an instance of a Render class. Using this design, the same basic GUI design can be used, regardless of the particular rendering methods.


Constructor & Destructor Documentation

Gui::Gui ( Render * render )
 

The window.

Gui::~Gui ( ) [inline, virtual]
 


Member Function Documentation

void Gui::ButtonHandle ( int b ) [inline, virtual]
 

Figure out what actions to take based on menu choices.

Reimplemented in GuiPlanner.

void Gui::CreateWindow ( ) [inline, protected, virtual]
 

Make the menu window.

void Gui::HandleEvents ( ) [pure virtual]
 

Process any IO events (may be used by Render).

Reimplemented in GuiPlanner.

void Gui::Init ( ) [protected, virtual]
 

Initialize Gui and Render.

Reimplemented in GuiPlanner.

void Gui::MainLoop ( ) [protected, virtual]
 

The main event processing loop.

void Gui::Start ( ) [virtual]
 

Start running the Gui.


Member Data Documentation

string Gui::FilePath [protected]
 

bool Gui::Finished
 

Set to true if you want to main loop to terminate.

Render* Gui::R
 


The documentation for this class was generated from the following file: Motion Strategy Library


Web page maintained by Steve LaValle
Partial support provided by NSF CAREER Award IRI-970228 (LaValle), Honda Research.
Contributors: Anna Atramentov, Peng Cheng, James Kuffner, Steve LaValle, and Libo Yang.