RuleMark3D
public sealed class RuleMark3D : ChartMark3D, IChart3DMark, IChart3DDataMark, IChartMarkA 3D rule mark: a thin line running from RuleMark3D.Start to RuleMark3D.End.
Used for reference lines, drop-down guides from surface vertices, anchor-to-axis
lollipops. Swift Charts equivalent: RuleMark(x:y:z:). A rule up to the default width of 0.008 plot units draws as
a line in its own color, like the axis lines; a wider rule draws as a lit tube.
Constructors
Section titled “Constructors”
RuleMark3D(DataPoint3D, DataPoint3D)
Section titled “RuleMark3D(DataPoint3D, DataPoint3D)”public RuleMark3D(DataPoint3D start, DataPoint3D end)Creates a rule from start to end in data coordinates, 0.008 plot units wide;
its ChartMark3D.DataPoint3D, which tooltips report, is their midpoint.
Parameters
| Name | Type |
|---|---|
start | ChartGuru.DataPoint3D |
end | ChartGuru.DataPoint3D |
RuleMark3D(PlottableValueRef, PlottableValueRef, PlottableValueRef)
Section titled “RuleMark3D(PlottableValueRef, PlottableValueRef, PlottableValueRef)”public RuleMark3D(PlottableValueRef x, PlottableValueRef y, PlottableValueRef z)Swift Charts-style constructor: RuleMark(x: .Value(…), y: .Value(…), z: .Value(…)).
Creates a point-to-origin rule along the Y axis at the given X/Z position.
Parameters
| Name | Type |
|---|---|
x | ChartGuru.PlottableValueRef |
y | ChartGuru.PlottableValueRef |
z | ChartGuru.PlottableValueRef |
Methods
Section titled “Methods”
Along(Vector3, Axis, float)
Section titled “Along(Vector3, Axis, float)”public static RuleMark3D Along(Vector3 origin, RuleMark3D.Axis axis, float extent)Axis-aligned rule: pins two of the three components and varies the third.
Parameters
| Name | Type |
|---|---|
origin | UnityEngine.Vector3 |
axis | ChartGuru.RuleMark3D.Axis |
extent | System.Single |
Returns
ChartGuru.RuleMark3D
Width(float)
Section titled “Width(float)”public RuleMark3D Width(float w)Sets the rule’s width in plot units, at least 0.0005: up to the default 0.008 it draws as an unlit line in its color, like the axis lines, and wider as a lit tube of that diameter.
Parameters
| Name | Type |
|---|---|
w | System.Single |
Returns
ChartGuru.RuleMark3D
BuildMesh(Chart3DMeshContext)
Section titled “BuildMesh(Chart3DMeshContext)”public override void BuildMesh(Chart3DMeshContext ctx)Write triangles / instanced draws for this mark into the context registry.
Parameters
| Name | Type |
|---|---|
ctx | ChartGuru.Chart3DMeshContext |
Clone()
Section titled “Clone()”public override IChartMark Clone()Creates an independent copy of this rule with its ends, width and style; later changes to either mark do not affect the other.
Returns
ChartGuru.IChartMark
Properties
Section titled “Properties”
public DataPoint3D End { get; }Returns
ChartGuru.DataPoint3D
LineWidth
Section titled “LineWidth”public float LineWidth { get; }Returns
System.Single
MarkType
Section titled “MarkType”public override ChartType MarkType { get; }Returns
ChartGuru.ChartType