VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgAttributeGroupWidget Class Reference

The osg implementation of an attribute group. More...

Inheritance diagram for makVrv::DtOsgAttributeGroupWidget:
Inheritance graph
[legend]

Public Member Functions

 DtOsgAttributeGroupWidget (DtDe &de, DtUniqueID id)
 
virtual ~DtOsgAttributeGroupWidget ()
 
virtual void setBackgroundEnabled (bool enabled)
 Enable or disable the background. More...
 
virtual void setOutlineEnabled (bool enabled)
 Enable or disable the outline. More...
 
virtual void setTypeText (unsigned int index, const DtUnicode &attributeName)
 Set the index'th attribute to be a text-only attribute. More...
 
virtual void setTypeValueText (unsigned int index, const DtUnicode &attributeName)
 Set the index'th attribute to be a text value attribute. More...
 
virtual void setTypeNumeric (unsigned int index, const DtUnicode &attributeName)
 Set the index'th attribute to be a numeric attribute. More...
 
virtual void setTypeValueBar (unsigned int index, const DtUnicode &attributeName)
 Set the index'th attribute to be a value bar attribute. More...
 
virtual void setTypeGraph (unsigned int index, const DtUnicode &attributeName, int maxValues)
 Set the index'th attribute to be a line graph attribute. More...
 
virtual void setTypeImage (unsigned int index, const DtUnicode &attributeName)
 Set the index'th attribute to be an image attribute. More...
 
virtual void setTypeNull (unsigned int index)
 Set the index'th attribute to be a null attribute (not displayed) More...
 
virtual void setValueImage (unsigned int index, const std::string &imageFilepath)
 Set the value of the index'th attribute to the image filename. More...
 
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. More...
 
virtual void setValueBarValue (unsigned int index, float val)
 Set the value bar value for the index'th attribute. More...
 
virtual void setValueNumeric (unsigned int index, float val)
 Set the numeric value for the index'th attribute. More...
 
virtual void setValueTextValue (unsigned int index, const DtUnicode &val)
 Set the text value for the index'th attribute. More...
 
virtual void setAttributeVisible (unsigned int index, bool visible)
 Set an attribute visible or hidden. More...
 
virtual void setOverlay (unsigned int overlay)
 Sets the overlay of the widget. More...
 
virtual unsigned int overlay () const
 Gets the overlay of the widget. More...
 
virtual void setOrderGroup (unsigned int group)
 Sets the overlay group of the widget. More...
 
virtual unsigned int orderGroup () const
 Gets the overlay of the widget. More...
 
virtual void setBackgroundOrderGroup (unsigned int groupId)
 Set the overlay group used for shadows and the background. More...
 
virtual void setPosition (float x, float y, float z, float w=0)
 Set the position of the widget in screen space. More...
 
virtual void setBackgroundImage (const std::string &filename)
 Set the background image. More...
 
virtual void setBackgroundColor (float r, float g, float b, float a=1.0f)
 Set the background color. More...
 
virtual void setColor (float r, float g, float b, float a)
 Set the color of the widget. More...
 
virtual void setOrigin (float originX, float originY)
 Sets the origin location, by default it is 0,0. More...
 
virtual void setSize (float w, float h)
 Sets the size of the widget in overlay coordinate space. More...
 
virtual void setPadding (float paddingX, float paddingY)
 Sets the size of the widget in overlay coordinate space. More...
 
virtual void setModelDefinition (const std::string &str)
 Sets the model definition of the widget (optional, since widgets are not models) More...
 
virtual void setEventsEnabled (bool enabled)
 Enable or disable events for this widget. More...
 
virtual void expandLayoutBy (unsigned int rows, unsigned int cols)
 Expand the layout to have at least rows, cols dimensions. More...
 
virtual void setVisible (bool visible)
 Set the attribute group visible or hidden. More...
 
virtual void setHorizontalCenter (bool center)
 Set whether or not to center the attribute group horizontally around its origin. More...
 
virtual void setVerticalCenter (bool center)
 Set whether or not to center the attribute group vertically around its origin. More...
 
virtual void setFontSize (float fontSize)
 Set the size of the font in points. More...
 
virtual void setFontFile (const std::string &fontFile)
 Set the font file to use. More...
 
virtual void setShadowText (bool enabled)
 Set whether text shadows should be displayed. More...
 
virtual void setRotation (float)
 No-op for attribute groups as they cannot be rotated. More...
 
- Public Member Functions inherited from makVrv::DtAttributeGroupWidget
 DtAttributeGroupWidget (DtDe &de, DtUniqueID id)
 A widget label ctor. More...
 
virtual ~DtAttributeGroupWidget ()
 DTOR. More...
 
- Public Member Functions inherited from makVrv::DtWidget
 DtWidget (DtDe &de, DtUniqueID id)
 
virtual ~DtWidget ()
 
virtual void setParentId (DtUniqueID id)
 Set the parent id. 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 Member Functions

virtual DtTextAttributebuildTextAttribute (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
 
- Protected Attributes inherited from makVrv::DtWidget
DtDemyDe
 
DtUniqueID myId
 
DtUniqueID myParentId
 

Detailed Description

The osg implementation of an attribute group.

Constructor & Destructor Documentation

makVrv::DtOsgAttributeGroupWidget::DtOsgAttributeGroupWidget ( DtDe de,
DtUniqueID  id 
)
virtual makVrv::DtOsgAttributeGroupWidget::~DtOsgAttributeGroupWidget ( )
virtual

Member Function Documentation

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 group 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::setBackgroundOrderGroup ( unsigned int  groupId)
virtual

Set the overlay group used for shadows and the background.

Implements makVrv::DtAttributeGroupWidget.

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 void makVrv::DtOsgAttributeGroupWidget::setShadowText ( bool  enabled)
virtual

Set whether text shadows should be displayed.

Implements makVrv::DtAttributeGroupWidget.

virtual void makVrv::DtOsgAttributeGroupWidget::setRotation ( float  )
virtual

No-op for attribute groups as they cannot be rotated.

Implements makVrv::DtWidget.

virtual DtTextAttribute* makVrv::DtOsgAttributeGroupWidget::buildTextAttribute ( const DtUnicode text)
protectedvirtual

Member Data Documentation

DtAttributeLayout makVrv::DtOsgAttributeGroupWidget::myLayout
protected
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

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)