OpenCOVER
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
15#include <util/coTypes.h>
16
17#include <OpenVRUI/util/vruiLog.h>
18
19namespace vrui
20{
21
22class OPENVRUIEXPORT vruiUIElementProvider
23{
24
25public:
27 {
28 this->element = element;
29 }
30
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
73protected:
75};
76}
77#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coUIElement.h:53
Definition: vruiTransformNode.h:18
Definition: vruiUIElementProvider.h:23
virtual float getHeight() const
Definition: vruiUIElementProvider.h:61
virtual vruiTransformNode * getDCS()=0
virtual void resizeGeometry()=0
virtual void setHighlighted(bool)
Definition: vruiUIElementProvider.h:45
virtual void setEnabled(bool)
Definition: vruiUIElementProvider.h:40
virtual float getDepth() const
Definition: vruiUIElementProvider.h:67
vruiUIElementProvider(coUIElement *element)
Definition: vruiUIElementProvider.h:26
virtual void createGeometry()=0
virtual float getWidth() const
Definition: vruiUIElementProvider.h:55
virtual void update()
Definition: vruiUIElementProvider.h:50
coUIElement * element
Definition: vruiUIElementProvider.h:74