GoDiagram Win Reference
Bends Method

Computes the bends between the unfixedLayer and its adjacent layers. The "bend" between a node U and a node V connected by a link L is calcluated by abs((U.column + L.portFromColOffset) - (V.column + L.portToColOffset)) The "weighted bend" between a node U and a node V connected by link L is calculated by abs((U.column + L.portFromColOffset) - (V.column + L.portToColOffset)) * LinkStraightenWeight(L) The LinkStraightenWeight attempts to give higher priority to links between "artificial" nodes; i.e., long links in the final layout will be straighter. The direction argument indicates which adjacent layers should be taken into consideration when computing the crossing matrix: direction == 0 -- use unfixedLayer - 1 and unfixedLayer + 1direction > 0 -- use unfixedLayer - 1 (sweeping away from layer 0)direction < 0 -- use unfixedLayer + 1 (sweepeing towards layer 0)
Syntax
'Declaration
 
Protected Overridable Function Bends( _
   ByVal unfixedLayer As Integer, _
   ByVal direction As Integer, _
   ByVal weighted As Boolean _
) As Single
protected virtual float Bends( 
   int unfixedLayer,
   int direction,
   bool weighted
)

Parameters

unfixedLayer
direction
weighted

Return Value

Returns the bends between the unfixedLayer and its adjacent layers.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoLayoutLayeredDigraph Class
GoLayoutLayeredDigraph Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback