Skip to content

Sample layer visualization - #341

Merged
rozyczko merged 3 commits into
developfrom
layer_display
Sep 1, 2026
Merged

Sample layer visualization#341
rozyczko merged 3 commits into
developfrom
layer_display

Conversation

@rozyczko

@rozyczko rozyczko commented Sep 1, 2026

Copy link
Copy Markdown
Member

New "Structure" tab on the Model page, providing a schematic visualization of the layer stack in the sample model. This view displays each layer as a colored box with interactive features and updates live as the model changes.

Frontend: Structure Tab and Visualization

  • Added a "Structure" tab to the Model page, with a new StructureView.qml component that renders the schematic stack, including colored boxes per layer, tooltips, selection on click, a legend, and a total thickness caption. The view updates live on edits and after fits.
  • Updated documentation to describe the new Structure view and its features.

Backend: Data Provision and Synchronization

  • Implemented the flatten function in structure.py to generate the schematic layer stack, legend, and total thickness, with logic for collapsed repeating multilayers and color assignment.
  • Exposed new properties (structure, structureLegend, structureTotalThickness) and change signals in the Python backend (sample.py), with caching and cache invalidation on relevant model changes.
  • Connected model and fit-related signals to trigger updates of the structure view, ensuring it stays in sync with all relevant changes.

Mock Backend and QML Integration

  • Added matching properties to the mock backend and integrated the new structure properties into the QML backend wrapper

@rozyczko rozyczko added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] high Should be prioritized soon labels Sep 1, 2026
@rozyczko rozyczko changed the title initial version Sample layer visualization Sep 1, 2026
@rozyczko
rozyczko merged commit a2ec23c into develop Sep 1, 2026
16 checks passed
@rozyczko
rozyczko deleted the layer_display branch September 1, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] high Should be prioritized soon [scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant