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)
virtual ~Gui ()
virtual void Start ()
 Start running the Gui.

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


Public Attributes

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


Protected Methods

virtual void CreateMenuWindow ()
 Make the menu window.

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

virtual void Init ()
 Initialize Gui and Render.

virtual void MainLoop ()
 The main event processing loop.


Protected Attributes

window* W
RenderR
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 )
 

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


Member Function Documentation

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

Figure out what actions to take based on menu choices.

Reimplemented in GuiPlanner.

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

Make the menu window.

Reimplemented in GuiPlanner.

void Gui::HandleEvents ( ) [virtual]
 

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

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 [protected]
 

window * Gui::W [protected]
 


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


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