OpenCOVER
OSGVruiValuePoti.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 OSG_VRUI_VALUE_POTI_H
9#define OSG_VRUI_VALUE_POTI_H
10
12
13#include <osg/Geode>
14#include <osg/MatrixTransform>
15#include <osg/Switch>
16#include <osgText/Text>
17
18namespace vrui
19{
20
21class coValuePoti;
22class OSGVruiTransformNode;
23
24class OSGVRUIEXPORT OSGVruiValuePoti : public OSGVruiUIElement
25{
26public:
29
32
33 void update();
34
35protected:
37
39 osg::ref_ptr<osg::MatrixTransform> potiTransform;
41 osg::ref_ptr<osg::MatrixTransform> textTransform;
42
43 osg::ref_ptr<osgText::Text> text;
44 osg::ref_ptr<osg::Geode> textNode;
45
46 osg::ref_ptr<osg::Switch> stateSwitch;
47
48 void initText();
49 osg::ref_ptr<osg::Geode> createPanelNode(const std::string &);
50
51private:
52 float oldValue;
53 std::string oldButtonText;
54 bool oldEnabled;
55};
56}
57#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coValuePoti.h:66
Definition: OSGVruiUIElement.h:21
Definition: OSGVruiValuePoti.h:25
osg::ref_ptr< osg::Geode > textNode
Representation of value display text.
Definition: OSGVruiValuePoti.h:44
osg::ref_ptr< osgText::Text > text
Definition: OSGVruiValuePoti.h:43
osg::ref_ptr< osg::Switch > stateSwitch
Switch node to switch between enabled and disabled geometry.
Definition: OSGVruiValuePoti.h:46
OSGVruiValuePoti(coValuePoti *poti)
osg::ref_ptr< osg::MatrixTransform > potiTransform
description text orientation
Definition: OSGVruiValuePoti.h:39
coValuePoti * poti
button orientation
Definition: OSGVruiValuePoti.h:36
osg::ref_ptr< osg::MatrixTransform > textTransform
Definition: OSGVruiValuePoti.h:41
osg::ref_ptr< osg::Geode > createPanelNode(const std::string &)