eXperiment robotics framework

ManagerWindows Class Reference
[Manager of Windows]

Class to manage Windows. More...

#include <erf/erf_manager_windows.hpp>>

List of all members.

Public Member Functions

 ManagerWindows ()
 constructor.
 ~ManagerWindows ()
 destructor.
WindowGLaddPlugin (Plugin *plugin_name, string windowName="")
 add a plugin to a window.
WindowGLaddPlugin (Plugin *plugin_name, WindowGL *w)
 add a plugin to a window.
int count () const
 count the windows.
void drawAll ()
 go through all plugin->run() in every window.
void showAll ()
 show all the windows.
int delPlugin (Plugin *p, Window3d *w=0)
 remove plugin, if a window argument is specified remove only from that window.
bool delWindow (WindowGL *p)
 delete the window.
WindowGLgetWindow (string w)
 get pointer to WindowGL.

Public Attributes

WindowMap windows
 a string->WindowGL map.

Friends

std::ostream & operator<< (std::ostream &os, ManagerWindows &c)
 print information of all the windows.


Detailed Description

Class to manage Windows.

Definition at line 32 of file erf_manager_windows.hpp.


Constructor & Destructor Documentation

ManagerWindows::ManagerWindows (  ) 

constructor.

ManagerWindows::~ManagerWindows (  ) 

destructor.


Member Function Documentation

WindowGL* ManagerWindows::addPlugin ( Plugin plugin_name,
string  windowName = "" 
)

add a plugin to a window.

WindowGL* ManagerWindows::addPlugin ( Plugin plugin_name,
WindowGL w 
)

add a plugin to a window.

int ManagerWindows::count (  )  const

count the windows.

void ManagerWindows::drawAll (  ) 

go through all plugin->run() in every window.

void ManagerWindows::showAll (  ) 

show all the windows.

int ManagerWindows::delPlugin ( Plugin p,
Window3d w = 0 
)

remove plugin, if a window argument is specified remove only from that window.

bool ManagerWindows::delWindow ( WindowGL p  ) 

delete the window.

Returns:
true if ok.

WindowGL* ManagerWindows::getWindow ( string  w  ) 

get pointer to WindowGL.

Returns:
pointer to WindowGL.
  • w a window name.


Friends And Related Function Documentation

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

print information of all the windows.


Member Data Documentation

a string->WindowGL map.

Definition at line 39 of file erf_manager_windows.hpp.


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

The miarn project - written by Joao Xavier