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::OSGVruiLabel Class Reference

Label element. More...

#include <OSGVruiLabel.h>

Inheritance diagram for vrui::OSGVruiLabel:
vrui::OSGVruiUIElement vrui::vruiUIElementProvider

Public Member Functions

 OSGVruiLabel (coLabel *label)
 Constructor. More...
 
virtual ~OSGVruiLabel ()
 Destructor. More...
 
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 ()
 Private method to generate text string and attach it to a node. More...
 

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)

Constructor.

◆ ~OSGVruiLabel()

vrui::OSGVruiLabel::~OSGVruiLabel ( )
virtual

Destructor.

Member Function Documentation

◆ createGeometry()

void vrui::OSGVruiLabel::createGeometry ( )
virtual

◆ getDepth()

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

Reimplemented from vrui::vruiUIElementProvider.

◆ getHeight()

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

Reimplemented from vrui::vruiUIElementProvider.

◆ getWidth()

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

Reimplemented from vrui::vruiUIElementProvider.

◆ makeText()

void vrui::OSGVruiLabel::makeText ( )
protected

Private method to generate text string and attach it to a node.

◆ resizeGeometry()

void vrui::OSGVruiLabel::resizeGeometry ( )
virtual

◆ setHighlighted()

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

Reimplemented from vrui::vruiUIElementProvider.

◆ update()

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 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