OpenCOVER
OSGVruiPanelGeometry.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_PANEL_GEOMETRY_H
9#define OSG_VRUI_PANEL_GEOMETRY_H
10
12
13#include <osg/Geode>
14#include <osg/Geometry>
15#include <osg/Material>
16#include <osg/Texture2D>
17#include <osg/Vec3>
18
19namespace vrui
20{
21
22class OSGVRUIEXPORT OSGVruiPanelGeometry : public virtual vruiPanelGeometryProvider
23{
24public:
27 virtual void attachGeode(vruiTransformNode *node);
28 virtual float getWidth() const;
29 virtual float getHeight() const;
30 virtual float getDepth() const;
31
32 virtual void createSharedLists();
33
34private:
35 coPanelGeometry *geometry;
36
37 static float A;
38 static float B;
39 static float C;
40
41 static osg::ref_ptr<osg::Vec3Array> coord;
42 static osg::ref_ptr<osg::Vec3Array> normal;
43 static osg::ref_ptr<osg::Vec4Array> color;
44 static osg::ref_ptr<osg::Vec2Array> texcoord;
45
46 static osg::ref_ptr<osg::DrawElementsUShort> coordIndex;
47
48 static osg::ref_ptr<osg::UShortArray> normalIndex;
49
50 static osg::ref_ptr<osg::Material> textureMaterial;
51
52 osg::ref_ptr<osg::Texture2D> texture;
53};
54}
55#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coPanelGeometry.h:22
Definition: vruiPanelGeometryProvider.h:20
Definition: vruiTransformNode.h:18
Definition: OSGVruiPanelGeometry.h:23
virtual void createSharedLists()
virtual float getDepth() const
virtual float getWidth() const
OSGVruiPanelGeometry(coPanelGeometry *geometry)
virtual float getHeight() const
virtual void attachGeode(vruiTransformNode *node)