OpenCOVER
coIconSubMenuToolboxItem.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_ICONSUBMENU_TOOLBOXITEM_H
9#define CO_ICONSUBMENU_TOOLBOXITEM_H
10
12#include <OpenVRUI/coButton.h>
13
19namespace vrui
20{
21
22class OPENVRUIEXPORT coIconSubMenuToolboxItem
23 : public coSubMenuToolboxItem,
24 public coButtonActor
25{
26protected:
28
29public:
30 coIconSubMenuToolboxItem(const std::string &name);
32
33 // not really used but there because of coButton Constructor :-/
34 virtual void buttonEvent(coButton *)
35 {
36 }
37
38 // only for not shadowing the coRotButton buttonEvent
39 virtual void buttonEvent(coRotButton *b)
40 {
42 }
43
44 virtual void setAttachment(int);
45
47 virtual const char *getClassName() const;
49 virtual bool isOfClassName(const char *name) const;
50
51private:
52 float smallGap, largeGap;
53};
54}
55#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Action listener for events triggered by coButton.
Definition: coButton.h:24
Definition: coButton.h:37
Definition: coButton.h:125
Definition: coIconSubMenuToolboxItem.h:25
virtual void buttonEvent(coButton *)
Definition: coIconSubMenuToolboxItem.h:34
virtual bool isOfClassName(const char *name) const
check if the Element or any ancestor is this classname
coToggleButton * myButton
Definition: coIconSubMenuToolboxItem.h:27
virtual const char * getClassName() const
get the Element's classname
virtual void buttonEvent(coRotButton *b)
Definition: coIconSubMenuToolboxItem.h:39
coIconSubMenuToolboxItem(const std::string &name)
virtual void setAttachment(int)
sets the attachment border
virtual void buttonEvent(coRotButton *button)=0
Definition: coRotButton.h:36
Definition: coSubMenuToolboxItem.h:34