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

Background worker that turns queued sensor packets into per-vertex ABGR colour buffers via a dense mapping matrix. More...

#include "../disp3D_global.h"
#include <QObject>
#include <QList>
#include <QMutex>
#include <QVector>
#include <Eigen/Core>
#include <memory>
Include dependency graph for rtsensordataworker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DISP3DLIB::RtSensorDataWorker
 Background worker for real-time sensor data streaming. More...

Namespaces

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

Detailed Description

Background worker that turns queued sensor packets into per-vertex ABGR colour buffers via a dense mapping matrix.

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

On every timer tick the worker pops the next packet (or averages the queue), multiplies it by the dense (n_vertices x n_channels) mapping matrix produced by SensorFieldMapper, applies symmetric normalisation around zero, maps through the active MEG / EEG colormap and packs the result as ABGR uint32 ready for direct upload into the target BrainSurface colour slot.

All public setters are mutex-protected so the controller can swap the mapping matrix or change colormap mid-stream.

Definition in file rtsensordataworker.h.