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

#include <OSGVruiTextureRectBackground.h>

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

Public Member Functions

 OSGVruiTextureRectBackground (coTextureRectBackground *background)
 
virtual ~OSGVruiTextureRectBackground ()
 
virtual void createGeometry ()
 
virtual void resizeGeometry ()
 
virtual void update ()
 
virtual void setEnabled (bool en)
 
virtual void setHighlighted (bool hl)
 
- Public Member Functions inherited from vrui::OSGVruiUIContainer
 OSGVruiUIContainer (coUIContainer *container)
 
virtual ~OSGVruiUIContainer ()
 
- 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 createSharedLists ()
 
void rescaleTexture ()
 
void createTexturesFromFiles ()
 
void createTexturesFromArrays (uint *normalImage, int comp, int ns, int nt, int nr)
 

Protected Attributes

coTextureRectBackgroundbackground
 
coTextureRectBackground::TextureSettex
 
- Protected Attributes inherited from vrui::OSGVruiUIContainer
coUIContainercontainer
 
- 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 background for GUI elements. This class is specifically made for rectangular (non-power of 2) textures, which may me procedurraly updated. It is hardwired to osg::TextureRectangle, no abstraction!

Constructor & Destructor Documentation

◆ OSGVruiTextureRectBackground()

vrui::OSGVruiTextureRectBackground::OSGVruiTextureRectBackground ( coTextureRectBackground background)

◆ ~OSGVruiTextureRectBackground()

virtual vrui::OSGVruiTextureRectBackground::~OSGVruiTextureRectBackground ( )
virtual

Member Function Documentation

◆ createGeometry()

virtual void vrui::OSGVruiTextureRectBackground::createGeometry ( )
virtual

◆ createSharedLists()

void vrui::OSGVruiTextureRectBackground::createSharedLists ( )
protected

◆ createTexturesFromArrays()

void vrui::OSGVruiTextureRectBackground::createTexturesFromArrays ( uint *  normalImage,
int  comp,
int  ns,
int  nt,
int  nr 
)
protected

◆ createTexturesFromFiles()

void vrui::OSGVruiTextureRectBackground::createTexturesFromFiles ( )
protected

◆ rescaleTexture()

void vrui::OSGVruiTextureRectBackground::rescaleTexture ( )
protected

◆ resizeGeometry()

virtual void vrui::OSGVruiTextureRectBackground::resizeGeometry ( )
virtual

◆ setEnabled()

virtual void vrui::OSGVruiTextureRectBackground::setEnabled ( bool  en)
virtual

Reimplemented from vrui::vruiUIElementProvider.

◆ setHighlighted()

virtual void vrui::OSGVruiTextureRectBackground::setHighlighted ( bool  hl)
virtual

Reimplemented from vrui::vruiUIElementProvider.

◆ update()

virtual void vrui::OSGVruiTextureRectBackground::update ( )
virtual

Reimplemented from vrui::vruiUIElementProvider.

Member Data Documentation

◆ background

coTextureRectBackground* vrui::OSGVruiTextureRectBackground::background
protected

◆ tex

coTextureRectBackground::TextureSet* vrui::OSGVruiTextureRectBackground::tex
protected

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