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 68 of file rtsensorstreammanager.h.

|
explicit |
Constructor.
| [in] | parent | Parent QObject. |
Definition at line 50 of file rtsensorstreammanager.cpp.
|
override |
Destructor.
Definition at line 57 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 109 of file rtsensorstreammanager.h.
|
inline |
Definition at line 112 of file rtsensorstreammanager.h.
| void RtSensorStreamManager::pushData | ( | const Eigen::VectorXf & | data | ) |
Push a single measurement vector into the streaming queue.
Definition at line 169 of file rtsensorstreammanager.cpp.
| void RtSensorStreamManager::setAverages | ( | int | numAvr | ) |
Set the number of averages for smoothing.
Definition at line 193 of file rtsensorstreammanager.cpp.
| void RtSensorStreamManager::setColormap | ( | const QString & | name | ) |
Set the colormap used for colour mapping.
Definition at line 201 of file rtsensorstreammanager.cpp.
| void RtSensorStreamManager::setInterval | ( | int | msec | ) |
Set the streaming playback interval in milliseconds.
Definition at line 177 of file rtsensorstreammanager.cpp.
| void RtSensorStreamManager::setLooping | ( | bool | enabled | ) |
Enable or disable looping of the streaming queue.
Definition at line 185 of file rtsensorstreammanager.cpp.
| bool 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 | Surface map for target-surface validation. |
Definition at line 64 of file rtsensorstreammanager.cpp.
| void RtSensorStreamManager::stopStreaming | ( | ) |
Stop real-time sensor streaming.
Definition at line 156 of file rtsensorstreammanager.cpp.