Skip to content

LODController

ClassChartGuruChartGuru
public class LODController

Controls Level of Detail for chart rendering. Dynamically adjusts quality based on point count and viewport.

public int CurrentLODLevel { get; }

No description is available for this member.

Returns

System.Int32 — No return description is available.

public LODSettings Settings { get; }

No description is available for this member.

Returns

ChartGuru.LODSettings — No return description is available.

public LODController(LODSettings settings = null)

No description is available for this member.

Parameters

Name Type Description
settings ChartGuru.LODSettings

public bool Update(int pointCount, Vector2 viewportSize)

Update LOD level based on point count and viewport.

Parameters

Name Type Description
pointCount System.Int32 Total number of data points.
viewportSize UnityEngine.Vector2 Size of the chart viewport in pixels.

Returns

System.Boolean — True if LOD level changed.

public int GetDecimationFactor()

Get the decimation factor for the current LOD level. Returns 1 for full detail, higher values skip points.

Returns

System.Int32 — No return description is available.

public float GetLineWidthMultiplier()

Get the line width multiplier for the current LOD level.

Returns

System.Single — No return description is available.

public float GetPointSizeMultiplier()

Get the point size multiplier for the current LOD level.

Returns

System.Single — No return description is available.

public bool ShouldEnableAntiAliasing()

Check if anti-aliasing should be enabled at current LOD.

Returns

System.Boolean — No return description is available.

public bool ShouldEnableAnimations()

Check if animations should be enabled at current LOD.

Returns

System.Boolean — No return description is available.

public int GetCircleSegments()

Get the number of circle segments for pie/donut at current LOD.

Returns

System.Int32 — No return description is available.

public int GetCurveSegments()

Get the number of curve segments for splines at current LOD.

Returns

System.Int32 — No return description is available.

public void ForceLODLevel(int level)

Force a specific LOD level (for debugging).

Parameters

Name Type Description
level System.Int32