LODController
public class LODControllerControls Level of Detail for chart rendering. Dynamically adjusts quality based on point count and viewport.
Constructors
Section titled “Constructors”
LODController(LODSettings)
Section titled “LODController(LODSettings)”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 |
Methods
Section titled “Methods”
GetDecimationFactor()
Section titled “GetDecimationFactor()”public int GetDecimationFactor()Get the decimation factor for the current LOD level. Returns 1 for full detail, higher values skip points.
Returns
System.Int32
GetLineWidthMultiplier()
Section titled “GetLineWidthMultiplier()”public float GetLineWidthMultiplier()Get the line width multiplier for the current LOD level.
Returns
System.Single
GetPointSizeMultiplier()
Section titled “GetPointSizeMultiplier()”public float GetPointSizeMultiplier()Get the point size multiplier for the current LOD level.
Returns
System.Single
ShouldEnableAntiAliasing()
Section titled “ShouldEnableAntiAliasing()”public bool ShouldEnableAntiAliasing()Check if anti-aliasing should be enabled at current LOD.
Returns
System.Boolean
ShouldEnableAnimations()
Section titled “ShouldEnableAnimations()”public bool ShouldEnableAnimations()Check if animations should be enabled at current LOD.
Returns
System.Boolean
GetCircleSegments()
Section titled “GetCircleSegments()”public int GetCircleSegments()Get the number of circle segments for pie/donut at current LOD.
Returns
System.Int32
GetCurveSegments()
Section titled “GetCurveSegments()”public int GetCurveSegments()Get the number of curve segments for splines at current LOD.
Returns
System.Int32
ForceLODLevel(int)
Section titled “ForceLODLevel(int)”public void ForceLODLevel(int level)Force a specific LOD level (for debugging).
Parameters
| Name | Type |
|---|---|
level |
System.Int32 |
Properties
Section titled “Properties”
CurrentLODLevel
Section titled “CurrentLODLevel”public int CurrentLODLevel { get; }Returns
System.Int32
Settings
Section titled “Settings”public LODSettings Settings { get; }Returns
ChartGuru.LODSettings