![]() |
VR-Forces 4.8 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. More... | |
| virtual | ~DtAttributeLayout () |
| DTOR. More... | |
| virtual void | setDimensions (unsigned int rows, unsigned int cols) |
| Set the number of rows and columns in the layout. More... | |
| virtual void | getDimensions (unsigned int &rowsOut, unsigned int &colsOut) |
| Get the dimensions of the layout. More... | |
| virtual void | setAttribute (unsigned int row, unsigned int col, DtAttribute *attribute) |
| Set the attribute at the specified grid cell. More... | |
| virtual DtAttribute * | findAttribute (unsigned int row, unsigned int col) |
| Find the attribute at row, col. Returns 0 if none was found. More... | |
| virtual void | setBottomLeftCorner (double x, double y) |
| Set the bottom left corner of the layout. More... | |
| virtual void | setWorldPosition (float x, float y, float z, float w) |
| Set the origin of the layout in world coordinates. More... | |
| virtual void | setBackgroundColor (float r, float g, float b, float a) |
| Set the background color for the layout. More... | |
| virtual void | setBackgroundImage (const std::string &filename) |
| Set the image to use for the background. More... | |
| virtual void | setCellPadding (double colPadding, double rowPadding) |
| Set the padding around the contents of each cell. More... | |
| virtual void | updateCellSizes () |
| Update the sizes of all cells. More... | |
| virtual void | setVisible (bool visible) |
| Set the layout visible or hidden. More... | |
| 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) 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 | setOverlay (unsigned int overlayId) |
| Set the overlay id for the attributes to draw on. More... | |
| virtual void | setOrderGroup (unsigned int group) |
| Set the group the attribute and background are on. More... | |
| virtual void | setBackgroundOrderGroup (unsigned int groupId) |
| Set the overlay group used for shadows and the background. More... | |
| virtual void | setWidth (float width) |
| Set the width of the layout. More... | |
| virtual void | setBackgroundEnabled (bool enabled) |
| Enable or disable the background quad. More... | |
| virtual void | setOutlineEnabled (bool enabled) |
| Enable or disable the layout's outline. More... | |
| virtual void | setShadowText (bool enabled) |
| Set whether text shadows should be displayed. More... | |
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. More... | |
Protected Member Functions | |
| virtual void | slot_attributeSizeChanged (DtAttribute *attribute, double xSize, double ySize) |
| Called when an attribute's size changes. More... | |
| virtual void | resizeLayout () |
| Resize the attributes in the layout to match the current row and column dimensions. More... | |
| virtual void | redimensionLayout () |
| Recompute the layout's dimensions according to its row and columns sizes. More... | |
| virtual void | resizeRowsAndColumns () |
| Recompute the sizes of the layout's rows and columns. More... | |
Protected Attributes | |
| DtDe & | myDe |
| AttributeGrid | myAttributeGrid |
| The 2d grid of attributes to manage. More... | |
| bool | myHorizontalCenter |
| bool | myVerticalCenter |
| float | myWorldX |
| float | myWorldY |
| float | myWorldZ |
| float | myWorldW |
| double | myOffsetX |
| double | myOffsetY |
| double | myXDim |
| Layout dimension on X axis. More... | |
| double | myYDim |
| Layout dimension on Y axis. More... | |
| 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. More... | |
| void | eraseAttribute (DtAttribute *attribute) |
| Remove and delete an attribute from the layout. More... | |
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.
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.
Set the overlay id for the attributes to draw on.
Set the group the attribute and background are on.
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 |