OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>
13 #include <OpenVRUI/coValuePoti.h>
14 
15 #include <string>
16 
17 namespace vrui
18 {
19 
20 class coLabel;
21 
24 class OPENVRUIEXPORT coPotiToolboxItem
25  : public coToolboxMenuItem,
26  public coValuePotiActor,
27  public coAction
28 {
29 protected:
32 
33 public:
34  coPotiToolboxItem(const std::string &symbolicName,
35  float min, float max, float defaultValue,
36  vruiCOIM * = 0, const std::string & = "");
37 
38  virtual ~coPotiToolboxItem();
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
Definition: vruiHit.h:20
Definition: vruiCollabInterface.h:27
coValuePoti * poti
actual poti interactor
Definition: coPotiToolboxItem.h:30
Definition: coAction.h:25
Definition: coLabel.h:25
Definition: coToolboxMenuItem.h:24
coLabel * label
Definition: coPotiToolboxItem.h:31
Definition: coPotiToolboxItem.h:24
Definition: coValuePoti.h:30
Definition: coValuePoti.h:61