# sec_interp.gui.dialog_interpretation_manager module

Interpretation management module for SecInterp main dialog.

This module handles interpretation polygons, their persistence, and attribute inheritance, decoupling this logic from the main dialog class.

class sec_interp.gui.dialog_interpretation_manager.InterpretationManager(dialog: SecInterpDialog)

  Bases: `object`

  Manages interpretation polygons and their business logic.

  __init__(dialog: SecInterpDialog) → None

    Initialize interpretation manager.

    Parameters:

      dialog – The main dialog instance.

  apply_attribute_inheritance(interpretation: InterpretationPolygon, config: dict[str, Any]) → None

    Inherit attributes from nearest geology or drillhole data.

  handle_interpretation_finished(interpretation: InterpretationPolygon) → None

    Process a finished interpretation polygon.

    Parameters:

      interpretation – The finished interpretation polygon.

  load_interpretations() → None

    Load interpretations from the elected source (Project JSON or Vector Layer).

  save_interpretations() → None

    Save interpretations to the elected source (Project JSON or Vector Layer).

  save_to_layer(layer: Any) → None

    Save interpretation polygons to an external vector layer.

  sync_from_layer(layer: Any) → None

    Synchronize interpretation polygons from an external vector layer.