LODController
public class LODControllerControls Level of Detail for chart rendering. Dynamically adjusts quality based on point count and viewport.
Properties
Section titled “Properties”
CurrentLODLevel
Section titled “CurrentLODLevel”public int CurrentLODLevel { get; }No description is available for this member.
Returns
System.Int32 — No return description is available.
Settings
Section titled “Settings”public LODSettings Settings { get; }No description is available for this member.
Returns
ChartGuru.LODSettings — No return description is available.
Constructors
Section titled “Constructors”
LODController(LODSettings)
Section titled “LODController(LODSettings)”public LODController(LODSettings settings = null)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
settings |
ChartGuru.LODSettings |
Methods
Section titled “Methods”
Update(int, Vector2)
Section titled “Update(int, Vector2)”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.
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 — No return description is available.
GetLineWidthMultiplier()
Section titled “GetLineWidthMultiplier()”public float GetLineWidthMultiplier()Get the line width multiplier for the current LOD level.
Returns
System.Single — No return description is available.
GetPointSizeMultiplier()
Section titled “GetPointSizeMultiplier()”public float GetPointSizeMultiplier()Get the point size multiplier for the current LOD level.
Returns
System.Single — No return description is available.
ShouldEnableAntiAliasing()
Section titled “ShouldEnableAntiAliasing()”public bool ShouldEnableAntiAliasing()Check if anti-aliasing should be enabled at current LOD.
Returns
System.Boolean — No return description is available.
ShouldEnableAnimations()
Section titled “ShouldEnableAnimations()”public bool ShouldEnableAnimations()Check if animations should be enabled at current LOD.
Returns
System.Boolean — No return description is available.
GetCircleSegments()
Section titled “GetCircleSegments()”public int GetCircleSegments()Get the number of circle segments for pie/donut at current LOD.
Returns
System.Int32 — No return description is available.
GetCurveSegments()
Section titled “GetCurveSegments()”public int GetCurveSegments()Get the number of curve segments for splines at current LOD.
Returns
System.Int32 — No return description is available.
ForceLODLevel(int)
Section titled “ForceLODLevel(int)”public void ForceLODLevel(int level)Force a specific LOD level (for debugging).
Parameters
| Name | Type | Description |
|---|---|---|
level |
System.Int32 |