Skip to content

Nodify_LineConnection

miroiu edited this page Dec 23, 2024 · 1 revision

LineConnection Class

Namespace: Nodify

Assembly: Nodify

Inheritance: ObjectDispatcherObjectDependencyObjectVisualUIElementFrameworkElementShapeBaseConnectionLineConnection

Derived: CircuitConnection, StepConnection

References: ConnectionDirection

Represents a line that has an arrow indicating its BaseConnection.Direction.

public class LineConnection : BaseConnection  

Constructors

LineConnection()

public LineConnection();  

Properties

CornerRadius

The radius of the corners between the line segments.

public double CornerRadius { get; set; }  

Property Value

Double

Methods

AddSmoothCorner(StreamGeometryContext, Point, Point, Point, Double)

protected static void AddSmoothCorner(StreamGeometryContext context, Point start, Point corner, Point end, double radius);  

Parameters

context StreamGeometryContext

start Point

corner Point

end Point

radius Double

DrawDefaultArrowhead(StreamGeometryContext, Point, Point, ConnectionDirection, Orientation)

protected override void DrawDefaultArrowhead(StreamGeometryContext context, Point source, Point target, ConnectionDirection arrowDirection = 0, Orientation orientation = 0);  

Parameters

context StreamGeometryContext

source Point

target Point

arrowDirection ConnectionDirection

orientation Orientation

DrawDirectionalArrowsGeometry(StreamGeometryContext, Point, Point)

protected override void DrawDirectionalArrowsGeometry(StreamGeometryContext context, Point source, Point target);  

Parameters

context StreamGeometryContext

source Point

target Point

DrawLineGeometry(StreamGeometryContext, Point, Point)

protected override ValueTuple<ValueTuple<Point, Point>, ValueTuple<Point, Point>> DrawLineGeometry(StreamGeometryContext context, Point source, Point target);  

Parameters

context StreamGeometryContext

source Point

target Point

Returns

ValueTuple<ValueTuple<Point, Point>, ValueTuple<Point, Point>>

InterpolateLine(Point, Point, Point, Point, Double)

protected static ValueTuple<ValueTuple<Point, Point>, Point> InterpolateLine(Point p0, Point p1, Point p2, Point p3, double t);  

Parameters

p0 Point

p1 Point

p2 Point

p3 Point

t Double

Returns

ValueTuple<ValueTuple<Point, Point>, Point>

InterpolateLine(Point, Point, Point, Double)

protected static ValueTuple<ValueTuple<Point, Point>, Point> InterpolateLine(Point p0, Point p1, Point p2, double t);  

Parameters

p0 Point

p1 Point

p2 Point

t Double

Returns

ValueTuple<ValueTuple<Point, Point>, Point>

InterpolateLineSegment(Point, Point, Double)

protected static Point InterpolateLineSegment(Point p0, Point p1, double t);  

Parameters

p0 Point

p1 Point

t Double

Returns

Point

Clone this wiki locally