23#ifndef BRAINVIEW_RTSENSORDATAWORKER_H
24#define BRAINVIEW_RTSENSORDATAWORKER_H
79 void addData(
const Eigen::VectorXf& data);
96 void setMappingMatrix(
const QString& surfaceKey, std::shared_ptr<Eigen::MatrixXf> mat);
175 const QVector<uint32_t>& colors);
194 QVector<uint32_t> computeSurfaceColors(
const Eigen::VectorXf& sensorData)
const;
196 mutable QMutex m_mutex;
198 QList<Eigen::VectorXf> m_lDataQ;
199 QList<Eigen::VectorXf> m_lDataLoopQ;
200 Eigen::VectorXf m_vecAverage;
201 int m_iSampleCtr = 0;
202 int m_iCurrentSample = 0;
204 std::shared_ptr<Eigen::MatrixXf> m_mappingMat;
205 QString m_sSurfaceKey;
207 int m_iNumAverages = 1;
208 bool m_bIsLooping =
true;
209 bool m_bStreamSmoothedData =
true;
210 double m_dSFreq = 1000.0;
212 QString m_sColormapType = QStringLiteral(
"MNE");
213 double m_dThreshMin = 0.0;
214 double m_dThreshMax = 0.0;
215 bool m_bUseAutoNorm =
true;
Library export/import macros and namespace marker for the disp3D library.
#define DISP3DSHARED_EXPORT
3-D brain visualisation using the Qt RHI rendering backend.
void setMappingMatrix(const QString &surfaceKey, std::shared_ptr< Eigen::MatrixXf > mat)
void setSFreq(double sFreq)
void newRtSensorColors(const QString &surfaceKey, const QVector< uint32_t > &colors)
void setLoopState(bool enabled)
void setThresholds(double min, double max)
void addData(const Eigen::VectorXf &data)
RtSensorDataWorker(QObject *parent=nullptr)
void setColormapType(const QString &name)
void setStreamSmoothedData(bool bStreamSmoothedData)
void setNumberAverages(int numAvr)
void newRtRawSensorData(const Eigen::VectorXf &data)