Nevron Open Vision Documentation
NBarycenterForce Class
Members 


The NBarycenterForce class represents an edge force, which tries to place connected vertices at their barycenter (center of gravity)
Object Model
NBarycenterForce Class
Syntax
'Declaration
 
Public Class NBarycenterForce 
   Inherits NForce
   Implements Nevron.Nov.Dom.INDomDeepEquals, Nevron.Nov.Dom.INDomDeeplyCloneable, Nevron.Nov.INDeeplyCloneable 
'Usage
 
Dim instance As NBarycenterForce
public class NBarycenterForce : NForce, Nevron.Nov.Dom.INDomDeepEquals, Nevron.Nov.Dom.INDomDeeplyCloneable, Nevron.Nov.INDeeplyCloneable  
Remarks
The barycenter force is attractive by definition. It tries to collapse the vertices to the center of their mass. The force magnitude experienced by the vertices is specified by the following formulas:

vertex1Force = AttractionCoefficient * vertex1.Mass / (vertex1.Mass + vertex2.Mass)

vertex2Force = AttractionCoefficient * vertex2.Mass / (vertex1.Mass + vertex2.Mass)

The Mass parameter can be specified on a per vertex basis. If a vertex does not provide a concrete value for this parameter it is by default considered to be 1.

Inheritance Hierarchy

System.Object
            Nevron.Nov.Layout.NLayoutComponent
               Nevron.Nov.Diagram.Layout.NForce
                  Nevron.Nov.Diagram.Layout.NBarycenterForce

Requirements

Target Platforms: Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, 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

NBarycenterForce Members
Nevron.Nov.Diagram.Layout Namespace

 

 


©2021. Nevron Software LLC.

Send Feedback