Spline Method (Viewport Object)

Scope: Schematic editor

Object: Viewport Object

Prerequisites: None

Draws a spline with specified control points.

Usage

Viewport.Spline(ByVal Type As VdSplineType, ByVal Order As VdSplineOrder, ByVal Granularity As Integer, ByVal XArrayOfPoints As Variant, ByVal YArrayOfPoints As Variant, ByVal Arrowhead As VdArrowType, ByVal ArrowWidth As Integer, ByVal ArrowLength As Integer, ByVal ArrowFill As VdFillStyle)

Arguments

Type

Specify the spline type. This argument uses the form VdSplineType Enum.

Order

Specifies the order of the spline. Order controls the continuity of the curve. A value of SHARP causes the curve to come close to but may not actually pass through a control point. If you actually want the curve to pass through the control point you can “emphasize” any control point by simply replicating the coordinates of that point in the input control point list. A value of SMOOTH makes the curve more continuous and a value of ROUND makes it even more continuous. This argument uses the form VdSplineOrder Enum.

Granularity

Granularity controls the smoothness of the curve. The spline is computed as a series of individual points from which line segments are drawn. Granularity controls exactly how many line segments are actually drawn between successive control points. A low value produces a low-resolution spline which may look almost look like a polygon line and higher numbers produce smoother curves. Since this number is multiplied by the number of control points try to keep it as low as possible. A value of 10 is a good place to start.

XArrayOfPoints

Array of X ordinate values. Must be a single dimensioned array.

YArrayOfPoints

Array of Y ordinate values. Must be a single dimensioned array.

Arrowhead

Indicates how arrow heads should be drawn. This argument uses the form VdArrowType Enum.

ArrowWidth

Specifies the arrowhead width.

ArrowLength

Specifies the arrowhead length.

ArrowFill

Specifies the fill style for the arrowhead.