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

#include <OSGVruiLabel.h>

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

Public Member Functions

 OSGVruiLabel (coLabel *label)
 
virtual ~OSGVruiLabel ()
 
virtual void createGeometry ()
 
virtual void resizeGeometry ()
 
virtual void update ()
 
virtual float getWidth () const
 
virtual float getHeight () const
 
virtual float getDepth () const
 
virtual void setHighlighted (bool highlighted)
 
- 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 makeText ()
 

Protected Attributes

coLabellabel
 
osg::Vec4 textColor
 components of text color (RGBA) More...
 
osg::Vec4 textColorHL
 components of text color when highlighted (RGBA) More...
 
osg::ref_ptr< osg::StateSet > backgroundTextureState
 
osg::ref_ptr< osgText::Text > labelText
 label text string in OSG format More...
 
- Protected Attributes inherited from vrui::OSGVruiUIElement
OSGVruiTransformNodemyDCS
 main DCS of this UI Element More...
 
- Protected Attributes inherited from vrui::vruiUIElementProvider
coUIElementelement
 

Detailed Description

Label element. A label consists of a text string and a background texture.

Constructor & Destructor Documentation

◆ OSGVruiLabel()

vrui::OSGVruiLabel::OSGVruiLabel ( coLabel label)

◆ ~OSGVruiLabel()

virtual vrui::OSGVruiLabel::~OSGVruiLabel ( )
virtual

Member Function Documentation

◆ createGeometry()

virtual void vrui::OSGVruiLabel::createGeometry ( )
virtual

◆ getDepth()

virtual float vrui::OSGVruiLabel::getDepth ( ) const
virtual

Reimplemented from vrui::vruiUIElementProvider.

◆ getHeight()

virtual float vrui::OSGVruiLabel::getHeight ( ) const
virtual

Reimplemented from vrui::vruiUIElementProvider.

◆ getWidth()

virtual float vrui::OSGVruiLabel::getWidth ( ) const
virtual

Reimplemented from vrui::vruiUIElementProvider.

◆ makeText()

void vrui::OSGVruiLabel::makeText ( )
protected

◆ resizeGeometry()

virtual void vrui::OSGVruiLabel::resizeGeometry ( )
virtual

◆ setHighlighted()

virtual void vrui::OSGVruiLabel::setHighlighted ( bool  highlighted)
virtual

Reimplemented from vrui::vruiUIElementProvider.

◆ update()

virtual void vrui::OSGVruiLabel::update ( )
virtual

Reimplemented from vrui::vruiUIElementProvider.

Member Data Documentation

◆ backgroundTextureState

osg::ref_ptr<osg::StateSet> vrui::OSGVruiLabel::backgroundTextureState
protected

◆ label

coLabel* vrui::OSGVruiLabel::label
protected

◆ labelText

osg::ref_ptr<osgText::Text> vrui::OSGVruiLabel::labelText
protected

label text string in OSG format

◆ textColor

osg::Vec4 vrui::OSGVruiLabel::textColor
protected

components of text color (RGBA)

◆ textColorHL

osg::Vec4 vrui::OSGVruiLabel::textColorHL
protected

components of text color when highlighted (RGBA)

Geostate of background texture


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