![]() |
VR-Forces Developer's Guide
|
The attribute layout tells DtAttributes where to draw using a grid type layout.
Classes | |
| struct | AttributeInfo |
Public Types | |
| using | DtOriginPlacementPolicy = DtAttributeGroupWidget::DtOriginPlacementPolicy |
Public Member Functions | |
| DtAttributeLayout (DtDe &de) | |
| virtual | ~DtAttributeLayout () |
| virtual void | setDimensions (unsigned int rows, unsigned int cols) |
| virtual void | getDimensions (unsigned int &rowsOut, unsigned int &colsOut) |
| virtual void | setAttribute (unsigned int row, unsigned int col, DtAttribute *attribute) |
| virtual DtAttribute * | findAttribute (unsigned int row, unsigned int col) |
| virtual void | setOriginOffset (double x, double y) |
| virtual void | setOriginPlacementPolicy (DtOriginPlacementPolicy originPolicy) |
| virtual void | setHorizontalCenter (bool center) |
| virtual void | setVerticalCenter (bool center) |
| virtual void | setWorldPosition (float x, float y, float z, float w) |
| virtual void | setBackgroundColor (float r, float g, float b, float a) |
| virtual void | setBackgroundImage (const std::string &filename) |
| virtual void | setCellPadding (double colPadding, double rowPadding) |
| virtual void | updateCellSizes () |
| virtual void | setVisible (bool visible) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setOverlay (unsigned int overlayId) |
| virtual void | setOrderGroup (unsigned int group) |
| virtual unsigned int | orderGroup () const |
| virtual void | setBackgroundOrderGroup (unsigned int groupId) |
| virtual void | setWidth (float width) |
| virtual void | setBackgroundEnabled (bool enabled) |
| virtual void | setOutlineWidth (float width) |
| virtual void | setOutlineEnabled (bool enabled) |
| virtual void | setShadowText (bool enabled) |
| virtual void | setBackgroundLodOutAltitude (double lodOutAltitude) |
| virtual void | setBackgroundIsLodOutAltitudeEnabled (bool isLodOutAltitudeEnabled) |
Protected Types | |
| typedef std::vector < DtAttribute * > | Attributes |
| typedef std::vector< Attributes > | AttributeGrid |
| typedef std::unordered_map < DtAttribute *, AttributeInfo > | AttributeInfoMap |
Protected Member Functions | |
| virtual void | updateOriginPlacementPolicyBasedOnHorizontalAndVerticalCenterProperties () |
| virtual void | slot_attributeSizeChanged (DtAttribute *attribute, double xSize, double ySize) |
| virtual void | resizeLayout () |
| virtual void | redimensionLayout () |
| virtual void | resizeRowsAndColumns () |
Protected Attributes | |
| DtDe & | myDe |
| AttributeGrid | myAttributeGrid |
| bool | myHorizontalCenter |
| bool | myVerticalCenter |
| float | myWorldX |
| float | myWorldY |
| float | myWorldZ |
| float | myWorldW |
| DtOriginPlacementPolicy | myOriginPlacementPolicy |
| double | myOffsetX |
| double | myOffsetY |
| double | myXDim |
| double | myYDim |
| double | myRowPadding |
| double | myColumnPadding |
| DtQuadProxyInterface * | myBackground |
| DtBaseOutlineAttribute * | myOutline |
| bool | myVisible |
| bool | myOutlineEnabled |
| float | myOutlineWidth |
| unsigned int | myOverlay |
| unsigned int | myOverlayGroup |
| unsigned int | myOverlayTextGroup |
| DtOsgTextureWrapper * | myBackgroundTexture |
| DtVector4< float > | myBackgroundColor |
| DtBoundingBox | myBoundingBox |
| bool | myShadowTextFlag |
| AttributeInfoMap | myAttributeInfoMap |
| std::vector< double > | myColSizes |
| std::vector< double > | myRowSizes |
Private Member Functions | |
| void | createBackground () |
| void | eraseAttribute (DtAttribute *attribute) |
| using makVrv::DtAttributeLayout::DtOriginPlacementPolicy = DtAttributeGroupWidget::DtOriginPlacementPolicy |
|
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 Set the offset in pixels from the position.
|
virtual |
Set the bottom left corner of the layout Sets the policy for how the glyph is located with respect to its position.
|
virtual |
Set whether or not to center the attribute group horizontally around its origin. This ultimately uses setOriginPlacementPolicy(DtOriginPlacementPolicy) for its implementation. If 'Horizontal Center' is true but 'Vertical Center' is false, then the origin placement policy is set to TopCenter. If 'Horizontal Center' is true and 'Vertical Center' is true, then the origin placement policy is set to Center. If both are false, then the origin placement policy is set to the default origin placement policy, TopLeft.
|
virtual |
Set whether or not to center the attribute group vertically around its origin. This ultimately uses setOriginPlacementPolicy(DtOriginPlacementPolicy) for its implementation. If 'Horizontal Center' is true but 'Vertical Center' is false, then the origin placement policy is set to TopCenter. If 'Horizontal Center' is true and 'Vertical Center' is true, then the origin placement policy is set to Center. If both are false, then the origin placement policy is set to the default origin placement policy, TopLeft.
|
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 outline of the layout (does not set the color of its attributes)
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 |
Set the line width of the outline.
|
virtual |
Enable or disable the layout's outline.
|
virtual |
Set whether text shadows should be displayed.
|
virtual |
Set the minimum altitude, in meters, at which the background quad will no longer render. Only used if setIsLodOutAltitudeEnabled(true). Default is the maximum value a double can hold.
|
virtual |
Set whether or not the background quad should use the LOD Out Altitude property. Default is true.
|
protectedvirtual |
Update the origin placement policy for the attribute layout based on the horizontal/vertical center settings.
|
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 |
|
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 |