8#ifndef OSG_VRUI_TOGGLE_BUTTON_GEOMETRY_H
9#define OSG_VRUI_TOGGLE_BUTTON_GEOMETRY_H
15#include <osg/StateSet>
17#include <osg/Texture2D>
25class coToggleButtonGeometry;
26class OSGVruiTransformNode;
51 osg::ref_ptr<osg::Geode>
createNode(
const std::string &textureName,
bool checkTexture);
56 osg::ref_ptr<osg::Geode>
createBox(
const std::string &textureName);
57 osg::ref_ptr<osg::Geode>
createCheck(
const std::string &textureName);
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;
collaborative interface manager
Definition: coVRCommunication.h:41
ActiveGeometry
Definition: coButtonGeometry.h:33
Definition: coToggleButtonGeometry.h:19
Definition: vruiButtonProvider.h:21
Definition: vruiTransformNode.h:18
Definition: OSGVruiToggleButtonGeometry.h:29
virtual void resizeGeometry()
OSGVruiTransformNode * myDCS
Definition: OSGVruiToggleButtonGeometry.h:70
osg::ref_ptr< osg::Node > highlightNode
pressed highlighted geometry
Definition: OSGVruiToggleButtonGeometry.h:61
virtual float getHeight() const
Definition: OSGVruiToggleButtonGeometry.h:37
osg::ref_ptr< osg::Geode > createBox(const std::string &textureName)
osg::ref_ptr< osg::Geode > createNode(const std::string &textureName, bool checkTexture)
osg::ref_ptr< osg::Geode > createCheck(const std::string &textureName)
virtual void createGeometry()
OSGVruiToggleButtonGeometry(coToggleButtonGeometry *button)
virtual float getWidth() const
Definition: OSGVruiToggleButtonGeometry.h:33
virtual vruiTransformNode * getDCS()
osg::ref_ptr< osg::Node > disabledNode
Definition: OSGVruiToggleButtonGeometry.h:64
osg::ref_ptr< osg::Node > pressedNode
pressed normal geometry
Definition: OSGVruiToggleButtonGeometry.h:60
osg::ref_ptr< osg::Node > pressedHighlightNode
Definition: OSGVruiToggleButtonGeometry.h:63
coToggleButtonGeometry * button
Definition: OSGVruiToggleButtonGeometry.h:68
virtual ~OSGVruiToggleButtonGeometry()
osg::ref_ptr< osg::Switch > switchNode
Definition: OSGVruiToggleButtonGeometry.h:66
osg::ref_ptr< osg::Node > normalNode
normal geometry
Definition: OSGVruiToggleButtonGeometry.h:59
virtual void switchGeometry(coButtonGeometry::ActiveGeometry active)
Definition: OSGVruiTransformNode.h:26