![]() |
VR-Forces 4.0.4 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 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 | 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. | |
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.
| virtual makVrv::DtOsgAttributeGroupWidget::~DtOsgAttributeGroupWidget | ( | ) | [virtual] |
| virtual void makVrv::DtOsgAttributeGroupWidget::setBackgroundEnabled | ( | bool | enabled | ) | [virtual] |
Enable or disable the background.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setOutlineEnabled | ( | bool | enabled | ) | [virtual] |
Enable or disable the outline.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setTypeText | ( | unsigned int | index, |
| const DtUnicode & | attributeName | ||
| ) | [virtual] |
Set the index'th attribute to be a text-only attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setTypeValueText | ( | unsigned int | index, |
| const DtUnicode & | attributeName | ||
| ) | [virtual] |
Set the index'th attribute to be a text value attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setTypeNumeric | ( | unsigned int | index, |
| const DtUnicode & | attributeName | ||
| ) | [virtual] |
Set the index'th attribute to be a numeric attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setTypeValueBar | ( | unsigned int | index, |
| const DtUnicode & | attributeName | ||
| ) | [virtual] |
Set the index'th attribute to be a value bar attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setTypeGraph | ( | unsigned int | index, |
| const DtUnicode & | attributeName, | ||
| int | maxValues | ||
| ) | [virtual] |
Set the index'th attribute to be a line graph attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setTypeImage | ( | unsigned int | index, |
| const DtUnicode & | attributeName | ||
| ) | [virtual] |
Set the index'th attribute to be an image attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setTypeNull | ( | unsigned int | index | ) | [virtual] |
Set the index'th attribute to be a null attribute (not displayed)
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setValueImage | ( | unsigned int | index, |
| const std::string & | imageFilepath | ||
| ) | [virtual] |
Set the value of the index'th attribute to the image filename.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setValueGraphPoint | ( | unsigned int | index, |
| unsigned int | n, | ||
| float | x, | ||
| float | y | ||
| ) | [virtual] |
Set the line graph's nth x,y values for the index'th attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setValueBarValue | ( | unsigned int | index, |
| float | val | ||
| ) | [virtual] |
Set the value bar value for the index'th attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setValueNumeric | ( | unsigned int | index, |
| float | val | ||
| ) | [virtual] |
Set the numeric value for the index'th attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setValueTextValue | ( | unsigned int | index, |
| const DtUnicode & | val | ||
| ) | [virtual] |
Set the text value for the index'th attribute.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setAttributeVisible | ( | unsigned int | index, |
| bool | visible | ||
| ) | [virtual] |
Set an attribute visible or hidden.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setOverlay | ( | unsigned int | overlay | ) | [virtual] |
Sets the overlay of the widget.
Implements makVrv::DtWidget.
| virtual unsigned int makVrv::DtOsgAttributeGroupWidget::overlay | ( | ) | const [virtual] |
Gets the overlay of the widget.
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setOrderGroup | ( | unsigned int | group | ) | [virtual] |
Sets the overlay of the widget.
Implements makVrv::DtWidget.
| virtual unsigned int makVrv::DtOsgAttributeGroupWidget::orderGroup | ( | ) | const [virtual] |
Gets the overlay of the widget.
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setPosition | ( | float | x, |
| float | y, | ||
| float | z, | ||
| float | w = 0 |
||
| ) | [virtual] |
Set the position of the widget in screen space.
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setBackgroundImage | ( | const std::string & | filename | ) | [virtual] |
Set the background image.
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setBackgroundColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a = 1.0f |
||
| ) | [virtual] |
Set the background color.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the widget.
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setOrigin | ( | float | originX, |
| float | originY | ||
| ) | [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 void makVrv::DtOsgAttributeGroupWidget::setSize | ( | float | w, |
| float | h | ||
| ) | [virtual] |
Sets the size of the widget in overlay coordinate space.
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setPadding | ( | float | paddingX, |
| float | paddingY | ||
| ) | [virtual] |
Sets the size of the widget in overlay coordinate space.
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setModelDefinition | ( | const std::string & | str | ) | [virtual] |
Sets the model definition of the widget (optional, since widgets are not models)
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setEventsEnabled | ( | bool | enabled | ) | [virtual] |
Enable or disable events for this widget.
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::expandLayoutBy | ( | unsigned int | rows, |
| unsigned int | cols | ||
| ) | [virtual] |
Expand the layout to have at least rows, cols dimensions.
| virtual void makVrv::DtOsgAttributeGroupWidget::setVisible | ( | bool | visible | ) | [virtual] |
Set the attribute group visible or hidden.
Implements makVrv::DtWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setHorizontalCenter | ( | bool | center | ) | [virtual] |
Set whether or not to center the attribute group horizontally around its origin.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setVerticalCenter | ( | bool | center | ) | [virtual] |
Set whether or not to center the attribute group vertically around its origin.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setFontSize | ( | float | fontSize | ) | [virtual] |
Set the size of the font in points.
Implements makVrv::DtAttributeGroupWidget.
| virtual void makVrv::DtOsgAttributeGroupWidget::setFontFile | ( | const std::string & | fontFile | ) | [virtual] |
Set the font file to use.
Implements makVrv::DtAttributeGroupWidget.
| virtual DtTextAttribute* makVrv::DtOsgAttributeGroupWidget::buildTextAttribute | ( | const DtUnicode & | text | ) | [protected, virtual] |
osg::Vec4 makVrv::DtOsgAttributeGroupWidget::myBackgroundColor [protected] |
float makVrv::DtOsgAttributeGroupWidget::myR [protected] |
float makVrv::DtOsgAttributeGroupWidget::myG [protected] |
float makVrv::DtOsgAttributeGroupWidget::myB [protected] |
float makVrv::DtOsgAttributeGroupWidget::myA [protected] |
std::string makVrv::DtOsgAttributeGroupWidget::myFontFile [protected] |
float makVrv::DtOsgAttributeGroupWidget::myFontSize [protected] |
unsigned int makVrv::DtOsgAttributeGroupWidget::myOverlay [protected] |