![]() |
VR-Forces 4.3 Class Documentation
|
The attribute layout tells DtAttributes where to draw using a grid type layout. More...
Classes | |
| struct | AttributeInfo |
| Data associated with an attribute in the layout. More... | |
Public Member Functions | |
| DtAttributeLayout (DtDe &de) | |
| CTOR. | |
| virtual | ~DtAttributeLayout () |
| DTOR. | |
| virtual void | setDimensions (unsigned int rows, unsigned int cols) |
| Set the number of rows and columns in the layout. | |
| virtual void | getDimensions (unsigned int &rowsOut, unsigned int &colsOut) |
| Get the dimensions of the layout. | |
| virtual void | setAttribute (unsigned int row, unsigned int col, DtAttribute *attribute) |
| Set the attribute at the specified grid cell. | |
| virtual DtAttribute * | findAttribute (unsigned int row, unsigned int col) |
| Find the attribute at row, col. Returns 0 if none was found. | |
| virtual void | setBottomLeftCorner (double x, double y) |
| Set the bottom left corner of the layout. | |
| virtual void | setWorldPosition (float x, float y, float z, float w) |
| Set the origin of the layout in world coordinates. | |
| virtual void | setBackgroundColor (float r, float g, float b, float a) |
| Set the background color for the layout. | |
| virtual void | setBackgroundImage (const std::string &filename) |
| Set the image to use for the background. | |
| virtual void | setCellPadding (double colPadding, double rowPadding) |
| Set the padding around the contents of each cell. | |
| virtual void | updateCellSizes () |
| Update the sizes of all cells. | |
| virtual void | setVisible (bool visible) |
| Set the layout visible or hidden. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the layout (does not set the color of its attributes) | |
| 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 | setOverlay (unsigned int overlayId) |
| Set the overlay id for the attributes to draw on. | |
| virtual void | setOrderGroup (unsigned int group) |
| Set the group the attribute and background are on. | |
| virtual void | setBackgroundOrderGroup (unsigned int groupId) |
| Set the overlay group used for shadows and the background. | |
| virtual void | setWidth (float width) |
| Set the width of the layout. | |
| virtual void | setBackgroundEnabled (bool enabled) |
| Enable or disable the background quad. | |
| virtual void | setOutlineEnabled (bool enabled) |
| Enable or disable the layout's outline. | |
| virtual void | setShadowText (bool enabled) |
| Set whether text shadows should be displayed. | |
Protected Types | |
| typedef std::vector < DtAttribute * > | Attributes |
| typedef std::vector< Attributes > | AttributeGrid |
| typedef boost::unordered_map < DtAttribute *, AttributeInfo > | AttributeInfoMap |
| A map from attribute to its location in the layout. | |
Protected Member Functions | |
| virtual void | slot_attributeSizeChanged (DtAttribute *attribute, double xSize, double ySize) |
| Called when an attribute's size changes. | |
| virtual void | resizeLayout () |
| Resize the attributes in the layout to match the current row and column dimensions. | |
| virtual void | redimensionLayout () |
| Recompute the layout's dimensions according to its row and columns sizes. | |
| virtual void | resizeRowsAndColumns () |
| Recompute the sizes of the layout's rows and columns. | |
Protected Attributes | |
| DtDe & | myDe |
| AttributeGrid | myAttributeGrid |
| The 2d grid of attributes to manage. | |
| bool | myHorizontalCenter |
| bool | myVerticalCenter |
| float | myWorldX |
| float | myWorldY |
| float | myWorldZ |
| float | myWorldW |
| double | myOffsetX |
| double | myOffsetY |
| double | myXDim |
| Layout dimension on X axis. | |
| double | myYDim |
| Layout dimension on Y axis. | |
| double | myRowPadding |
| double | myColumnPadding |
| DtQuad * | myBackground |
| DtBaseOutlineAttribute | myOutline |
| bool | myVisible |
| bool | myOutlineEnabled |
| unsigned int | myOverlay |
| unsigned int | myOverlayGroup |
| unsigned int | myOverlayTextGroup |
| osg::ref_ptr< osg::Texture > | myBackgroundTexture |
| osg::Vec4 | myBackgroundColor |
| DtBoundingBox | myBoundingBox |
| bool | myShadowTextFlag |
| AttributeInfoMap | myAttributeInfoMap |
| std::vector< double > | myColSizes |
| std::vector< double > | myRowSizes |
Private Member Functions | |
| void | createBackground () |
| Create the background quad for the attribute layout. | |
| void | eraseAttribute (DtAttribute *attribute) |
| Remove and delete an attribute from the layout. | |
The attribute layout tells DtAttributes where to draw using a grid type layout.
|
protected |
|
protected |
|
protected |
A map from attribute to its location in the layout.
| makVrv::DtAttributeLayout::DtAttributeLayout | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the number of rows and columns in the layout.
|
virtual |
Get the dimensions of the layout.
|
virtual |
Set the attribute at the specified grid cell.
Transfers ownership.
The cell must be within the bounds specified in the most recent setDimensions call
|
virtual |
Find the attribute at row, col. Returns 0 if none was found.
|
virtual |
Set the bottom left corner of the layout.
|
virtual |
Set the origin of the layout in world coordinates.
|
virtual |
Set the background color for the layout.
|
virtual |
Set the image to use for the background.
|
virtual |
Set the padding around the contents of each cell.
|
virtual |
Update the sizes of all cells.
|
virtual |
Set the layout visible or hidden.
|
virtual |
Set the color of the layout (does not set the color of its attributes)
|
virtual |
Set whether or not to center the attribute group horizontally around its origin.
|
virtual |
Set whether or not to center the attribute group vertically around its origin.
|
virtual |
Set the overlay id for the attributes to draw on.
|
virtual |
Set the group the attribute and background are on.
|
virtual |
Set the overlay group used for shadows and the background.
|
virtual |
Set the width of the layout.
|
virtual |
Enable or disable the background quad.
|
virtual |
Enable or disable the layout's outline.
|
virtual |
Set whether text shadows should be displayed.
|
protectedvirtual |
Called when an attribute's size changes.
|
protectedvirtual |
Resize the attributes in the layout to match the current row and column dimensions.
|
protectedvirtual |
Recompute the layout's dimensions according to its row and columns sizes.
|
protectedvirtual |
Recompute the sizes of the layout's rows and columns.
|
private |
Create the background quad for the attribute layout.
Non-virtual (Called from CTOR).
|
private |
Remove and delete an attribute from the layout.
|
protected |
|
protected |
The 2d grid of attributes to manage.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Layout dimension on X axis.
|
protected |
Layout dimension on Y axis.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |