Skip to content

Commit edbb561

Browse files
committed
mapviewer qt app
1 parent 13495a3 commit edbb561

5 files changed

Lines changed: 2914 additions & 0 deletions

File tree

python/themachinethatgoesping/pingprocessing/widgets/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@
1616
from .echogramviewer_core import EchogramCore
1717
from .videoframes import VideoFrames
1818
from .mapviewer_pyqtgraph import MapViewerPyQtGraph
19+
from .mapviewer_core import MapCore
20+
from .mapviewer_jupyter import MapViewerJupyter
21+
from .mapviewer_qt import MapViewerQt
1922
from . import tools

python/themachinethatgoesping/pingprocessing/widgets/control_spec.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,3 +397,43 @@ def keys(self):
397397
["param_help"],
398398
],
399399
}
400+
401+
402+
# =========================================================================
403+
# Map viewer control definitions (shared across backends)
404+
# =========================================================================
405+
406+
# Available colormaps for map layers
407+
MAP_COLORMAPS = [
408+
"viridis", "terrain", "gray", "plasma", "inferno", "magma",
409+
"cividis", "coolwarm", "RdBu", "Blues", "Greens", "ocean",
410+
]
411+
412+
# -- Navigation / action controls --
413+
MAP_NAV_SPECS: List[ControlSpecType] = [
414+
ButtonSpec("btn_zoom_fit", "Fit All", tooltip="Zoom to fit all layers", width="70px"),
415+
ButtonSpec("btn_zoom_track", "Fit Track", tooltip="Zoom to fit tracks", width="70px"),
416+
ButtonSpec("btn_zoom_wci", "Go to WCI", tooltip="Pan to current WCI position", width="80px"),
417+
ButtonSpec("btn_refresh_tracks", "Refresh", tooltip="Refresh tracks from connected viewers", width="70px"),
418+
CheckboxSpec("auto_update", "Auto-update map", value=True),
419+
CheckboxSpec("auto_center_wci", "Follow WCI position", value=False),
420+
]
421+
422+
# -- Misc / hover --
423+
MAP_MISC_SPECS: List[ControlSpecType] = [
424+
LabelSpec("lbl_coords", "Lat: --, Lon: --", width="300px"),
425+
]
426+
427+
# -- Colorbar controls --
428+
MAP_COLORBAR_SPECS: List[ControlSpecType] = [
429+
DropdownSpec("colorbar_layer", "Colorbar:",
430+
options=[("None", None)], value=None, width="200px"),
431+
]
432+
433+
# Map tab layout for Qt dock-based viewer
434+
MAP_TAB_LAYOUT: Dict[str, List[List[str]]] = {
435+
"Navigation": [
436+
["btn_zoom_fit", "btn_zoom_track", "btn_zoom_wci", "btn_refresh_tracks"],
437+
["auto_update", "auto_center_wci"],
438+
],
439+
}

0 commit comments

Comments
 (0)