GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLink Class / AddOrthoPoints Method
this point will already have been added to the stroke by CalculateStroke before calling this method
normally 0, 90, 180, or 270 degrees
CalculateStroke will add this point after calling this method
normally 0, 90, 180, or 270 degrees
In This Topic
    AddOrthoPoints Method
    In This Topic
    This method is called by CalculateStroke when Orthogonal is true and both ports are instances of GoPort and at least one of them have a link spot that is not NoSpot.
    Syntax
    protected virtual void AddOrthoPoints( 
       PointF startFrom,
       float fromDir,
       PointF endTo,
       float toDir
    )

    Parameters

    startFrom
    this point will already have been added to the stroke by CalculateStroke before calling this method
    fromDir
    normally 0, 90, 180, or 270 degrees
    endTo
    CalculateStroke will add this point after calling this method
    toDir
    normally 0, 90, 180, or 270 degrees
    Remarks
    CalculateStroke is responsible for adding the first two and the last two points of the stroke, including startFrom and endTo. This method is responsible for adding any additional points in the middle of the stroke. This method calls GetMidOrthoPosition to determine the distance of the middle segment between the two ports. It also tries to avoid the source node and the destination node. When the AvoidsNodes property is true, this method uses another, more computationally expensive, method for determining the proper path of the link, which may have many segments.
    See Also