OpenCOVER
OSGVruiTextButtonGeometry.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_TEXT_BUTTON_GEOMETRY_H
9#define OSG_VRUI_TEXT_BUTTON_GEOMETRY_H
10
13
15
16#include <osg/Switch>
17#include <osg/StateSet>
18#include <osg/Material>
19#include <osg/Sequence>
20#include <osg/Texture>
21#include <osgText/Text>
22
23#include <string>
24
25namespace vrui
26{
27
29{
30public:
33
35
36 virtual void createGeometry();
37 virtual void resizeGeometry();
38
40
41 virtual float getWidth() const;
42 virtual float getHeight() const;
43
44protected:
45 std::string textString;
46 osg::ref_ptr<osg::Node> normalNode;
47 osg::ref_ptr<osg::Node> pressedNode;
48 osg::ref_ptr<osg::Node> highlightNode;
50 osg::ref_ptr<osg::Node> pressedHighlightNode;
51
52 osg::ref_ptr<osg::Switch> switchNode;
53
55
56 osg::ref_ptr<osg::Node> createNode(bool pressed, bool highlighted);
57 osg::Vec4 color1, color2;
58};
59}
60#endif
collaborative interface manager
Definition: coVRCommunication.h:41
ActiveGeometry
Definition: coButtonGeometry.h:33
Definition: coTextButtonGeometry.h:19
Definition: vruiButtonProvider.h:21
Definition: vruiTransformNode.h:18
Definition: OSGVruiTextButtonGeometry.h:29
virtual vruiTransformNode * getDCS()
osg::ref_ptr< osg::Switch > switchNode
Definition: OSGVruiTextButtonGeometry.h:52
osg::ref_ptr< osg::Node > normalNode
normal geometry
Definition: OSGVruiTextButtonGeometry.h:46
virtual float getWidth() const
osg::ref_ptr< osg::Node > createNode(bool pressed, bool highlighted)
virtual void switchGeometry(coButtonGeometry::ActiveGeometry active)
OSGVruiTextButtonGeometry(coTextButtonGeometry *geometry)
osg::Vec4 color1
Definition: OSGVruiTextButtonGeometry.h:57
virtual float getHeight() const
osg::ref_ptr< osg::Node > pressedHighlightNode
Definition: OSGVruiTextButtonGeometry.h:50
vruiTransformNode * myDCS
Definition: OSGVruiTextButtonGeometry.h:54
std::string textString
Definition: OSGVruiTextButtonGeometry.h:45
osg::ref_ptr< osg::Node > highlightNode
pressed highlighted geometry
Definition: OSGVruiTextButtonGeometry.h:48
osg::ref_ptr< osg::Node > pressedNode
pressed normal geometry
Definition: OSGVruiTextButtonGeometry.h:47