![]() |
VR-Forces 4.6 Class Documentation
|
The attribute layout tells DtAttributes where to draw. More...

Public Member Functions | |
| DtAttribute () | |
| CTOR. | |
| virtual | ~DtAttribute () |
| DTOR. | |
| virtual void | setPosition (float x, float y, float z, float w)=0 |
| Set the position of the attribute in world space, using vrvGraphics float packing. | |
| virtual void | setOffset (double x, double y) |
| Set the offset of the attribute. | |
| virtual void | getMinSize (double &xOut, double &yOut)=0 |
| Get the minimum size of the attribute. | |
| virtual void | setColor (float r, float g, float b, float a)=0 |
| Set the color of the attribute. | |
| virtual void | setSize (double x, double y)=0 |
| Set the size of the attribute. | |
| virtual void | setShadowText (bool enabled)=0 |
| Set whether attribute text should have shadows. | |
| virtual void | setVisible (bool visible)=0 |
| Set the attribute visible or hidden. | |
| virtual bool | visible () const =0 |
| Get the visibility of the attribute. | |
| virtual void | setOverlay (unsigned int overlayId)=0 |
| Set the overlay to draw the attribute on. | |
| virtual void | setGroup (unsigned int group)=0 |
| Set the group to draw the atribute on. | |
| virtual void | setForegroundGroup (unsigned int group) |
| Set the group to draw the atribute's foreground on. | |
| virtual void | setBackgroundGroup (unsigned int group) |
| Set the group to draw the atribute's background on. | |
Public Attributes | |
| boost::signal< void(DtAttribute *, double, double)> | signal_sizeChanged |
| Emitted when the attribute's size changes. | |
The attribute layout tells DtAttributes where to draw.
| makVrv::DtAttribute::DtAttribute | ( | ) |
CTOR.
|
virtual |
DTOR.
|
pure virtual |
Set the position of the attribute in world space, using vrvGraphics float packing.
Implemented in makVrv::DtGraphAttribute, makVrv::DtImageAttribute, makVrv::DtBaseOutlineAttribute, makVrv::DtValueBarAttribute, makVrv::DtBaseQuadAttribute, and makVrv::DtBaseTextAttribute.
Set the offset of the attribute.
Reimplemented in makVrv::DtImageAttribute, makVrv::DtBaseTextAttribute, makVrv::DtGraphAttribute, makVrv::DtBaseOutlineAttribute, makVrv::DtBaseQuadAttribute, and makVrv::DtValueBarAttribute.
Get the minimum size of the attribute.
Implemented in makVrv::DtGraphAttribute, makVrv::DtImageAttribute, makVrv::DtBaseOutlineAttribute, makVrv::DtValueBarAttribute, makVrv::DtBaseQuadAttribute, and makVrv::DtBaseTextAttribute.
|
pure virtual |
Set the color of the attribute.
Implemented in makVrv::DtGraphAttribute, makVrv::DtImageAttribute, makVrv::DtValueBarAttribute, makVrv::DtBaseTextAttribute, makVrv::DtBaseOutlineAttribute, and makVrv::DtBaseQuadAttribute.
Set the size of the attribute.
Implemented in makVrv::DtBaseTextAttribute, makVrv::DtGraphAttribute, makVrv::DtImageAttribute, makVrv::DtBaseOutlineAttribute, makVrv::DtBaseQuadAttribute, and makVrv::DtValueBarAttribute.
|
pure virtual |
Set whether attribute text should have shadows.
Implemented in makVrv::DtBaseTextAttribute, makVrv::DtGraphAttribute, makVrv::DtImageAttribute, makVrv::DtBaseOutlineAttribute, makVrv::DtValueBarAttribute, and makVrv::DtBaseQuadAttribute.
|
pure virtual |
Set the attribute visible or hidden.
Implemented in makVrv::DtGraphAttribute, makVrv::DtImageAttribute, makVrv::DtBaseOutlineAttribute, makVrv::DtValueBarAttribute, makVrv::DtBaseQuadAttribute, makVrv::DtBaseTextAttribute, makVrv::DtNumericAttribute, and makVrv::DtTextAttribute.
|
pure virtual |
Get the visibility of the attribute.
Implemented in makVrv::DtGraphAttribute, makVrv::DtImageAttribute, makVrv::DtBaseOutlineAttribute, makVrv::DtValueBarAttribute, makVrv::DtBaseQuadAttribute, and makVrv::DtBaseTextAttribute.
Set the overlay to draw the attribute on.
Overlay ids are defined in DtOverlayManager.
Implemented in makVrv::DtGraphAttribute, makVrv::DtBaseTextAttribute, makVrv::DtImageAttribute, makVrv::DtBaseOutlineAttribute, makVrv::DtBaseQuadAttribute, and makVrv::DtValueBarAttribute.
Set the group to draw the atribute on.
The group specifies the z order of the attribute on the overlay.
Implemented in makVrv::DtGraphAttribute, makVrv::DtBaseTextAttribute, makVrv::DtImageAttribute, makVrv::DtBaseOutlineAttribute, makVrv::DtBaseQuadAttribute, and makVrv::DtValueBarAttribute.
Set the group to draw the atribute's foreground on.
The group specifies the z order of the attribute on the overlay. By default, this method just calls setGroup(unsigned int).
Reimplemented in makVrv::DtBaseTextAttribute.
Set the group to draw the atribute's background on.
The group specifies the z order of the attribute on the overlay. By default, this method just calls setGroup(unsigned int).
Reimplemented in makVrv::DtBaseTextAttribute.
| boost::signal<void (DtAttribute*,double,double)> makVrv::DtAttribute::signal_sizeChanged |
Emitted when the attribute's size changes.
| _1 | the attribute that changed. |
| _2 | the new x size of the attribute. |
| _3 | the new y size of the attribute. |