lobot::MainWindow Class Reference

The Lobot/Robolocust main window. More...

#include <Robots/LoBot/ui/LoMainWindow.H>

Inheritance diagram for lobot::MainWindow:
Inheritance graph
[legend]
Collaboration diagram for lobot::MainWindow:
Collaboration graph
[legend]

List of all members.

Classes

class  ScreenCapture

Public Types

typedef Drawables::const_reference const_reference

Public Member Functions

void push_back (Drawable *)
 This method adds a drawable to the main window.
void save_screenshot (const std::string &file_name) const
 ~MainWindow ()
 Destroy the main window.

Friends

class singleton< MainWindow >

Detailed Description

The Lobot/Robolocust main window.

This class implements the functionality of the Robolocust/lobot UI. It pops up a GLUT window on the screen and manages the rendering of all the drawables created by the main program and other parts of Robolocust. All Robolocust drawables are expected to render themselves using OpenGL. Rendering takes place in a separate thread.

The main window is responsible for managing the visualization of the laser range finder, the LGMD spike trains and each of the behaviours and DAMN arbiters. Each drawable element is be assigned an area within the main window based on the geometry specifications in the individual sections of the Robolocust config file.

Definition at line 96 of file LoMainWindow.H.


Constructor & Destructor Documentation

MainWindow::~MainWindow (  ) 

Destroy the main window.

Definition at line 829 of file LoMainWindow.C.


Member Function Documentation

void MainWindow::push_back ( Drawable d  ) 

This method adds a drawable to the main window.

Definition at line 357 of file LoMainWindow.C.

References lobot::Drawable::gl_init(), and m_window.

Referenced by lobot::App::run().

void MainWindow::save_screenshot ( const std::string file_name  )  const

This function can be used to save a screenshot of the Robolocust UI to the specified file.

Definition at line 493 of file LoMainWindow.C.

References lobot::RenderBuffer::pixels(), and lobot::RenderBuffer::size().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:30:48 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3