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>
|
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...
|
|
This class provides a basic 3D slider, which is based on a texture mapped tickmark field and a round slider position indicator.
◆ OSGVruiSlider()
vrui::OSGVruiSlider::OSGVruiSlider |
( |
coSlider * |
slider | ) |
|
◆ ~OSGVruiSlider()
vrui::OSGVruiSlider::~OSGVruiSlider |
( |
| ) |
|
|
virtual |
Destructor.
The slider is removed from all parents to which it is attached.
◆ 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 |
◆ 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.
◆ coord1
osg::ref_ptr<osg::Vec3Array> vrui::OSGVruiSlider::coord1 |
|
protected |
position indicator coordinates
◆ coord2
osg::ref_ptr<osg::Vec3Array> vrui::OSGVruiSlider::coord2 |
|
protected |
◆ dialNode
osg::ref_ptr<osg::Geode> vrui::OSGVruiSlider::dialNode |
|
protected |
◆ dialNodeDisabled
osg::ref_ptr<osg::Geode> vrui::OSGVruiSlider::dialNodeDisabled |
|
protected |
◆ normal
osg::ref_ptr<osg::Vec3Array> vrui::OSGVruiSlider::normal |
|
protected |
◆ 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 |
◆ positionNodeDisabled
osg::ref_ptr<osg::Geode> vrui::OSGVruiSlider::positionNodeDisabled |
|
protected |
disabled position indicator geode
◆ slider
◆ 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: