OpenCOVER
OSGVruiColoredBackground.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_COLORED_BACKGROUND_H
9#define OSG_VRUI_COLORED_BACKGROUND_H
10
12
13#include <osg/Geode>
14#include <osg/Geometry>
15#include <osg/MatrixTransform>
16#include <osg/StateSet>
17#include <osg/Array>
18
19namespace vrui
20{
21
22class coColoredBackground;
23
30class OSGVRUIEXPORT OSGVruiColoredBackground : public OSGVruiUIContainer
31{
32public:
35
36 virtual void createGeometry();
37 virtual void resizeGeometry();
38
39 virtual void setEnabled(bool en);
40 virtual void setHighlighted(bool hl);
41
42protected:
44
46
47private:
48 //shared coord and color list
49 osg::ref_ptr<osg::Vec3Array> coord;
50 static osg::ref_ptr<osg::Vec3Array> normal;
51
52 osg::ref_ptr<osg::StateSet> state;
53 osg::ref_ptr<osg::StateSet> highlightState;
54 osg::ref_ptr<osg::StateSet> disabledState;
55
56 osg::ref_ptr<osg::Geode> geometryNode;
57 osg::ref_ptr<osg::Geometry> geometry;
58
59 osg::ref_ptr<osg::MatrixTransform> fancyDCS;
60};
61}
62#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coColoredBackground.h:24
Definition: OSGVruiColoredBackground.h:31
coColoredBackground * background
Definition: OSGVruiColoredBackground.h:45
OSGVruiColoredBackground(coColoredBackground *background)
virtual void setEnabled(bool en)
virtual void setHighlighted(bool hl)
Definition: OSGVruiUIContainer.h:18