wolfhece._lidaxe_manager
Lidaxe (flow-accumulation / catchment delineation) companion for WolfMapViewer.
All Lidaxe-related state and logic lives here.
WolfMapViewer holds a single instance as self._lidaxe and exposes
one-line delegators so external callers remain unaffected.
Design notes
LidaxeManagerowns theactivereference (theLidaxeinstance) and all menu state (_menuhierarchy + item references).The wx parent for dialogs is always
self._viewer.menu_build()is idempotent — the first call creates and appends the ‘Lidaxe’ menu to the menubar; subsequent calls are no-ops.on_menu()is bound to the wx menu and dispatches all Lidaxe commands.activate()creates theLidaxeinstance and callsmenu_build().
Module Contents
- class wolfhece._lidaxe_manager.LidaxeManager(viewer: wolfhece.PyDraw.WolfMapViewer)[source]
Companion object that owns Lidaxe state for WolfMapViewer.
Instantiated once as
viewer._lidaxe = LidaxeManager(viewer)insideWolfMapViewer.__init__.- active: wolfhece.hydrology.flowaccdir.Lidaxe | None = None[source]
Create and append the ‘Lidaxe’ menu to the viewer menubar.
Safe to call multiple times — only the first call has any effect.