Real-time sensor streaming lifecycle manager. More...
#include <rtsensorstreammanager.h>
Signals | |
| void | colorsAvailable (const QString &surfaceKey, const QVector< uint32_t > &colors) |
Public Member Functions | |
| RtSensorStreamManager (QObject *parent=nullptr) | |
| ~RtSensorStreamManager () override | |
| bool | startStreaming (const QString &modality, const SensorFieldMapper &fieldMapper, const QMap< QString, std::shared_ptr< BrainSurface > > &surfaces) |
| void | stopStreaming () |
| bool | isStreaming () const |
| QString | modality () const |
| void | pushData (const Eigen::VectorXf &data) |
| void | setInterval (int msec) |
| void | setLooping (bool enabled) |
| void | setAverages (int numAvr) |
| void | setColormap (const QString &name) |
Real-time sensor streaming lifecycle manager.
Manages real-time sensor data streaming via RtSensorDataController.
BrainView delegates all sensor streaming operations to this component, keeping its own code free of the RtSensorDataController lifecycle.
Definition at line 56 of file rtsensorstreammanager.h.

|
explicit |
Constructor.
| [in] | parent | Parent QObject. |
Definition at line 31 of file rtsensorstreammanager.cpp.
|
override |
Destructor.
Definition at line 38 of file rtsensorstreammanager.cpp.
|
signal |
Emitted when the streaming pipeline produces a new set of per-vertex colours for a sensor surface.
| [in] | surfaceKey | Key of the target surface. |
| [in] | colors | Per-vertex ABGR colour array. |
|
inline |
Definition at line 97 of file rtsensorstreammanager.h.
|
inline |
Definition at line 103 of file rtsensorstreammanager.h.
| void DISP3DLIB::RtSensorStreamManager::pushData | ( | const Eigen::VectorXf & | data | ) |
Push a single measurement vector into the streaming queue.
| [in] | data | One sample of sensor values; ignored if no controller exists. |
Definition at line 152 of file rtsensorstreammanager.cpp.
| void DISP3DLIB::RtSensorStreamManager::setAverages | ( | int | numAvr | ) |
Set the number of averages for smoothing.
| [in] | numAvr | Number of consecutive samples averaged per frame. |
Definition at line 176 of file rtsensorstreammanager.cpp.
| void DISP3DLIB::RtSensorStreamManager::setColormap | ( | const QString & | name | ) |
Set the colormap used for colour mapping.
| [in] | name | Colormap name (e.g. "MNE", "Jet"). |
Definition at line 184 of file rtsensorstreammanager.cpp.
| void DISP3DLIB::RtSensorStreamManager::setInterval | ( | int | msec | ) |
Set the streaming playback interval in milliseconds.
| [in] | msec | Interval between streamed samples in milliseconds. |
Definition at line 160 of file rtsensorstreammanager.cpp.
| void DISP3DLIB::RtSensorStreamManager::setLooping | ( | bool | enabled | ) |
Enable or disable looping of the streaming queue.
| [in] | enabled | True to replay the queue from the start when it ends. |
Definition at line 168 of file rtsensorstreammanager.cpp.
| bool DISP3DLIB::RtSensorStreamManager::startStreaming | ( | const QString & | modality, |
| const SensorFieldMapper & | fieldMapper, | ||
| const QMap< QString, std::shared_ptr< BrainSurface > > & | surfaces ) |
Start real-time sensor streaming for the given modality.
Reads mapping matrices, pick vectors, evoked data, and colourmap from the provided fieldMapper. Validates that the target surface key exists in surfaces.
| [in] | modality | "MEG" or "EEG". |
| [in] | fieldMapper | Sensor-field mapper with built mapping data. |
| [in] | surfaces | FsSurface map for target-surface validation. |
Definition at line 45 of file rtsensorstreammanager.cpp.
| void DISP3DLIB::RtSensorStreamManager::stopStreaming | ( | ) |
Stop real-time sensor streaming.
Definition at line 138 of file rtsensorstreammanager.cpp.