sec_interp.gui.ui.pages.dem_page module
DEM configuration page.
- class sec_interp.gui.ui.pages.dem_page.DemPage(*args: Any, **kwargs: Any)
Bases:
BasePageConfiguration page for DEM/Raster settings.
- __init__(iface: Any = None, parent: Any = None) None
Initialize DEM page.
- Parameters:
iface – QGIS interface (optional, for resolution calculation).
parent – Parent widget.
- connect_signals() None
Connect internal signals for the DEM page.
- disconnect_signals() None
Disconnect all signals to prevent memory leaks.
- dump() dict[str, Any]
Return the persistable DEM state.
- get_data() dict[str, Any]
Get DEM configuration.
- is_complete() bool
Check if required fields are filled if a layer is selected.
- layer_keys = frozenset({'dem_layer'})
- load(data: dict[str, Any]) None
Apply persisted DEM state.
- reset() None
Reset DEM inputs to defaults.
- set_auto_ve(value: float | None) None
Display the adaptive VE value next to the Auto toggle.
- Parameters:
value – The computed VE factor, or None when not yet available.
- validate() tuple[bool, str]
Validate page settings.
- Returns:
Tuple of (success, error message).
- sec_interp.gui.ui.pages.dem_page.STATS_SAMPLE_SIZE = 250000
Bounded sample size for band statistics (avoids blocking on huge/remote DEMs).