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 LODController(LODSettings settings = null)

Creates a level-of-detail controller at full detail, using default thresholds when no settings are supplied.

Parameters

Name Type
settings ChartGuru.LODSettings

public int GetDecimationFactor()

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

Returns

System.Int32

public float GetLineWidthMultiplier()

Get the line width multiplier for the current LOD level.

Returns

System.Single

public float GetPointSizeMultiplier()

Get the point size multiplier for the current LOD level.

Returns

System.Single

public bool ShouldEnableAntiAliasing()

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

Returns

System.Boolean

public bool ShouldEnableAnimations()

Check if animations should be enabled at current LOD.

Returns

System.Boolean

public int GetCircleSegments()

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

Returns

System.Int32

public int GetCurveSegments()

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

Returns

System.Int32

public void ForceLODLevel(int level)

Force a specific LOD level (for debugging).

Parameters

Name Type
level System.Int32

public int CurrentLODLevel { get; }

Returns

System.Int32

public LODSettings Settings { get; }

Returns

ChartGuru.LODSettings