Vertex

These are common commands that apply to all widgets that have them injected.

Members

Functions

getJoinStyle
string getJoinStyle()

Get the join style.

getSmoothMethod
string getSmoothMethod()

Get the smooth method.

getSmoothSplineSteps
int getSmoothSplineSteps()

Get smooth method spline steps.

setJoinStyle
auto setJoinStyle(string joinStyle)

Specifies the ways in which joints are to be drawn at the vertices of the line. If this option is not specified then it defaults to round. If the line only contains two points then this option is irrelevant.

setSmoothMethod
auto setSmoothMethod(string smoothMethod)

If the smoothing method is bezier, this indicates that the line should be drawn as a curve, rendered as a set of quadratic splines: one spline is drawn for the first and second line segments, one for the second and third, and so on. Straight-line segments can be generated within a curve by duplicating the end-points of the desired line segment. If the smoothing method is raw, this indicates that the line should also be drawn as a curve but where the list of coordinates is such that the first coordinate pair (and every third coordinate pair thereafter) is a knot point on a cubic bezier curve, and the other coordinates are control points on the cubic bezier curve. Straight line segments can be generated within a curve by making control points equal to their neighbouring knot points. If the last point is a control point and not a knot point, the point is repeated (one or two times) so that it also becomes a knot point.

setSmoothSplineSteps
auto setSmoothSplineSteps(int splineSteps)

Specifies the degree of smoothness desired for curves: each spline will be approximated with number line segments.

Meta