Interface ILayoutOperations<TLayout, TNode>
Represents a type with useful layout operations.
Namespace: Edgar.Legacy.Core.LayoutOperations.Interfaces
Assembly: Edgar.dll
Syntax
public interface ILayoutOperations<in TLayout, in TNode>
Type Parameters
Name | Description |
---|---|
TLayout | |
TNode |
Methods
AddNodeGreedily(TLayout, TNode, out Int32)
Adds a given node greedily to a given layout.
Declaration
void AddNodeGreedily(TLayout layout, TNode node, out int iterationsCount)
Parameters
Type | Name | Description |
---|---|---|
TLayout | layout | |
TNode | node | |
System.Int32 | iterationsCount |
AreDifferentEnough(TLayout, TLayout)
Checks if given layouts are different enough.
Declaration
bool AreDifferentEnough(TLayout layout1, TLayout layout2)
Parameters
Type | Name | Description |
---|---|---|
TLayout | layout1 | |
TLayout | layout2 |
Returns
Type | Description |
---|---|
System.Boolean |
GetEnergy(TLayout)
Gets the energy of a given layout.
Declaration
float GetEnergy(TLayout layout)
Parameters
Type | Name | Description |
---|---|---|
TLayout | layout |
Returns
Type | Description |
---|---|
System.Single |
IsLayoutValid(TLayout)
Checks if all configurations are valid.
Declaration
bool IsLayoutValid(TLayout layout)
Parameters
Type | Name | Description |
---|---|---|
TLayout | layout |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
Layout without some configurations may be valid, too.
PerturbPosition(TLayout, TNode, Boolean)
Perturbs positions of a given node.
Declaration
void PerturbPosition(TLayout layout, TNode node, bool updateLayout)
Parameters
Type | Name | Description |
---|---|---|
TLayout | layout | |
TNode | node | Node to be perturbed. |
System.Boolean | updateLayout | Whether energies should be updated. |
PerturbShape(TLayout, TNode, Boolean)
Perturbs shape of a given node.
Declaration
void PerturbShape(TLayout layout, TNode node, bool updateLayout)
Parameters
Type | Name | Description |
---|---|---|
TLayout | layout | |
TNode | node | Node to be perturbed. |
System.Boolean | updateLayout | Whether energies should be updated. |
UpdateLayout(TLayout)
Updates energies of a given layout.
Declaration
void UpdateLayout(TLayout layout)
Parameters
Type | Name | Description |
---|---|---|
TLayout | layout |