# sec_interp.core.types module

Common type aliases for SecInterp plugin.

This module defines type aliases used throughout the codebase to improve type hint readability and maintainability.

class sec_interp.core.types.FieldType(*values)

  Bases: `IntEnum`

  Core-safe field types mapping to QVariant.Type values.

  This allows the core module to perform type validation WITHOUT direct dependencies on PyQt components.

  NULL = 0
  BOOL = 1
  INT = 2
  DOUBLE = 6
  STRING = 10
  LONG_LONG = 4
  DATE = 14
  DATE_TIME = 16

sec_interp.core.types.ProfileData

  List of (distance, elevation) tuples representing a topographic profile.

  alias of `list`[`tuple`[`float`, `float`]]

sec_interp.core.types.LayerDict

  Dictionary mapping layer names to QgsVectorLayer objects.

  alias of `dict`[`str`, `QgsVectorLayer`]

sec_interp.core.types.SettingsDict

  Dictionary of plugin settings and configuration values.

  alias of `dict`[`str`, `Any`]

sec_interp.core.types.ExportSettings

  Dictionary of export configuration parameters.

  alias of `dict`[`str`, `Any`]

sec_interp.core.types.ValidationResult

  Tuple of (is_valid, error_message) from validation functions.

  alias of `tuple`[`bool`, `str`]

sec_interp.core.types.PointList

  List of QgsPointXY objects.

  alias of `list`[`QgsPointXY`]

class sec_interp.core.types.StructureMeasurement(distance: float, elevation: float, apparent_dip: float, original_dip: float, original_strike: float, attributes: dict[str, Any])

  Bases: `object`

  Represents a projected structural measurement.

  distance: float
  elevation: float
  apparent_dip: float
  original_dip: float
  original_strike: float
  attributes: dict[str, Any]

class sec_interp.core.types.GeologySegment(unit_name: str, geometry: QgsGeometry, attributes: dict[str, Any], points: list[tuple[float, float]])

  Bases: `object`

  Represents a geological unit segment along the profile.

  unit_name: str
  geometry: QgsGeometry
  attributes: dict[str, Any]
  points: list[tuple[float, float]]

sec_interp.core.types.StructureData

  List of (distance, apparent_dip) tuples representing projected structural measurements.

  alias of `list`[`StructureMeasurement`]

sec_interp.core.types.GeologyData

  List of (distance, elevation, unit_name) tuples representing geological intersections.

  alias of `list`[`GeologySegment`]