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::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 setEnabled (bool)
 

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

vrui::OSGVruiLabel::OSGVruiLabel ( coLabel label)
virtual vrui::OSGVruiLabel::~OSGVruiLabel ( )
virtual

Member Function Documentation

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

Reimplemented from vrui::vruiUIElementProvider.

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

Reimplemented from vrui::vruiUIElementProvider.

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

Reimplemented from vrui::vruiUIElementProvider.

void vrui::OSGVruiLabel::makeText ( )
protected
virtual void vrui::OSGVruiLabel::resizeGeometry ( )
virtual
virtual void vrui::OSGVruiLabel::setHighlighted ( bool  highlighted)
virtual

Reimplemented from vrui::vruiUIElementProvider.

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

Reimplemented from vrui::vruiUIElementProvider.

Member Data Documentation

osg::ref_ptr<osg::StateSet> vrui::OSGVruiLabel::backgroundTextureState
protected
coLabel* vrui::OSGVruiLabel::label
protected
osg::ref_ptr<osgText::Text> vrui::OSGVruiLabel::labelText
protected

label text string in OSG format

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

components of text color (RGBA)

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: