brain_deer.presentation.qt.scene_3d_controls

Sync and route the left-panel 3D Scene controls to the selected file.

Functions

active_filename(→ str | None)

Primary active file (dropdown / last activated in Files list).

target_filenames(→ list[str])

Files that Appearance / Active-Layer controls should edit.

apply_opacity_for_file(→ None)

Appearance opacity drives 2D + 3D for the bottom-panel active file.

apply_global_smoothing(→ None)

Apply surface smoothing to bottom-panel target file(s) only (not all layers).

apply_material_to_targets(→ None)

Store material keys on target files and push full per-file materials to 3D.

apply_spatial_smooth_for_file(→ None)

Debounced 3D Gaussian smoothing for scalar overlay volumes (2D + 3D).

apply_display_resample_for_file(→ None)

Debounced linear resample for scalar overlay display (2D slices + 3D volume).

Module Contents

brain_deer.presentation.qt.scene_3d_controls.active_filename(main_window) → str | None

Primary active file (dropdown / last activated in Files list).

brain_deer.presentation.qt.scene_3d_controls.target_filenames(main_window) → list[str]

Files that Appearance / Active-Layer controls should edit.

Prefer the bottom Files list multi-selection. Fall back to the primary active file when nothing is selected.

brain_deer.presentation.qt.scene_3d_controls.apply_opacity_for_file(main_window, filename: str, opacity_0_1: float, *, sync_appearance_slider: bool = True, update_2d: bool = True) → None

Appearance opacity drives 2D + 3D for the bottom-panel active file.

brain_deer.presentation.qt.scene_3d_controls.apply_global_smoothing(main_window, value_0_1: float) → None

Apply surface smoothing to bottom-panel target file(s) only (not all layers).

brain_deer.presentation.qt.scene_3d_controls.apply_material_to_targets(main_window, **kwargs) → None

Store material keys on target files and push full per-file materials to 3D.

brain_deer.presentation.qt.scene_3d_controls.apply_spatial_smooth_for_file(main_window, filename: str, sigma: float) → None

Debounced 3D Gaussian smoothing for scalar overlay volumes (2D + 3D).

brain_deer.presentation.qt.scene_3d_controls.apply_display_resample_for_file(main_window, filename: str, factor: int) → None

Debounced linear resample for scalar overlay display (2D slices + 3D volume).