Layout
The Layout node is used in the layout field of the LayoutLayer and LayoutGroup nodes. The Layout node provides all the parameters that are required to define the size and location of a 2D rectangular region that is associated with the containing node. Also, it contains a field that defines how the content of the containing node shall be scaled.
Inheritance
Code
XML encoding
<Layout align='CENTER CENTER' offset='0,0' offsetUnits='WORLD WORLD' scaleMode='NONE NONE' size='1,1' sizeUnits='WORLD WORLD' logFeature='' />
Classic encoding
Layout { align ["CENTER CENTER"] offset [0,0] offsetUnits ["WORLD WORLD"] scaleMode ["NONE NONE"] size [1,1] sizeUnits ["WORLD WORLD"] logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
align | MFString | inputOutput | CENTER CENTER | [LEFT, CENTER, RIGHT, BOTTOM, TOP] | The align field values align the sized rectangle to an edge or center of the parent rectangle. | |
logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element | ||
offset | MFFloat | inputOutput | 0,0 | The values of the offset field are used to translate the location of this rectangle after the initial alignment. | ||
offsetUnits | MFString | inputOutput | WORLD WORLD | [WORLD, FRACTION, PIXEL] | The offsetUnits field specifies how to interpret the offset values. | |
scaleMode | MFString | inputOutput | NONE NONE | [NONE, FRACTION, STRETCH, PIXEL] | The scaleMode field specifies how the scale of the parent is modified. | |
size | MFFloat | inputOutput | 1,1 | The width and height of the layout rectangle is defined by two values in the size field. | ||
sizeUnits | MFString | inputOutput | WORLD WORLD | [WORLD, FRACTION, PIXEL] | The sizeUnits field specifies how to interpret the size values. |