Nevron .NET Vision
Nevron.Diagram.Layout Namespace / NElectricalForce Class
Members


In This Topic
    NElectricalForce Class
    In This Topic
    The NElectricalForce class represents a vertices force, which simulates the electrical repulsion between two ellectrically charged particles.
    Object Model
    NElectricalForce Class
    Syntax
    'Declaration
     
    
    <System.ComponentModel.TypeConverterAttribute(Nevron.Internal.KKGE)>
    Public Class NElectricalForce 
       Inherits NForce
       Implements Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider 
    'Usage
     
    
    Dim instance As NElectricalForce
    [System.ComponentModel.TypeConverter(Nevron.Internal.KKGE)]
    public class NElectricalForce : NForce, Nevron.Dom.INAttribute, Nevron.Dom.INHistoryCallback, Nevron.INReferenceHolder, Nevron.INReferenceProvider  
    Remarks
    The ellectrical force magnitute is computed by the following formula:

    (RepulsionCoefficient * Math.Pow(NominalDistance, 2) * Novertex1.ElectricalCharge * vertex2.ElectricalCharge) / (distance * distance)

    Provided that the electrical charges are equal in sign (which is the most common case), the ellectrical force is repulsive and decreases in an inverse square law as the distance between the vertices is increased.

    The ElectricalCharge 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.Dom.NAttribute
          Nevron.Diagram.Layout.NForce
             Nevron.Diagram.Layout.NElectricalForce

    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