OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vrui::OSGVruiSlider Class Reference

#include <OSGVruiSlider.h>

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

Public Member Functions

 OSGVruiSlider (coSlider *slider)
 
virtual ~OSGVruiSlider ()
 
void createGeometry ()
 
void resizeGeometry ()
 
void update ()
 
- Public Member Functions inherited from vrui::OSGVruiUIElement
 OSGVruiUIElement (coUIElement *element)
 
virtual ~OSGVruiUIElement ()
 
vruiTransformNodegetDCS ()
 
- Public Member Functions inherited from vrui::vruiUIElementProvider
 vruiUIElementProvider (coUIElement *element)
 
virtual ~vruiUIElementProvider ()
 
virtual void setEnabled (bool)
 
virtual void setHighlighted (bool)
 
virtual float getWidth () const
 
virtual float getHeight () const
 
virtual float getDepth () const
 

Protected Member Functions

void updateSlider ()
 
void updateDial ()
 

Protected Attributes

osg::ref_ptr
< osg::MatrixTransform > 
sliderTransform
 < DCS of slider position indicator More...
 
osg::ref_ptr< osg::Vec3Array > coord1
 position indicator coordinates More...
 
osg::ref_ptr< osg::Vec3Array > coord2
 dial coordinates More...
 
osg::ref_ptr< osg::Vec3Array > normal
 slider textures normal More...
 
osg::ref_ptr< osg::Vec2Array > texCoord1
 texture coordinates of slider position indicator More...
 
osg::ref_ptr< osg::Vec2Array > texCoord2
 texture coordinates of dial More...
 
osg::ref_ptr< osg::Geode > positionNode
 position indicator geode More...
 
osg::ref_ptr< osg::Geode > dialNode
 dial geode More...
 
osg::ref_ptr< osg::Geode > textNode
 
osg::ref_ptr< osg::Geode > positionNodeDisabled
 disabled position indicator geode More...
 
osg::ref_ptr< osg::Geode > dialNodeDisabled
 disabled dial geode More...
 
osg::ref_ptr< osg::Switch > switchPosition
 
osg::ref_ptr< osg::Switch > switchDial
 
osg::ref_ptr< osgText::Text > numberText
 OSG string for slider value. More...
 
coSliderslider
 
- Protected Attributes inherited from vrui::OSGVruiUIElement
OSGVruiTransformNodemyDCS
 main DCS of this UI Element More...
 
- Protected Attributes inherited from vrui::vruiUIElementProvider
coUIElementelement
 

Detailed Description

This class provides a basic 3D slider, which is based on a texture mapped tickmark field and a round slider position indicator.

Constructor & Destructor Documentation

vrui::OSGVruiSlider::OSGVruiSlider ( coSlider slider)
virtual vrui::OSGVruiSlider::~OSGVruiSlider ( )
virtual

Member Function Documentation

void vrui::OSGVruiSlider::createGeometry ( )
virtual
void vrui::OSGVruiSlider::resizeGeometry ( )
virtual
void vrui::OSGVruiSlider::update ( )
virtual

Reimplemented from vrui::vruiUIElementProvider.

void vrui::OSGVruiSlider::updateDial ( )
protected
void vrui::OSGVruiSlider::updateSlider ( )
protected

Member Data Documentation

osg::ref_ptr<osg::Vec3Array> vrui::OSGVruiSlider::coord1
protected

position indicator coordinates

osg::ref_ptr<osg::Vec3Array> vrui::OSGVruiSlider::coord2
protected

dial coordinates

osg::ref_ptr<osg::Geode> vrui::OSGVruiSlider::dialNode
protected

dial geode

osg::ref_ptr<osg::Geode> vrui::OSGVruiSlider::dialNodeDisabled
protected

disabled dial geode

osg::ref_ptr<osg::Vec3Array> vrui::OSGVruiSlider::normal
protected

slider textures normal

osg::ref_ptr<osgText::Text> vrui::OSGVruiSlider::numberText
protected

OSG string for slider value.

osg::ref_ptr<osg::Geode> vrui::OSGVruiSlider::positionNode
protected

position indicator geode

osg::ref_ptr<osg::Geode> vrui::OSGVruiSlider::positionNodeDisabled
protected

disabled position indicator geode

coSlider* vrui::OSGVruiSlider::slider
protected
osg::ref_ptr<osg::MatrixTransform> vrui::OSGVruiSlider::sliderTransform
protected

< DCS of slider position indicator

osg::ref_ptr<osg::Switch> vrui::OSGVruiSlider::switchDial
protected
osg::ref_ptr<osg::Switch> vrui::OSGVruiSlider::switchPosition
protected
osg::ref_ptr<osg::Vec2Array> vrui::OSGVruiSlider::texCoord1
protected

texture coordinates of slider position indicator

osg::ref_ptr<osg::Vec2Array> vrui::OSGVruiSlider::texCoord2
protected

texture coordinates of dial

osg::ref_ptr<osg::Geode> vrui::OSGVruiSlider::textNode
protected

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