[gui] Show stations on Origins tab map when F9 is toggled#188
Open
comoglu wants to merge 1 commit intoSeisComP:mainfrom
Open
[gui] Show stations on Origins tab map when F9 is toggled#188comoglu wants to merge 1 commit intoSeisComP:mainfrom
comoglu wants to merge 1 commit intoSeisComP:mainfrom
Conversation
Extends EventEdit to display arrival stations on the Origins tab map, mirroring the existing station display on the Focal Mechanism tab. - Generalize StationLayer constructor to QWidget* and refSymbol to Map::Symbol* so the layer can be reused outside FMMap - Add StationLayer and AnnotationLayer to _originMap in init(), both hidden by default - Add updateOriginStations() to populate stations from arrivals: picks resolved via Pick::Find() with DatabaseQuery fallback (owned by PickPtr), station locations from inventory, distance/azimuth fallback when no pick is available - Stations are colored by arrival time residual using scheme colors - Lines are drawn from the selected origin dot to each station - Layer visibility toggled by the existing F9 Show Stations action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EventEditto display arrival stations on the Origins tab map, mirroring the existing station display already implemented on the Focal Mechanism tabStationLayerconstructor toQWidget*andrefSymboltoMap::Symbol*so the layer is reusable outsideFMMapChanges
StationLayer: constructorFMMap*→QWidget*,refSymboltypeExtTensorSymbol*→Map::Symbol*EventEdit::init(): addStationLayerandAnnotationLayerto_originMap, both hidden by defaultEventEdit::updateOriginStations(): populate stations from arrivals — picks resolved viaPick::Find()withDatabaseQueryfallback (owned byPickPtr), station locations from inventory, distance/azimuth fallback when no pick is availableEventEdit::drawStations()/drawStationAnnotations(): extended to also toggle the Origins tab layersEventEdit::currentOriginChanged(): callsupdateOriginStations()on selection changeEventEdit::resetOrigin(): clears station layer and annotationsTest plan