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

  • LidaxeManager owns the active reference (the Lidaxe instance) and all menu state (_menu hierarchy + 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 the Lidaxe instance and calls menu_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) inside WolfMapViewer.__init__.

_viewer[source]
active: wolfhece.hydrology.flowaccdir.Lidaxe | None = None[source]
_menu: wx.Menu | None = None[source]
_item_pick: wx.MenuItem | None = None[source]
_item_picks: wx.MenuItem | None = None[source]
_item_picks_border: wx.MenuItem | None = None[source]
_item_path: wx.MenuItem | None = None[source]
_item_acc_onzoom: wx.MenuItem | None = None[source]
_item_dir_onzoom: wx.MenuItem | None = None[source]
activate() None[source]

Create a Lidaxe instance and build the menu (idempotent).

menu_build() None[source]

Create and append the ‘Lidaxe’ menu to the viewer menubar.

Safe to call multiple times — only the first call has any effect.

_on_find_catchment(event: wx.MenuEvent) None[source]
_on_find_catchments(event: wx.MenuEvent) None[source]
_on_find_catchments_border(event: wx.MenuEvent) None[source]
_on_find_path(event: wx.MenuEvent) None[source]
_on_load_acc_onzoom(event: wx.MenuEvent) None[source]
_on_load_dir_onzoom(event: wx.MenuEvent) None[source]