![]() |
VR-Forces 4.8 Class Documentation
|
The abstract base class for widgets. More...

Public Member Functions | |
| DtWidget (DtDe &de, DtUniqueID id) | |
| virtual | ~DtWidget () |
| virtual void | setOverlay (unsigned int overlay)=0 |
| Sets the overlay of the widget. More... | |
| virtual unsigned int | overlay () const =0 |
| Gets the overlay of the widget. More... | |
| virtual void | setOrderGroup (unsigned int group)=0 |
| Sets the overlay of the widget. More... | |
| virtual void | setRotation (float)=0 |
| Sets the rotation of the widget. Rotation is in radians. Default is no-op. More... | |
| virtual unsigned int | orderGroup () const =0 |
| Gets the overlay of the widget. More... | |
| virtual void | setParentId (DtUniqueID id) |
| Set the parent id. More... | |
| virtual void | setPosition (float x, float y, float z, float w=0)=0 |
| Set the position of the widget in screen space. More... | |
| virtual void | setBackgroundImage (const std::string &filename)=0 |
| Set the background image. More... | |
| virtual void | setColor (float r, float g, float b, float a)=0 |
| Set the color of the widget. More... | |
| virtual void | setOrigin (float originX, float originY)=0 |
| Sets the origin location, by default it is 0,0. More... | |
| virtual void | setSize (float w, float h)=0 |
| Sets the size of the widget in overlay coordinate space. More... | |
| virtual void | setPadding (float paddingX, float paddingY)=0 |
| Sets the size of the widget in overlay coordinate space. More... | |
| virtual void | setModelDefinition (const std::string &str)=0 |
| Sets the model definition of the widget (optional, since widgets are not models) More... | |
| virtual void | setEventsEnabled (bool enabled)=0 |
| Enable or disable events for this widget. More... | |
| virtual void | setVisible (bool visible)=0 |
| Set whether the widget is visible or not. More... | |
| virtual DtUniqueID | id () const |
| Return this widget's id. More... | |
| virtual DtUniqueID | parentId () const |
| Return the unique id specified as the parent of this widget. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtUniqueID | myId |
| DtUniqueID | myParentId |
The abstract base class for widgets.
| makVrv::DtWidget::DtWidget | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
|
virtual |
Sets the overlay of the widget.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidgetLabel, and makVrv::DtOsgWidget.
Gets the overlay of the widget.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidget, and makVrv::DtOsgWidgetLabel.
Sets the overlay of the widget.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidget, and makVrv::DtOsgWidgetLabel.
|
pure virtual |
Sets the rotation of the widget. Rotation is in radians. Default is no-op.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidgetLabel, makVrv::DtWidgetLabel, and makVrv::DtOsgWidget.
Gets the overlay of the widget.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidget, and makVrv::DtOsgWidgetLabel.
|
virtual |
Set the parent id.
Reimplemented in makVrv::DtOsgWidget.
|
pure virtual |
Set the position of the widget in screen space.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidget, and makVrv::DtOsgWidgetLabel.
|
pure virtual |
Set the background image.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidgetLabel, and makVrv::DtOsgWidget.
|
pure virtual |
Set the color of the widget.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidgetLabel, and makVrv::DtOsgWidget.
|
pure virtual |
Sets the origin location, by default it is 0,0.
The origin can be used to specify a offset from the position.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidgetLabel, and makVrv::DtOsgWidget.
|
pure virtual |
Sets the size of the widget in overlay coordinate space.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtWidgetLabel, makVrv::DtOsgWidgetLabel, and makVrv::DtOsgWidget.
|
pure virtual |
Sets the size of the widget in overlay coordinate space.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidgetLabel, and makVrv::DtOsgWidget.
|
pure virtual |
Sets the model definition of the widget (optional, since widgets are not models)
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidgetLabel, and makVrv::DtOsgWidget.
|
pure virtual |
Enable or disable events for this widget.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidgetLabel, and makVrv::DtOsgWidget.
|
pure virtual |
Set whether the widget is visible or not.
Implemented in makVrv::DtOsgAttributeGroupWidget, makVrv::DtOsgWidgetLabel, and makVrv::DtOsgWidget.
|
virtual |
Return this widget's id.
If the widget is distributable, this will be it's id assigned by the agent manager
|
virtual |
Return the unique id specified as the parent of this widget.
When a widget is added as a DtProjectedWidgetModel's widget, this will be the scene object id of the scene object that the widget model is attached to. Note that parentId may be 0, in which case it is not set.
|
protected |
|
protected |
|
protected |