Skip to content

Line3DMark

ClassChartGuruChartGuru.3D
public class Line3DMark : ChartMark3D, IChart3DMark, IChart3DDataMark, IChartMark

3D line mark: one point of a polyline keyed by series. Chart3DMeshBuilder collects the Line3DMarks of a series and draws a tube through them, curved by the first mark's Line3DMark.InterpolationMethodValue. A Chart Guru extension: Swift Charts 3D has no line mark.

public Line3DMark(float x, float y, float z)

Creates one point of a 3D line at data coordinates (x, y, z); the line marks that share its series key join in chart order into one tube.

Parameters

NameType
xSystem.Single
ySystem.Single
zSystem.Single
public Line3DMark(DataPoint3D p)

Creates one point of a 3D line at the coordinates of p, keeping the point’s identity and other fields.

Parameters

NameType
pChartGuru.DataPoint3D

public Line3DMark RibbonThickness(float t)

Sets the radius of the line’s tube, or the half thickness of an area’s slab, in plot units.

Parameters

NameType
tSystem.Single

Returns

ChartGuru.Line3DMark

InterpolationMethod(InterpolationMethod, float)

Section titled “InterpolationMethod(InterpolationMethod, float)”
public Line3DMark InterpolationMethod(InterpolationMethod method, float tension = 0.5)

Curves the series through its points like 2D lines and areas: Catmull-Rom, cardinal with tension, monotone or natural cubics, or steps. Swift Charts equivalent: .interpolationMethod(_:).

Parameters

NameType
methodChartGuru.InterpolationMethod
tensionSystem.Single

Returns

ChartGuru.Line3DMark

public override void BuildMesh(Chart3DMeshContext ctx)

Write triangles / instanced draws for this mark into the context registry.

Parameters

NameType
ctxChartGuru.Chart3DMeshContext
public override IChartMark Clone()

Creates an independent copy of this line point with its position, tube radius, interpolation and style; later changes to either mark do not affect the other.

Returns

ChartGuru.IChartMark

protected void CopyLine3DStateTo(Line3DMark target)

Copies what ChartMark3D.CopyCommon3DStateTo(ChartMark3D) copies plus the tube radius or slab thickness, interpolation and tension onto target, for ChartMark.Clone() in derived marks.

Parameters

NameType
targetChartGuru.Line3DMark

public float RibbonThicknessValue { get; }

The radius of the line’s tube, or the half thickness of an area’s slab, in plot units.

Returns

System.Single

public InterpolationMethod InterpolationMethodValue { get; }

The curve between this series’ points; the series’ first mark decides.

Returns

ChartGuru.InterpolationMethod

public float TensionValue { get; }

The tension of a cardinal curve, from 0 for the Catmull-Rom shape to 1 for straight intervals.

Returns

System.Single

public override ChartType MarkType { get; }

Returns

ChartGuru.ChartType