Overview | All Modules | Tutorial | User's Guide | Programming Guide |
Previous | COVISE Online Documentation | Next |
This class provides background for GUI elements. More...
#include <OSGVruiColoredBackground.h>
Public Member Functions | |
OSGVruiColoredBackground (coColoredBackground *background) | |
Constructor. More... | |
virtual | ~OSGVruiColoredBackground () |
Destructor. More... | |
virtual void | createGeometry () |
create the geometry node More... | |
virtual void | resizeGeometry () |
virtual void | setEnabled (bool en) |
Set activation state of this background and all its children. More... | |
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 () |
vruiTransformNode * | getDCS () |
Public Member Functions inherited from vrui::vruiUIElementProvider | |
vruiUIElementProvider (coUIElement *element) | |
virtual | ~vruiUIElementProvider () |
virtual void | createGeometry ()=0 |
virtual vruiTransformNode * | getDCS ()=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 () |
create geometry elements shared by all OSGVruiColoredBackgrounds More... | |
Protected Attributes | |
coColoredBackground * | background |
Protected Attributes inherited from vrui::OSGVruiUIContainer | |
coUIContainer * | container |
Protected Attributes inherited from vrui::OSGVruiUIElement | |
OSGVruiTransformNode * | myDCS |
main DCS of this UI Element More... | |
Protected Attributes inherited from vrui::vruiUIElementProvider | |
coUIElement * | element |
This class provides background for GUI elements.
The color of this background changes according to the elements state (normal/highlighted/disabled) A background should contain only one child, use another container to layout multiple chlidren inside the frame.
vrui::OSGVruiColoredBackground::OSGVruiColoredBackground | ( | coColoredBackground * | background | ) |
Constructor.
backgroundMaterial | normal color |
highlightMaterial | highlighted color |
disableMaterial | disabled color |
|
virtual |
Destructor.
|
virtual |
create the geometry node
Implements vrui::vruiUIElementProvider.
|
protected |
create geometry elements shared by all OSGVruiColoredBackgrounds
|
virtual |
Implements vrui::vruiUIElementProvider.
|
virtual |
Set activation state of this background and all its children.
if this background is disabled, the color is always the disabled color, regardless of the highlighted state
en | true = elements enabled |
Reimplemented from vrui::vruiUIElementProvider.
|
virtual |
Reimplemented from vrui::vruiUIElementProvider.
|
protected |
Previous | Next |
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
|