OpenCOVER
coPotiToolboxItem.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_POTITOOLBOXITEM_H
9#define CO_POTITOOLBOXITEM_H
10
11#include <OpenVRUI/coAction.h>
14
15#include <string>
16
17namespace vrui
18{
19
20class coLabel;
21
24class OPENVRUIEXPORT coPotiToolboxItem
25 : public coToolboxMenuItem,
26 public coValuePotiActor,
27 public coAction
28{
29protected:
32
33public:
34 coPotiToolboxItem(const std::string &symbolicName,
35 float min, float max, float defaultValue,
36 vruiCOIM * = 0, const std::string & = "");
37
39
40 void setMax(float m);
41 void setMin(float m);
42
43 void setInteger(bool i);
44 void setIncrement(float incr);
45
46 float getValue() const;
47
48 int hit(vruiHit *);
49 void miss();
50
51 virtual void selected(bool);
52 virtual void doActionPress();
53 virtual void doSecondActionPress();
54
55 virtual void potiValueChanged(float, float, coValuePoti *, int context = -1);
56 virtual void potiPressed(coValuePoti *, int context = -1);
57 virtual void potiReleased(coValuePoti *, int context = -1);
58
60 virtual const char *getClassName() const;
62 virtual bool isOfClassName(const char *) const;
63};
64}
65#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coAction.h:26
Definition: coLabel.h:26
Definition: coPotiToolboxItem.h:28
virtual void doSecondActionPress()
second Action for Item
virtual void potiValueChanged(float, float, coValuePoti *, int context=-1)
virtual bool isOfClassName(const char *) const
check if the Element or any ancestor is this classname
coValuePoti * poti
actual poti interactor
Definition: coPotiToolboxItem.h:30
virtual void selected(bool)
MenuItem is selected via joystick.
virtual const char * getClassName() const
get the Element's classname
coPotiToolboxItem(const std::string &symbolicName, float min, float max, float defaultValue, vruiCOIM *=0, const std::string &="")
float getValue() const
void setIncrement(float incr)
virtual void potiReleased(coValuePoti *, int context=-1)
virtual void potiPressed(coValuePoti *, int context=-1)
coLabel * label
Definition: coPotiToolboxItem.h:31
virtual void doActionPress()
Action is called via joystick.
Definition: coToolboxMenuItem.h:26
Definition: coValuePoti.h:31
Definition: coValuePoti.h:66
Definition: vruiCollabInterface.h:28
Definition: vruiHit.h:21