# sec_interp.gui.lod_calculator module

LOD Calculation for SecInterp preview.

class sec_interp.gui.lod_calculator.LODCalculator(canvas: QgsMapCanvas)

  Bases: `object`

  Calculates Level of Detail (LOD) based on canvas zoom levels.

  __init__(canvas: QgsMapCanvas) → None

    Initialize the LOD calculator.

    Parameters:

      canvas – The map canvas to calculate LOD for.

  calculate_max_points() → int

    Determine ideal point density based on current zoom.

    Returns:

      The maximum number of points to render.

    Return type:

      int