Menu Class Reference

This class groups widgets into menus. More...

#include <Menu.h>

Inherits MenuObject.

Collaboration diagram for Menu:

List of all members.


Public Member Functions

 Menu (XMLNode *xml)
 ~Menu ()
void addWidget (Widget *child)
WidgetgetWidget (const char *name)

Private Attributes

ObjectStore< Widgetstore

Detailed Description

This class groups widgets into menus.

The Menu -class is responsible for managing the menus. It stores references to all added widgets.

The menu can be moved, rotated, scaled, etc. by using the methods provided by the SceneGraph -class. Destroying a menu is done by simply deleting it. The destructor of the Menu -class removes automatically all added widgets from memory and from the scenegraph.

The creation of menus and widgets is done by the MenuControl -class.

Date:
24th of March 2007
Author:
Thomas Weberndorfer
Updates:

  • The menus are now created by the MenuControl -class. (23rd of April 2007)

Constructor & Destructor Documentation

Menu::Menu ( XMLNode xml  ) 

The constructor creates a new menu.

Menu::~Menu (  ) 

The destructor deletes all Widgets, which have been added to this menu.


Member Function Documentation

void Menu::addWidget ( Widget child  ) 

This method adds a widget to the menu.

Parameters:
child This is the Widget, which should be added.

Widget * Menu::getWidget ( const char *  name  ) 

This method allows retrieving a pointer to a Widget with the name equally the parameter name.

Parameters:
name This is the name of the Widget to whom a pointer is needed.
Returns:
This method returns a pointer to the Widget with the given name, or NULL if such a Widget doesn't exist in this menu.


Member Data Documentation


The documentation for this class was generated from the following files:
  • tools/libraries/3DMenu/core/Menu.h
  • tools/libraries/3DMenu/core/Menu.cpp

Generated on Wed Oct 20 16:11:58 2010 for inVRs by doxygen 1.5.8