WireShapeDefault

WireShape
public sealed class WireShapeDefault : WireShape
A shape representing a wire connecting two parameters.

Constructors

WireShapeDefault

#
public WireShapeDefault(PointF source, PointF target)
source (PointF)
target (PointF)

Properties

Bounds

#
public override RectangleF Bounds { get; }
WireShape.Bounds

Source

public PointF Source { get; }
Gets the instance ID of the source parameter.
inherited fromWireShape

Spline

#
public BezierF Spline { get; }

Target

public PointF Target { get; }
Gets the instance ID of the target parameter.
inherited fromWireShape

Methods

CreateSpline

#
public static BezierF CreateSpline(PointF source, PointF target)
Create the default wire shape between two parameters.
source (PointF)Source point (wire start).
target (PointF)Target point (wire end).

DistanceTo

#
public override float DistanceTo(PointF point)
point (PointF)

Draw

#
public override void Draw(Graphics graphics, Pen edge)
graphics (Graphics)
edge (Pen)
WireShape.Draw

Intersects

#
public override bool Intersects(RectangleF box)
box (RectangleF)

IsCoincident

public bool IsCoincident(PointF point, float tolerance)
Test whether this wire is coincident with some point within some tolerance.
inherited fromWireShape
point (PointF)
tolerance (float)

Project

#
public override PointF Project(PointF point)
point (PointF)