Overview | All Modules | Tutorial | User's Guide | Programming Guide
Previous

COVISE Online Documentation

Next

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

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

#include <OSGVruiSlider.h>

Inheritance diagram for vrui::OSGVruiSlider:
vrui::OSGVruiUIElement vrui::vruiUIElementProvider

Public Member Functions

 OSGVruiSlider (coSlider *slider)
 
virtual ~OSGVruiSlider ()
 Destructor. More...
 
void createGeometry ()
 
void resizeGeometry ()
 This method is called whenever the GUI element containing the slider changes its size. More...
 
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 createGeometry ()=0
 
virtual vruiTransformNodegetDCS ()=0
 
virtual void resizeGeometry ()=0
 
virtual void setEnabled (bool)
 
virtual void setHighlighted (bool)
 
virtual void update ()
 
virtual float getWidth () const
 
virtual float getHeight () const
 
virtual float getDepth () const
 

Protected Member Functions

void updateSlider ()
 This routine resets the location of the position indicator according to the current slider value. More...
 
void updateDial ()
 This routine regenerates the texture mapping for the dial. More...
 

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

◆ OSGVruiSlider()

vrui::OSGVruiSlider::OSGVruiSlider ( coSlider slider)

◆ ~OSGVruiSlider()

vrui::OSGVruiSlider::~OSGVruiSlider ( )
virtual

Destructor.

The slider is removed from all parents to which it is attached.

Member Function Documentation

◆ createGeometry()

void vrui::OSGVruiSlider::createGeometry ( )
virtual

◆ resizeGeometry()

void vrui::OSGVruiSlider::resizeGeometry ( )
virtual

This method is called whenever the GUI element containing the slider changes its size.

The method resizes dial and position indicator and recomputes the respective Geodes.

Implements vrui::vruiUIElementProvider.

◆ update()

void vrui::OSGVruiSlider::update ( )
virtual

Reimplemented from vrui::vruiUIElementProvider.

◆ updateDial()

void vrui::OSGVruiSlider::updateDial ( )
protected

This routine regenerates the texture mapping for the dial.

◆ updateSlider()

void vrui::OSGVruiSlider::updateSlider ( )
protected

This routine resets the location of the position indicator according to the current slider value.

Member Data Documentation

◆ coord1

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

position indicator coordinates

◆ coord2

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

dial coordinates

◆ dialNode

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

dial geode

◆ dialNodeDisabled

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

disabled dial geode

◆ normal

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

slider textures normal

◆ numberText

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

OSG string for slider value.

◆ positionNode

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

position indicator geode

◆ positionNodeDisabled

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

disabled position indicator geode

◆ slider

coSlider* vrui::OSGVruiSlider::slider
protected

◆ sliderTransform

osg::ref_ptr<osg::MatrixTransform> vrui::OSGVruiSlider::sliderTransform
protected

< DCS of slider position indicator

◆ switchDial

osg::ref_ptr<osg::Switch> vrui::OSGVruiSlider::switchDial
protected

◆ switchPosition

osg::ref_ptr<osg::Switch> vrui::OSGVruiSlider::switchPosition
protected

◆ texCoord1

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

texture coordinates of slider position indicator

◆ texCoord2

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

texture coordinates of dial

◆ textNode

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

The documentation for this class was generated from the following files:
PreviousNext

Authors: Martin Aumüller, Ruth Lang, Daniela Rainer, Jürgen Schulze-Döbold, Andreas Werner, Peter Wolf, Uwe Wössner
Copyright © 1993-2009 HLRS, 2004-2009 RRZK, 2005-2009 Visenso
COVISE Version 6.5 Academic