Class FlexalonRandomLayout
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
Use a random layout to position, rotate, and size children randomly within bounds.
public class FlexalonRandomLayout : LayoutBase, Layout
- Inheritance
-
objectFlexalonRandomLayout
- Implements
- Inherited Members
Properties
DepthAlign
Depth alignment of all children within layout bounds.
public Align DepthAlign { get; set; }
Property Value
HorizontalAlign
Horizontal alignment of all children within layout bounds.
public Align HorizontalAlign { get; set; }
Property Value
PositionMax
Maximum position.
public Vector3 PositionMax { get; set; }
Property Value
- Vector3
PositionMaxX
Maximum X position.
public float PositionMaxX { get; set; }
Property Value
- float
PositionMaxY
Maximum Y position.
public float PositionMaxY { get; set; }
Property Value
- float
PositionMaxZ
Maximum Z position.
public float PositionMaxZ { get; set; }
Property Value
- float
PositionMin
Minimum position.
public Vector3 PositionMin { get; set; }
Property Value
- Vector3
PositionMinX
Minimum X position.
public float PositionMinX { get; set; }
Property Value
- float
PositionMinY
Minimum Y position.
public float PositionMinY { get; set; }
Property Value
- float
PositionMinZ
Minimum Z position.
public float PositionMinZ { get; set; }
Property Value
- float
RandomizePositionX
Randomizes the X position within bounds.
public bool RandomizePositionX { get; set; }
Property Value
- bool
RandomizePositionY
Randomizes the Y position within bounds.
public bool RandomizePositionY { get; set; }
Property Value
- bool
RandomizePositionZ
Randomizes the Z position within bounds.
public bool RandomizePositionZ { get; set; }
Property Value
- bool
RandomizeRotationX
Randomizes the X rotation within bounds.
public bool RandomizeRotationX { get; set; }
Property Value
- bool
RandomizeRotationY
Randomizes the Y rotation within bounds.
public bool RandomizeRotationY { get; set; }
Property Value
- bool
RandomizeRotationZ
Randomizes the Z rotation within bounds.
public bool RandomizeRotationZ { get; set; }
Property Value
- bool
RandomizeSizeX
Randomizes the X size within bounds. You must set child size to "Fill" for this to have effect.
public bool RandomizeSizeX { get; set; }
Property Value
- bool
RandomizeSizeY
Randomizes the Y size within bounds. You must set child size to "Fill" for this to have effect.
public bool RandomizeSizeY { get; set; }
Property Value
- bool
RandomizeSizeZ
Randomizes the Z size within bounds. You must set child size to "Fill" for this to have effect.
public bool RandomizeSizeZ { get; set; }
Property Value
- bool
RandomSeed
Seed value used to determine random values. This ensures results remain consistent each time layout is computed.
public int RandomSeed { get; set; }
Property Value
- int
RotationMax
Maximum rotation.
public Quaternion RotationMax { get; set; }
Property Value
- Quaternion
RotationMaxX
Maximum X rotation.
public float RotationMaxX { get; set; }
Property Value
- float
RotationMaxY
Maximum Y rotation.
public float RotationMaxY { get; set; }
Property Value
- float
RotationMaxZ
Maximum Z rotation.
public float RotationMaxZ { get; set; }
Property Value
- float
RotationMin
Minimum rotation.
public Quaternion RotationMin { get; set; }
Property Value
- Quaternion
RotationMinX
Minimum X rotation.
public float RotationMinX { get; set; }
Property Value
- float
RotationMinY
Minimum Y rotation.
public float RotationMinY { get; set; }
Property Value
- float
RotationMinZ
Minimum Z rotation.
public float RotationMinZ { get; set; }
Property Value
- float
SizeMax
Maximum size.
public Vector3 SizeMax { get; set; }
Property Value
- Vector3
SizeMaxX
Maximum X size.
public float SizeMaxX { get; set; }
Property Value
- float
SizeMaxY
Maximum Y size.
public float SizeMaxY { get; set; }
Property Value
- float
SizeMaxZ
Maximum Z size.
public float SizeMaxZ { get; set; }
Property Value
- float
SizeMin
Minimum size.
public Vector3 SizeMin { get; set; }
Property Value
- Vector3
SizeMinX
Minimum X size.
public float SizeMinX { get; set; }
Property Value
- float
SizeMinY
Minimum Y size.
public float SizeMinY { get; set; }
Property Value
- float
SizeMinZ
Minimum Z size.
public float SizeMinZ { get; set; }
Property Value
- float
VerticalAlign
Vertical alignment of all children within layout bounds.
public Align VerticalAlign { get; set; }
Property Value
Methods
Arrange(FlexalonNode, Vector3)
Position the children of node within the available bounds.
public override void Arrange(FlexalonNode node, Vector3 layoutSize)
Parameters
nodeFlexalonNodelayoutSizeVector3
Initialize()
protected override void Initialize()
Measure(FlexalonNode, Vector3, Vector3, Vector3)
Perform minimal work to determine what the size of node and available size for node's children.
public override Bounds Measure(FlexalonNode node, Vector3 size, Vector3 min, Vector3 max)
Parameters
nodeFlexalonNodesizeVector3minVector3maxVector3
Returns
- Bounds