OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
vruiUIElementProvider.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 VRUI_UIELEMENT_PROVIDER_H
9 #define VRUI_UIELEMENT_PROVIDER_H
10 
13 
14 #include <OpenVRUI/coUIElement.h>
15 #include <util/coTypes.h>
16 
17 #include <OpenVRUI/util/vruiLog.h>
18 
19 namespace vrui
20 {
21 
22 class OPENVRUIEXPORT vruiUIElementProvider
23 {
24 
25 public:
27  {
28  this->element = element;
29  }
30 
31  virtual ~vruiUIElementProvider();
32 
33  virtual void createGeometry() = 0;
34  virtual vruiTransformNode *getDCS() = 0;
35 
36  //virtual vruiMatrix & getTransformMat() const = 0;
37 
38  virtual void resizeGeometry() = 0;
39 
40  virtual void setEnabled(bool /*enabled*/)
41  {
42  VRUILOG("vruiUIElementProvider::setEnabled warn: stub called")
43  }
44 
45  virtual void setHighlighted(bool /*highlighted*/)
46  {
47  VRUILOG("vruiUIElementProvider::setHighlighted warn: stub called")
48  }
49 
50  virtual void update()
51  {
52  VRUILOG("vruiUIElementProvider::update warn: stub called")
53  }
54 
55  virtual float getWidth() const
56  {
57  VRUILOG("vruiUIElementProvider::getWidth warn: stub called")
58  return 0.0f;
59  }
60 
61  virtual float getHeight() const
62  {
63  VRUILOG("vruiUIElementProvider::getHeight warn: stub called")
64  return 0.0f;
65  }
66 
67  virtual float getDepth() const
68  {
69  VRUILOG("vruiUIElementProvider::getDepth warn: stub called")
70  return 0.0f;
71  }
72 
73 protected:
75 };
76 }
77 #endif
virtual float getWidth() const
Definition: vruiUIElementProvider.h:55
virtual void setHighlighted(bool)
Definition: vruiUIElementProvider.h:45
coUIElement * element
Definition: vruiUIElementProvider.h:74
virtual void update()
Definition: vruiUIElementProvider.h:50
Definition: vruiTransformNode.h:17
virtual void setEnabled(bool)
Definition: vruiUIElementProvider.h:40
vruiUIElementProvider(coUIElement *element)
Definition: vruiUIElementProvider.h:26
virtual float getHeight() const
Definition: vruiUIElementProvider.h:61
Definition: coUIElement.h:52
virtual float getDepth() const
Definition: vruiUIElementProvider.h:67
Definition: vruiUIElementProvider.h:22