![]() |
VR-Forces 4.3 Class Documentation
|
The osg widget class is a distributed osg based widget. More...

Public Member Functions | |
| DtOsgWidget (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtOsgWidget () |
| DTOR. | |
| virtual void | setParentId (DtUniqueID id) |
| Set the parent id. | |
| virtual void | setOverlay (unsigned int layer) |
| Set the layer within the widget's window. | |
| virtual void | setRotation (float) |
| Sets the rotation of the widget. Rotation is in radians. | |
| virtual float | getRotation () const |
| Returns the rotation. | |
| unsigned int | overlay () const |
| Get the overlay. | |
| virtual void | setOrderGroup (unsigned int group) |
| Sets the overlay of the widget. | |
| virtual unsigned int | orderGroup () const |
| Gets the overlay of the widget. | |
| virtual void | setPosition (float x, float y, float z, float w=0) |
| Set the position of the widget in screen space. | |
| virtual void | setBackgroundImage (const std::string &filename) |
| Set the background image. | |
| virtual void | setBackgroundImage (const std::string &filename, float left, float right, float bottom, float top) |
| Set the background image with uv. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the widget. | |
| virtual void | setOrigin (float originX, float originY) |
| Sets the origin location, by default it is 0,0. | |
| virtual void | setSize (float w, float h) |
| Sets the size of the widget in overlay coordinate space. | |
| virtual void | setPadding (float paddingX, float paddingY) |
| Sets the size of the widget in overlay coordinate space. | |
| virtual void | setModelDefinition (const std::string &str) |
| Set the widget's model definition ("theme") | |
| virtual void | setEventsEnabled (bool enabled) |
| Enable or disable event handling for this widget. | |
| virtual void | setVisible (bool visible) |
| Set the widget visible or hidden. | |
Public Member Functions inherited from makVrv::DtWidget | |
| DtWidget (DtDe &de, DtUniqueID id) | |
| virtual | ~DtWidget () |
Protected Attributes | |
| osg::ref_ptr< osg::Texture > | myTexture |
| DtSprite * | mySprite |
| unsigned int | myLayer |
| unsigned int | myGroup |
| float | myRotation |
Protected Attributes inherited from makVrv::DtWidget | |
| DtDe & | myDe |
| DtUniqueID | myId |
| DtUniqueID | myParentId |
The osg widget class is a distributed osg based widget.
| makVrv::DtOsgWidget::DtOsgWidget | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the parent id.
Reimplemented from makVrv::DtWidget.
|
virtual |
Set the layer within the widget's window.
Implements makVrv::DtWidget.
|
virtual |
Sets the rotation of the widget. Rotation is in radians.
Implements makVrv::DtWidget.
|
virtual |
Returns the rotation.
|
virtual |
Get the overlay.
Implements makVrv::DtWidget.
|
virtual |
Sets the overlay of the widget.
Implements makVrv::DtWidget.
|
virtual |
Gets the overlay of the widget.
Implements makVrv::DtWidget.
|
virtual |
Set the position of the widget in screen space.
Implements makVrv::DtWidget.
|
virtual |
Set the background image.
Implements makVrv::DtWidget.
|
virtual |
Set the background image with uv.
|
virtual |
Set the color of the widget.
Implements makVrv::DtWidget.
|
virtual |
Sets the origin location, by default it is 0,0.
The origin can be used to specify a offset from the position.
Implements makVrv::DtWidget.
|
virtual |
Sets the size of the widget in overlay coordinate space.
Implements makVrv::DtWidget.
|
virtual |
Sets the size of the widget in overlay coordinate space.
Implements makVrv::DtWidget.
|
virtual |
Set the widget's model definition ("theme")
Implements makVrv::DtWidget.
|
virtual |
Enable or disable event handling for this widget.
Implements makVrv::DtWidget.
|
virtual |
Set the widget visible or hidden.
Implements makVrv::DtWidget.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |