QStandardItemModel hierarchy that organises every 3-D scene object (surfaces, sensors, sources, networks) for a QTreeView. More...
#include "../disp3D_global.h"#include <QStandardItemModel>#include <fs/fs_surface.h>#include <fs/fs_annotation.h>#include <mne/mne_bem_surface.h>#include <mne/mne_source_spaces.h>#include <fiff/fiff_dig_point.h>#include <connectivity/network/network.h>

Go to the source code of this file.
Classes | |
| class | BrainTreeModel |
| Hierarchical item model organizing all 3-D scene objects (surfaces, sensors, sources, networks) for QTreeView. More... | |
Namespaces | |
| namespace | INVLIB |
| Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting). | |
QStandardItemModel hierarchy that organises every 3-D scene object (surfaces, sensors, sources, networks) for a QTreeView.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
BrainTreeModel is the single source of truth for what is in the scene: each renderable owns a AbstractTreeItem-derived row and exposes its visibility, transform, colour and alpha through the standard Qt item-data roles. The tree is structured by subject → modality → instance so a multi-subject study can be browsed and toggled from a single side-panel.
BrainView listens to dataChanged / rowsInserted on the model, rebuilds its scene-map entries on the fly and pushes the resulting render-state into the QRhi pipeline — no other controller needs to know that a surface was added or hidden.
Definition in file braintreemodel.h.