OpenCOVER
OSGVruiFlatPanelGeometry.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_FLAT_PANEL_GEOMETRY_H
9#define OSG_VRUI_FLAT_PANEL_GEOMETRY_H
10
12
14
15#include <osg/Array>
16
17namespace vrui
18{
19
20class coFlatPanelGeometry;
21
23{
24public:
27
28 virtual void attachGeode(vruiTransformNode *node);
29 virtual float getWidth() const;
30 virtual float getHeight() const;
31 virtual float getDepth() const;
32
33protected:
34 virtual void createSharedLists();
35
36private:
37 //shared coord and color list
38 static float A;
39 static float B;
40 //static osg::ref_ptr<osg::Vec4Array> color;
41 static osg::ref_ptr<osg::Vec3Array> coord;
42 static osg::ref_ptr<osg::Vec3Array> normal;
43
44 coUIElement::Material backgroundMaterial;
45 coFlatPanelGeometry *panelGeometry;
46};
47}
48#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coFlatPanelGeometry.h:18
Material
Color definitions, to be used whenever a material is needed.
Definition: coUIElement.h:66
Definition: vruiPanelGeometryProvider.h:20
Definition: vruiTransformNode.h:18
Definition: OSGVruiFlatPanelGeometry.h:23
virtual float getHeight() const
virtual float getWidth() const
OSGVruiFlatPanelGeometry(coFlatPanelGeometry *geometry)
virtual float getDepth() const
virtual void attachGeode(vruiTransformNode *node)