![]() |
VR-Forces 4.1 Class Documentation
|
The osg implementation of an attribute group. More...

Public Member Functions | |
| DtOsgAttributeGroupWidget (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsgAttributeGroupWidget () |
| virtual void | setBackgroundEnabled (bool enabled) |
| Enable or disable the background. | |
| virtual void | setOutlineEnabled (bool enabled) |
| Enable or disable the outline. | |
| virtual void | setTypeText (unsigned int index, const DtUnicode &attributeName) |
| Set the index'th attribute to be a text-only attribute. | |
| virtual void | setTypeValueText (unsigned int index, const DtUnicode &attributeName) |
| Set the index'th attribute to be a text value attribute. | |
| virtual void | setTypeNumeric (unsigned int index, const DtUnicode &attributeName) |
| Set the index'th attribute to be a numeric attribute. | |
| virtual void | setTypeValueBar (unsigned int index, const DtUnicode &attributeName) |
| Set the index'th attribute to be a value bar attribute. | |
| virtual void | setTypeGraph (unsigned int index, const DtUnicode &attributeName, int maxValues) |
| Set the index'th attribute to be a line graph attribute. | |
| virtual void | setTypeImage (unsigned int index, const DtUnicode &attributeName) |
| Set the index'th attribute to be an image attribute. | |
| virtual void | setTypeNull (unsigned int index) |
| Set the index'th attribute to be a null attribute (not displayed) | |
| virtual void | setValueImage (unsigned int index, const std::string &imageFilepath) |
| Set the value of the index'th attribute to the image filename. | |
| virtual void | setValueGraphPoint (unsigned int index, unsigned int n, float x, float y) |
| Set the line graph's nth x,y values for the index'th attribute. | |
| virtual void | setValueBarValue (unsigned int index, float val) |
| Set the value bar value for the index'th attribute. | |
| virtual void | setValueNumeric (unsigned int index, float val) |
| Set the numeric value for the index'th attribute. | |
| virtual void | setValueTextValue (unsigned int index, const DtUnicode &val) |
| Set the text value for the index'th attribute. | |
| virtual void | setAttributeVisible (unsigned int index, bool visible) |
| Set an attribute visible or hidden. | |
| virtual void | setOverlay (unsigned int overlay) |
| Sets the overlay of the widget. | |
| virtual unsigned int | overlay () const |
| Gets the overlay of the widget. | |
| virtual void | setOrderGroup (unsigned int group) |
| Sets the overlay group of the widget. | |
| virtual unsigned int | orderGroup () const |
| Gets the overlay of the widget. | |
| virtual void | setBackgroundOrderGroup (unsigned int groupId) |
| Set the overlay group used for shadows and the background. | |
| 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 | setBackgroundColor (float r, float g, float b, float a=1.0f) |
| Set the background color. | |
| 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) |
| Sets the model definition of the widget (optional, since widgets are not models) | |
| virtual void | setEventsEnabled (bool enabled) |
| Enable or disable events for this widget. | |
| virtual void | expandLayoutBy (unsigned int rows, unsigned int cols) |
| Expand the layout to have at least rows, cols dimensions. | |
| virtual void | setVisible (bool visible) |
| Set the attribute group visible or hidden. | |
| virtual void | setHorizontalCenter (bool center) |
| Set whether or not to center the attribute group horizontally around its origin. | |
| virtual void | setVerticalCenter (bool center) |
| Set whether or not to center the attribute group vertically around its origin. | |
| virtual void | setFontSize (float fontSize) |
| Set the size of the font in points. | |
| virtual void | setFontFile (const std::string &fontFile) |
| Set the font file to use. | |
| virtual void | setShadowText (bool enabled) |
| Set whether text shadows should be displayed. | |
Public Member Functions inherited from makVrv::DtAttributeGroupWidget | |
| DtAttributeGroupWidget (DtDe &de, DtUniqueID id) | |
| A widget label ctor. | |
| virtual | ~DtAttributeGroupWidget () |
| DTOR. | |
Public Member Functions inherited from makVrv::DtWidget | |
| DtWidget (DtDe &de, DtUniqueID id) | |
| virtual | ~DtWidget () |
| virtual void | setParentId (DtUniqueID id) |
| Set the parent id. | |
Protected Member Functions | |
| virtual DtTextAttribute * | buildTextAttribute (const DtUnicode &text) |
Protected Attributes | |
| DtAttributeLayout | myLayout |
| osg::Vec4 | myBackgroundColor |
| float | myR |
| float | myG |
| float | myB |
| float | myA |
| std::string | myFontFile |
| float | myFontSize |
| unsigned int | myOverlay |
The osg implementation of an attribute group.
| makVrv::DtOsgAttributeGroupWidget::DtOsgAttributeGroupWidget | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
|
virtual |
|
virtual |
Enable or disable the background.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Enable or disable the outline.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the index'th attribute to be a text-only attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the index'th attribute to be a text value attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the index'th attribute to be a numeric attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the index'th attribute to be a value bar attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the index'th attribute to be a line graph attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the index'th attribute to be an image attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the index'th attribute to be a null attribute (not displayed)
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the value of the index'th attribute to the image filename.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the line graph's nth x,y values for the index'th attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the value bar value for the index'th attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the numeric value for the index'th attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the text value for the index'th attribute.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set an attribute visible or hidden.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Sets the overlay of the widget.
Implements makVrv::DtWidget.
|
virtual |
Gets the overlay of the widget.
Implements makVrv::DtWidget.
|
virtual |
Sets the overlay group of the widget.
Implements makVrv::DtWidget.
|
virtual |
Gets the overlay of the widget.
Implements makVrv::DtWidget.
|
virtual |
Set the overlay group used for shadows and the background.
Implements makVrv::DtAttributeGroupWidget.
|
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 color.
Implements makVrv::DtAttributeGroupWidget.
|
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 |
Sets the model definition of the widget (optional, since widgets are not models)
Implements makVrv::DtWidget.
|
virtual |
Enable or disable events for this widget.
Implements makVrv::DtWidget.
|
virtual |
Expand the layout to have at least rows, cols dimensions.
|
virtual |
Set the attribute group visible or hidden.
Implements makVrv::DtWidget.
|
virtual |
Set whether or not to center the attribute group horizontally around its origin.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set whether or not to center the attribute group vertically around its origin.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the size of the font in points.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set the font file to use.
Implements makVrv::DtAttributeGroupWidget.
|
virtual |
Set whether text shadows should be displayed.
Implements makVrv::DtAttributeGroupWidget.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |