WireShape

References
public abstract class WireShape
A shape representing a wire connecting two parameters.

Constructors

WireShape

#
Create a wire between two parameters.
protected WireShape(
PointF
source,
Source parameter.
PointF
target
Target parameter.
)

Properties

Bounds

#
Gets the bounds of the spline shape.
public abstract RectangleF Bounds { get; }

ShapeType

#
Gets or sets the type which defines wire shapes. If unset, the fallback logic will revert to WireShapeDefault. If you assign a type, it must derive from WireShape and provide a public constructor which takes two PointF structs.
public static Type ShapeType { get; set; }

Source

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

Target

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

Methods

Create

#
Create a new wire shape between two parameter attributes. This relies on the type assigned to the static ShapeType property.
public static WireShape Create()

Create

#
Create a new wire shape between two parameter attributes. This relies on the type assigned to the static ShapeType property.
public static WireShape Create(
PointF
source,
PointF
target
)

DistanceTo

#
Measure the minimum distance between this wire and some point.
public abstract float DistanceTo(
PointF
point
)

Draw

#
Draw this shape using the given pen.
public abstract void Draw(
Graphics
graphics,
Pen
edge
)

Intersects

#
Test whether this wire-shape intersect the given box.
public abstract bool Intersects(
RectangleF
box
)

IsCoincident

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

Project

#
Find the point on the wire closest to a search point.
public abstract PointF Project(
PointF
point
)