OpenCOVER
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vrui::OSGVruiRectButtonGeometry Class Reference

#include <OSGVruiRectButtonGeometry.h>

Inheritance diagram for vrui::OSGVruiRectButtonGeometry:
Inheritance graph
[legend]
Collaboration diagram for vrui::OSGVruiRectButtonGeometry:
Collaboration graph
[legend]

Public Member Functions

 OSGVruiRectButtonGeometry (coRectButtonGeometry *button)
 
virtual ~OSGVruiRectButtonGeometry ()
 
virtual void switchGeometry (coButtonGeometry::ActiveGeometry active)
 
virtual float getWidth () const
 
virtual float getHeight () const
 
virtual void createGeometry ()
 
virtual void resizeGeometry ()
 
virtual vruiTransformNodegetDCS ()
 
- Public Member Functions inherited from vrui::vruiButtonProvider
 vruiButtonProvider (coButtonGeometry *element)
 
virtual ~vruiButtonProvider ()
 
virtual void switchGeometry (coButtonGeometry::ActiveGeometry active)=0
 
virtual void createGeometry ()=0
 
virtual void resizeGeometry ()=0
 
virtual float getWidth () const =0
 
virtual float getHeight () const =0
 
virtual void setRotation (float)
 
virtual vruiTransformNodegetDCS ()=0
 

Protected Member Functions

void createSharedLists ()
 creates the base button polygon More...
 
osg::ref_ptr< osg::Node > createGeode (const std::string &textureName, int style)
 

Protected Attributes

osg::ref_ptr< osg::Node > normalNode
 normal geometry More...
 
osg::ref_ptr< osg::Node > pressedNode
 pressed normal geometry More...
 
osg::ref_ptr< osg::Node > highlightNode
 pressed highlighted geometry More...
 
osg::ref_ptr< osg::Node > pressedHighlightNode
 
osg::ref_ptr< osg::Switch > switchNode
 
coRectButtonGeometrybutton
 
OSGVruiTransformNodemyDCS
 
- Protected Attributes inherited from vrui::vruiButtonProvider
coButtonGeometryelement
 

Detailed Description

this class implements a rect, textured button

Constructor & Destructor Documentation

◆ OSGVruiRectButtonGeometry()

vrui::OSGVruiRectButtonGeometry::OSGVruiRectButtonGeometry ( coRectButtonGeometry button)

◆ ~OSGVruiRectButtonGeometry()

virtual vrui::OSGVruiRectButtonGeometry::~OSGVruiRectButtonGeometry ( )
virtual

Member Function Documentation

◆ createGeode()

osg::ref_ptr< osg::Node > vrui::OSGVruiRectButtonGeometry::createGeode ( const std::string &  textureName,
int  style 
)
protected

◆ createGeometry()

virtual void vrui::OSGVruiRectButtonGeometry::createGeometry ( )
virtual

◆ createSharedLists()

void vrui::OSGVruiRectButtonGeometry::createSharedLists ( )
protected

creates the base button polygon

creates shared coordinate arrays

◆ getDCS()

virtual vruiTransformNode * vrui::OSGVruiRectButtonGeometry::getDCS ( )
virtual

◆ getHeight()

virtual float vrui::OSGVruiRectButtonGeometry::getHeight ( ) const
inlinevirtual

◆ getWidth()

virtual float vrui::OSGVruiRectButtonGeometry::getWidth ( ) const
inlinevirtual

◆ resizeGeometry()

virtual void vrui::OSGVruiRectButtonGeometry::resizeGeometry ( )
virtual

◆ switchGeometry()

virtual void vrui::OSGVruiRectButtonGeometry::switchGeometry ( coButtonGeometry::ActiveGeometry  active)
virtual

Member Data Documentation

◆ button

coRectButtonGeometry* vrui::OSGVruiRectButtonGeometry::button
protected

◆ highlightNode

osg::ref_ptr<osg::Node> vrui::OSGVruiRectButtonGeometry::highlightNode
protected

pressed highlighted geometry

highlighted geometry

◆ myDCS

OSGVruiTransformNode* vrui::OSGVruiRectButtonGeometry::myDCS
protected

◆ normalNode

osg::ref_ptr<osg::Node> vrui::OSGVruiRectButtonGeometry::normalNode
protected

normal geometry

◆ pressedHighlightNode

osg::ref_ptr<osg::Node> vrui::OSGVruiRectButtonGeometry::pressedHighlightNode
protected

◆ pressedNode

osg::ref_ptr<osg::Node> vrui::OSGVruiRectButtonGeometry::pressedNode
protected

pressed normal geometry

◆ switchNode

osg::ref_ptr<osg::Switch> vrui::OSGVruiRectButtonGeometry::switchNode
protected

The documentation for this class was generated from the following file: