Skip to content

layout

Top-level UI assembly for VisFEM.

UICallbacks dataclass

UICallbacks(
    on_select_dataset,
    on_select_xdmf,
    on_select_patient,
    on_select_scalar_field,
    on_select_color_scheme,
    on_toggle_color_reversed,
    on_set_category_color,
    on_reset_category_colors,
    on_apply_clim,
    on_toggle_autoplay,
    on_select_step,
    on_toggle_theme,
    on_toggle_left_panel,
    on_toggle_right_panel,
    on_take_screenshot,
    on_reset_camera,
    on_toggle_xr,
    on_enter_xr,
    on_exit_xr,
)

Server-side callbacks that the UI widgets bind to.

build_ui

build_ui(
    server,
    plotter,
    ctrl,
    organ_groups,
    patients_by_dataset,
    callbacks,
)

Build and return the SinglePageLayout for server, wiring plotter and ctrl to the VTK view and organ_groups, patients_by_dataset and callbacks to the panels.