-
-
Notifications
You must be signed in to change notification settings - Fork 234
Nodify_LineConnection
Namespace: Nodify
Assembly: Nodify
Inheritance: Object → DispatcherObject → DependencyObject → Visual → UIElement → FrameworkElement → Shape → BaseConnection → LineConnection
Derived: CircuitConnection, StepConnection
References: ConnectionDirection
Represents a line that has an arrow indicating its BaseConnection.Direction.
public class LineConnection : BaseConnection
public LineConnection();
The radius of the corners between the line segments.
public double CornerRadius { get; set; }
Property Value
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
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
protected override void DrawDirectionalArrowsGeometry(StreamGeometryContext context, Point source, Point target);
Parameters
context
StreamGeometryContext
source
Point
target
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>>
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>
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>
protected static Point InterpolateLineSegment(Point p0, Point p1, double t);
Parameters
p0
Point
p1
Point
t
Double
Returns