Show / Hide Table of Contents

Interface IRoomShapesHandler<TLayout, TNode, TShape>

An interface that computes which room shapes are available for a given node.

Namespace: Edgar.Legacy.Core.LayoutOperations.Interfaces
Assembly: Edgar.dll
Syntax
public interface IRoomShapesHandler<in TLayout, in TNode, TShape>
Type Parameters
Name Description
TLayout
TNode
TShape

Methods

CanPerturbShapeDoNotUse(TNode)

Declaration
bool CanPerturbShapeDoNotUse(TNode node)
Parameters
Type Name Description
TNode node
Returns
Type Description
System.Boolean

GetPossibleShapesForNode(TLayout, TNode, Boolean)

Gets all the room shapes that are allowed for a given node in the context of a given layout.

Declaration
List<TShape> GetPossibleShapesForNode(TLayout layout, TNode node, bool tryToFixEmpty)
Parameters
Type Name Description
TLayout layout

Current layout.

TNode node
System.Boolean tryToFixEmpty

Whether to try to return at least some room shapes even though not all requirements are satisfied.

Returns
Type Description
System.Collections.Generic.List<TShape>

GetRandomShapeWithoutConstraintsDoNotUse(TNode)

Declaration
TShape GetRandomShapeWithoutConstraintsDoNotUse(TNode node)
Parameters
Type Name Description
TNode node
Returns
Type Description
TShape
Back to top Generated by DocFX