eXperiment robotics framework

WindowGL Class Reference
[Windows widgets]

A pure virtual FLTK OpenGL window. More...

#include <erf/erf_window.hpp>>

Inheritance diagram for WindowGL:

Inheritance graph
[legend]
Collaboration diagram for WindowGL:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WindowGL (int x=0, int y=0, int w=800, int h=600, string _string="")
 constructor.
 ~WindowGL ()
 destructor.
void runPlugins ()
 run all plugins in this window.
bool toggleFullScreen ()
 toglle fullscreen mode.
virtual int handle (int e)
 the fltk event handler.

Public Attributes

glCameracamera
 the camera of this window.
Plugins plugins
 the vector of plugins of this window.
SignalUpdated signalUpdated
int x_
 window coordinates and dimentions needed to restore from fullscreen
int y_
int w_
int h_
bool fullscreen_
 fullscreen on ?
Color4 clearColor4
 clear color

Friends

std::ostream & operator<< (std::ostream &os, WindowGL &c)


Detailed Description

A pure virtual FLTK OpenGL window.

Is where the drawing of the world happens. This acts like the visitor design pattern, in which the "visitor" is the window and the "visited" are the plugins. The number of windows is not limited in any way. To save CPU/GPU cycles the window is redraw only when a sensor displayed in the window received new data or on input events.

Definition at line 54 of file erf_window.hpp.


Constructor & Destructor Documentation

WindowGL::WindowGL ( int  x = 0,
int  y = 0,
int  w = 800,
int  h = 600,
string  _string = "" 
)

constructor.

WindowGL::~WindowGL (  ) 

destructor.


Member Function Documentation

void WindowGL::runPlugins (  ) 

run all plugins in this window.

bool WindowGL::toggleFullScreen (  ) 

toglle fullscreen mode.

virtual int WindowGL::handle ( int  e  )  [virtual]

the fltk event handler.

Returns:
true if handled.
  • e the event.

Reimplemented in Window3d.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
WindowGL c 
) [friend]


Member Data Documentation

the camera of this window.

Definition at line 63 of file erf_window.hpp.

the vector of plugins of this window.

Definition at line 65 of file erf_window.hpp.

Definition at line 67 of file erf_window.hpp.

window coordinates and dimentions needed to restore from fullscreen

Definition at line 70 of file erf_window.hpp.

Definition at line 70 of file erf_window.hpp.

Definition at line 70 of file erf_window.hpp.

Definition at line 70 of file erf_window.hpp.

fullscreen on ?

Definition at line 72 of file erf_window.hpp.

clear color

Definition at line 74 of file erf_window.hpp.


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

The miarn project - written by Joao Xavier