brain_deer.presentation.qt.viewer_panel¶
Image viewer panel of BrainDeer 🧠🦌 Created on Wed Apr 9 08:33:22 2025 @author: maikemustin
Performance: optional verbose tracing via env BRAIN_DEER_VIEWER_TRACE=1 (off by default).
Classes¶
Improved Brain3D viewer that fixes the "dotted clouds" issue. |
Module Contents¶
- class brain_deer.presentation.qt.viewer_panel.Brain3DView(parent=None)¶
Bases:
PyQt5.QtWidgets.QWidgetImproved Brain3D viewer that fixes the “dotted clouds” issue.
This class maintains the same API as the original Brain3DView but uses improved data handling principles from the successful 2D views.
- load_volume(nifti_image)¶
Load volume data using improved data handling (THE KEY FIX).
This method maintains API compatibility while using the improved data processing that fixes the “dotted clouds” issue.
- clear()¶
Clear all actors from the scene.
- update_rendering()¶
Update the 3D view rendering.
- update_crosshair_position(position)¶
Update crosshair position (compatibility method).
- set_brain_model_visible(visible)¶
Set brain model visibility.
- set_brain_model_opacity(opacity)¶
Set brain model opacity.
- set_brain_model_threshold(threshold)¶
Set brain model threshold (compatibility method).
- show_slice(plane_name, visible)¶
Show/hide slice plane (compatibility method).
- toggle_3d_crosshair_visibility(visible)¶
Toggle 3D crosshair visibility.
- set_3d_crosshair_color(color_name)¶
Set 3D crosshair color.
- add_tractogram_actor(actor)¶
Add tractogram actor.
- clear_tractograms()¶
Clear all tractograms.
- set_tractogram_visibility(file_path, visible)¶
Set tractogram visibility.
- showEvent(event)¶
Handle widget show event.