app¶
Trame web application for FEM mesh visualization.
Usage: visfem, or python -m visfem.app. VISFEM_PRELOAD=1 preloads every mesh; VISFEM_LOG_LEVEL sets the log level (default WARNING).
VisfemApp
¶
Bases: TrameApp
Main Trame application for VisFEM.
Load project metadata, build plotter and state, assemble the UI on server.
reset_camera
async
¶
Restore the camera to the initial pose captured at dataset load.
apply_clim_override
¶
Apply user-entered scalar range to the active continuous field.
select_patient
async
¶
Switch to patient patient of dataset dataset_key.
select_scalar_field
async
¶
Re-render the active dataset with scalar field field.
toggle_color_reversed
async
¶
Flip the color order of the active palette or colormap and re-render.
select_color_scheme
async
¶
Set name as the active palette or colormap and re-render the scene.
set_category_color
async
¶
Override category name with color and recolour the scene in place.
reset_category_colors
async
¶
Clear the override of category name, or every override in scope when None, and recolour.