Table of Contents

Class FlexalonShapeLayout

Namespace
Flexalon
Assembly
Flexalon.dll

Use a shape layout to position children in a shape formation with a specified number of sides. The first child is placed in the center, and subsequent children are placed in concentric layers around the center, with each layer forming the desired shape.

public class FlexalonShapeLayout : LayoutBase, Layout
Inheritance
object
FlexalonShapeLayout
Implements
Inherited Members

Properties

Plane

Determines on which plane to create the shape.

public Plane Plane { get; set; }

Property Value

Plane

PlaneAlign

Determines how each child aligns within the size of the parent along the axis perpendicular to the Plane

public Align PlaneAlign { get; set; }

Property Value

Align

ShapeRotationDegrees

Rotates the shape around the specified Plane without rotating the children.

public float ShapeRotationDegrees { get; set; }

Property Value

float

Sides

Determines how many sides the shape should have.

public int Sides { get; set; }

Property Value

int

Spacing

Determines the space between each layer of the shape.

public float Spacing { get; set; }

Property Value

float

Methods

Arrange(FlexalonNode, Vector3)

Position the children of node within the available bounds.

public override void Arrange(FlexalonNode node, Vector3 layoutSize)

Parameters

node FlexalonNode
layoutSize Vector3

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

node FlexalonNode
size Vector3
min Vector3
max Vector3

Returns

Bounds