8 #ifndef OSG_VRUI_TOGGLE_BUTTON_GEOMETRY_H
9 #define OSG_VRUI_TOGGLE_BUTTON_GEOMETRY_H
15 #include <osg/StateSet>
17 #include <osg/Texture2D>
25 class coToggleButtonGeometry;
26 class OSGVruiTransformNode;
44 virtual void createGeometry();
45 virtual void resizeGeometry();
51 osg::ref_ptr<osg::Geode> createNode(
const std::string &textureName,
bool checkTexture);
53 void createSharedLists();
56 osg::ref_ptr<osg::Geode> createBox(
const std::string &textureName);
57 osg::ref_ptr<osg::Geode> createCheck(
const std::string &textureName);
62 osg::ref_ptr<osg::Node> pressedHighlightNode;
77 static osg::ref_ptr<osg::Vec3Array> coord;
78 static osg::ref_ptr<osg::Vec3Array> normal;
79 static osg::ref_ptr<osg::Vec2Array> texCoord;
81 osg::ref_ptr<osg::Texture2D> texture;
osg::ref_ptr< osg::Switch > switchNode
Definition: OSGVruiToggleButtonGeometry.h:66
osg::ref_ptr< osg::Node > normalNode
normal geometry
Definition: OSGVruiToggleButtonGeometry.h:59
virtual float getWidth() const
Definition: OSGVruiToggleButtonGeometry.h:33
Definition: vruiTransformNode.h:17
Definition: vruiButtonProvider.h:20
ActiveGeometry
Definition: coButtonGeometry.h:32
Definition: coToggleButtonGeometry.h:18
coToggleButtonGeometry * button
Definition: OSGVruiToggleButtonGeometry.h:68
osg::ref_ptr< osg::Node > highlightNode
pressed highlighted geometry
Definition: OSGVruiToggleButtonGeometry.h:61
OSGVruiTransformNode * myDCS
Definition: OSGVruiToggleButtonGeometry.h:70
Definition: OSGVruiTransformNode.h:25
virtual float getHeight() const
Definition: OSGVruiToggleButtonGeometry.h:37
Definition: OSGVruiToggleButtonGeometry.h:28
osg::ref_ptr< osg::Node > disabledNode
Definition: OSGVruiToggleButtonGeometry.h:64
osg::ref_ptr< osg::Node > pressedNode
pressed normal geometry
Definition: OSGVruiToggleButtonGeometry.h:60