v2.0.0
Loading...
Searching...
No Matches
multimodalscene.h File Reference

Host-agnostic controller that owns the ordered scene-layer stack (MRI slice, BEM, cortex, sensors, dipoles, networks, overlays). More...

#include "../disp3D_global.h"
#include "pickresult.h"
#include <QHash>
#include <QObject>
#include <QString>
#include <QVector>
#include <QVector3D>
#include <functional>
#include <memory>
Include dependency graph for multimodalscene.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DISP3DLIB::SceneLayer
 Opaque, type-erased handle to a layer payload. More...
class  DISP3DLIB::MultimodalScene
 Host-app-agnostic controller that owns the ordered renderable set and dispatches picks back to the producing layer. More...

Namespaces

namespace  DISP3DLIB
 3-D brain visualisation using the Qt RHI rendering backend.

Enumerations

enum class  DISP3DLIB::SceneLayerKind {
  DISP3DLIB::BrainSurface = 0 , DISP3DLIB::MriSlice , DISP3DLIB::Sensor , DISP3DLIB::Helmet ,
  DISP3DLIB::Electrode , DISP3DLIB::Dipole , DISP3DLIB::SourceOverlay , DISP3DLIB::Network ,
  DISP3DLIB::Custom
}
 Modality of a layer in the multimodal scene. More...

Detailed Description

Host-agnostic controller that owns the ordered scene-layer stack (MRI slice, BEM, cortex, sensors, dipoles, networks, overlays).

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.2.1
Date
May 2026

MultimodalScene composes the disp3D primitives into a single depth-sorted layer stack so the GUI shell does not need to know the per-modality render order. Each SceneLayer carries its renderable, a sort key and a visibility flag; the controller iterates layers in order and issues the corresponding draw calls.

It also routes pick events from RayPicker through every layer and returns a uniform PickResult to the host, hiding the per-primitive intersection logic.

Definition in file multimodalscene.h.