#ifndef _MENUCONTROL_H_ #define _MENUCONTROL_H_ /*************************************************************************** * Copyright (C) 2007 by Thomas Webernorfer * * thomas_weberndorfer@hotmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "Menu.h" #include "ObjectStore.h" #include "SceneGraph.h" /** * \brief This class controlls the 3dMenu. * * The setup of the 3dMenu is defined by an XML-file. This class * provides static methods for loading these XML-files and modifying * the loaded menus and widgets. * * This class handles also the input-events, which should be passed to the * 3dMenu-library, using the method MenuControl::menuButton( int state, Ray &ray). * * The method MenuControl::getUniversalRootPtr() returns the * root-node of all menus, which has to be added to the application scenegraph. * The coordinate-system of the node, to which the menu-root-node has been added, * has to match with the coordinate-system of the parameter ray of the method * void MenuControl::menuButton( int state, Ray &ray). * * @date 30rd of April 2007 * @author Thomas Weberndorfer * **/ class MenuControl { private: // This object stores references to the menues managed by the MenuControl. static ObjectStore