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

Top-level QRhiWidget that hosts the 3-D scene, drives camera interaction and exposes the multi-view + live-marker API. More...

#include "../disp3D_global.h"
#include "../core/rendertypes.h"
#include "multiviewlayout.h"
#include "core/viewstate.h"
#include "input/cameracontroller.h"
#include "scene/sensorfieldmapper.h"
#include "scene/sourceestimatemanager.h"
#include "scene/rtsensorstreammanager.h"
#include <fiff/fiff_coord_trans.h>
#include <fiff/fiff_dig_point.h>
#include <QRhiWidget>
#include <QMap>
#include <QElapsedTimer>
#include <memory>
#include <QQuaternion>
#include <Eigen/Core>
#include <QRect>
#include <QImage>
Include dependency graph for brainview.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LiveMarker
 Lightweight live overlay marker rendered as a single sphere. More...
class  BrainView
 Top-level QWidget hosting the QRhi-based 3-D brain visualization with mouse interaction and multi-view support. More...

Namespaces

namespace  DISP3DLIB
 3-D brain visualisation using the Qt RHI rendering backend.
namespace  CONNECTIVITYLIB
 Functional connectivity metrics (coherence, PLV, cross-correlation, etc.).

Detailed Description

Top-level QRhiWidget that hosts the 3-D scene, drives camera interaction and exposes the multi-view + live-marker API.

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.0.0
Date
March 2026

BrainView is the public face of disp3D — the QWidget that any host application embeds to get an interactive cortical / sensor / source scene. It connects BrainTreeModel data changes to scene rebuilds, drives CameraController from the Qt mouse / wheel events, switches between single- and multi-view layouts through MultiViewLayout and delegates the actual drawing to BrainRenderer.

Live overlays such as digitizer tracker markers or AR avatars are exposed through the lightweight LiveMarker struct so the host GUI can spray transient annotations on the scene without going through the tree model.

Definition in file brainview.h.