9 #ifndef OSG_VRUI_SQUARE_BUTTON_GEOMETRY_H
10 #define OSG_VRUI_SQUARE_BUTTON_GEOMETRY_H
16 #include <osg/Material>
17 #include <osg/PrimitiveSet>
18 #include <osg/StateSet>
27 class coSquareButtonGeometry;
28 class OSGVruiTransformNode;
41 return 2.0f * (A + B) + C;
45 return 2.0f * (A + B) + C;
50 virtual void createGeometry();
51 virtual void resizeGeometry();
57 osg::ref_ptr<osg::Node> createGeode(
const std::string &textureName,
int style);
58 void createSharedLists();
63 osg::ref_ptr<osg::Node> pressedHighlightNode;
79 static osg::ref_ptr<osg::Vec4Array> color;
80 static osg::ref_ptr<osg::Vec3Array> coord1;
81 static osg::ref_ptr<osg::Vec3Array> coord2;
82 static osg::ref_ptr<osg::Vec3Array> coordt1;
83 static osg::ref_ptr<osg::Vec3Array> coordt2;
84 static osg::ref_ptr<osg::Vec3Array> normal1;
85 static osg::ref_ptr<osg::Vec3Array> normal2;
86 static osg::ref_ptr<osg::Vec3Array> normalt;
88 static osg::ref_ptr<osg::Vec2Array> texCoord;
90 static osg::ref_ptr<osg::DrawElementsUShort> coordIndex;
92 static osg::ref_ptr<osg::Material> textureMat;
93 static osg::ref_ptr<osg::StateSet> normalStateSet;
osg::ref_ptr< osg::Node > normalNode
normal geometry
Definition: OSGVruiSquareButtonGeometry.h:60
Definition: vruiTransformNode.h:17
Definition: vruiButtonProvider.h:20
virtual float getHeight() const
Definition: OSGVruiSquareButtonGeometry.h:43
osg::ref_ptr< osg::Node > pressedNode
pressed normal geometry
Definition: OSGVruiSquareButtonGeometry.h:61
OSGVruiTransformNode * myDCS
Definition: OSGVruiSquareButtonGeometry.h:71
ActiveGeometry
Definition: coButtonGeometry.h:32
Definition: coSquareButtonGeometry.h:22
coSquareButtonGeometry * button
Definition: OSGVruiSquareButtonGeometry.h:69
osg::ref_ptr< osg::Node > highlightNode
pressed highlighted geometry
Definition: OSGVruiSquareButtonGeometry.h:62
Definition: OSGVruiTransformNode.h:25
Definition: OSGVruiSquareButtonGeometry.h:33
osg::ref_ptr< osg::Node > disabledNode
Definition: OSGVruiSquareButtonGeometry.h:65
osg::ref_ptr< osg::Switch > switchNode
Definition: OSGVruiSquareButtonGeometry.h:67
virtual float getWidth() const
Definition: OSGVruiSquareButtonGeometry.h:39