Overview | All Modules | Tutorial | User's Guide | Programming Guide |
Previous | COVISE Online Documentation | Next |
This is the base class of all toolbox menu items. More...
#include <coToolboxMenuItem.h>
Public Member Functions | |
coToolboxMenuItem (const std::string &name) | |
Constructor. More... | |
virtual | ~coToolboxMenuItem () |
Destructor. Removes this menu item from the parent menu. More... | |
virtual coUIElement * | getUIElement () |
return the actual UI Element that represents this menu. More... | |
virtual const char * | getClassName () const |
get the Element's classname More... | |
virtual bool | isOfClassName (const char *) const |
check if the Element or any ancestor is this classname More... | |
virtual void | setActive (bool a) |
activates or deactivates the item More... | |
virtual void | doSecondActionRelease () |
Action is called via joystick. More... | |
Public Member Functions inherited from vrui::coMenuItem | |
coMenuItem (const std::string &name) | |
Constructor. More... | |
virtual | ~coMenuItem () |
Destructor. Removes this menu item from the parent menu. More... | |
virtual void | setMenuListener (coMenuListener *listener) |
Set a new menu listener to receive menu item events. More... | |
virtual coMenuListener * | getMenuListener () |
Get the menu listener to receive menu item events. More... | |
virtual void | setParentMenu (coMenu *parent) |
Set the parent menu in which this menu item is listed. More... | |
virtual void | setVisible (bool visible) |
show or hide this menu item., just removes it from the scenegraph in the default implementation, should do something better in the real implementation More... | |
virtual bool | isVisible () const |
virtual void | setAttachment (int) |
sets the attachment border More... | |
virtual const char * | getName () const |
returns the symbolic name of this menu item. More... | |
virtual coUIElement * | getUIElement () |
return the actual UI Element that represents this menu. More... | |
virtual const char * | getClassName () const |
get the Element's classname More... | |
virtual bool | isOfClassName (const char *) const |
check if the Element or any ancestor is this classname More... | |
coMenu * | getParentMenu () |
get my parent menu More... | |
void | setName (const std::string &newName, bool updateTwins=true) |
set my name - items with labels must call this when changing label More... | |
virtual void | setActive (bool a) |
functions activates or deactivates the item More... | |
virtual bool | getActive () |
return if item is active More... | |
virtual void | setLabel (const std::string &newName) |
this function may be overloaded - it is called by setName() More... | |
virtual void | selected (bool select) |
MenuItem is selected via joystick. More... | |
virtual void | doActionPress () |
Action is called via joystick. More... | |
virtual void | doActionRelease () |
Action is called via joystick. More... | |
virtual void | doSecondActionPress () |
second Action for Item More... | |
virtual void | doSecondActionRelease () |
second Action for Item More... | |
Protected Attributes | |
coMenuContainer * | menuContainer |
container to store menu elements More... | |
coColoredBackground * | background |
menu item background which changes its color when menu item is selected More... | |
Protected Attributes inherited from vrui::coMenuItem | |
bool | visible |
coMenu * | myMenu |
parent menu which contains More... | |
coMenuListener * | listener |
menu event listener, triggered More... | |
std::string | myName |
name of the item (internal More... | |
bool | active_ |
flag if item is active More... | |
This is the base class of all toolbox menu items.
It provides a container for menu elements and a label string.
vrui::coToolboxMenuItem::coToolboxMenuItem | ( | const std::string & | name | ) |
Constructor.
Creates a new menu item.
symbolicName | symbolic name and text to appear on label |
|
virtual |
Destructor. Removes this menu item from the parent menu.
|
virtual |
Action is called via joystick.
Reimplemented from vrui::coMenuItem.
|
virtual |
get the Element's classname
Reimplemented from vrui::coMenuItem.
Reimplemented in vrui::coIconButtonToolboxItem, vrui::coIconSubMenuToolboxItem, vrui::coIconToggleButtonToolboxItem, vrui::coLabelSubMenuToolboxItem, vrui::coPotiToolboxItem, vrui::coSliderToolboxItem, and vrui::coSubMenuToolboxItem.
|
virtual |
return the actual UI Element that represents this menu.
Reimplemented from vrui::coMenuItem.
|
virtual |
check if the Element or any ancestor is this classname
Reimplemented from vrui::coMenuItem.
Reimplemented in vrui::coIconButtonToolboxItem, vrui::coIconToggleButtonToolboxItem, vrui::coPotiToolboxItem, vrui::coSliderToolboxItem, vrui::coSubMenuToolboxItem, vrui::coIconSubMenuToolboxItem, and vrui::coLabelSubMenuToolboxItem.
|
virtual |
activates or deactivates the item
activates or deactivates the item and deactivates the highlight
Reimplemented from vrui::coMenuItem.
Reimplemented in vrui::coIconButtonToolboxItem, vrui::coIconToggleButtonToolboxItem, vrui::coSliderToolboxItem, and vrui::coSubMenuToolboxItem.
|
protected |
menu item background which changes its color when menu item is selected
|
protected |
container to store menu elements
Previous | Next |
Authors: Martin Aumüller, Ruth Lang, Daniela Rainer, Jürgen Schulze-Döbold, Andreas Werner, Peter Wolf, Uwe Wössner |
Copyright © 1993-2009 HLRS, 2004-2009 RRZK, 2005-2009 Visenso |
COVISE Version 6.5 Academic
|