OpenCOVER
coToolboxMenuItem.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef CO_TOOLBOXMENUITEM_H
9#define CO_TOOLBOXMENUITEM_H
10
11#include <OpenVRUI/coMenuItem.h>
12#include <string>
13
14namespace vrui
15{
16
17class coMenuContainer;
18class coColoredBackground;
19
24class OPENVRUIEXPORT coToolboxMenuItem
25 : public coMenuItem
26{
27protected:
30
31public:
32 coToolboxMenuItem(const std::string &name);
35
37 virtual const char *getClassName() const;
39 virtual bool isOfClassName(const char *) const;
40
42 virtual void setActive(bool a);
43 virtual void doSecondActionRelease();
44};
45}
46#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coColoredBackground.h:24
Definition: coMenuContainer.h:20
Definition: coMenuItem.h:45
Definition: coToolboxMenuItem.h:26
coToolboxMenuItem(const std::string &name)
coColoredBackground * background
menu item background which changes its color when menu item is selected
Definition: coToolboxMenuItem.h:29
virtual bool isOfClassName(const char *) const
check if the Element or any ancestor is this classname
coMenuContainer * menuContainer
container to store menu elements
Definition: coToolboxMenuItem.h:28
virtual coUIElement * getUIElement()
virtual const char * getClassName() const
get the Element's classname
virtual void setActive(bool a)
activates or deactivates the item
virtual void doSecondActionRelease()
Action is called via joystick.
Definition: coUIElement.h:53