This worker streams either interpolated or raw data.
More...
#include <rtsensordataworker.h>
|
void | normalizeAndTransformToColor (const Eigen::VectorXf &vecData, Eigen::MatrixX4f &matFinalVertColor, double dThresholdX, double dThreholdZ, QRgb(*functionHandlerColorMap)(double v, const QString &sColorMap), const QString &sColorMap) |
| normalizeAndTransformToColor This method normalizes final values for all vertices of the mesh and converts them to rgb using the specified color converter More...
|
|
Eigen::MatrixX4f | generateColorsFromSensorValues (const Eigen::VectorXd &vecSensorValues) |
| generateColorsFromSensorValues Produces the final color matrix that is to be emitted More...
|
|
This worker streams either interpolated or raw data.
This worker streams either interpolated or raw data.
Definition at line 81 of file rtsensordataworker.h.
◆ ConstSPtr
◆ SPtr
◆ RtSensorDataWorker()
RtSensorDataWorker::RtSensorDataWorker |
( |
| ) |
|
|
explicit |
◆ addData()
void RtSensorDataWorker::addData |
( |
const Eigen::MatrixXd & |
data | ) |
|
◆ clear()
void DISP3DLIB::RtSensorDataWorker::clear |
( |
| ) |
|
Clear this worker, empties the m_lData field that holds the current block of sensor activity
◆ generateColorsFromSensorValues()
MatrixX4f RtSensorDataWorker::generateColorsFromSensorValues |
( |
const Eigen::VectorXd & |
vecSensorValues | ) |
|
|
protected |
generateColorsFromSensorValues Produces the final color matrix that is to be emitted
- Parameters
-
[in] | vecSensorValues | A vector of sensor signals. |
- Returns
- The final color values for the underlying mesh surface.
Definition at line 233 of file rtsensordataworker.cpp.
◆ newRtRawData
void DISP3DLIB::RtSensorDataWorker::newRtRawData |
( |
Eigen::VectorXd |
vecDataVector | ) |
|
|
signal |
Emit this signal whenever this item should stream new raw data to its listeners.
- Parameters
-
[in] | vecDataVector | The raw data. |
◆ newRtSmoothedData
void DISP3DLIB::RtSensorDataWorker::newRtSmoothedData |
( |
const Eigen::MatrixX4f & |
matColorMatrix | ) |
|
|
signal |
Emit this signal whenever this item should stream interpolated raw data to its listeners.
- Parameters
-
[in] | matColorMatrix | The interpolated raw data in form of rgb colors for each vertex. |
◆ normalizeAndTransformToColor()
void RtSensorDataWorker::normalizeAndTransformToColor |
( |
const Eigen::VectorXf & |
vecData, |
|
|
Eigen::MatrixX4f & |
matFinalVertColor, |
|
|
double |
dThresholdX, |
|
|
double |
dThreholdZ, |
|
|
QRgb(*)(double v, const QString &sColorMap) |
functionHandlerColorMap, |
|
|
const QString & |
sColorMap |
|
) |
| |
|
protected |
normalizeAndTransformToColor This method normalizes final values for all vertices of the mesh and converts them to rgb using the specified color converter
- Parameters
-
[in] | vecData | The final values for each vertex of the surface. |
[in,out] | matFinalVertColor | The color matrix which the results are to be written to. |
[in] | dThresholdX | Lower threshold for normalizing. |
[in] | dThreholdZ | Upper threshold for normalizing. |
[in] | functionHandlerColorMap | The pointer to the function which converts scalar values to rgb. |
[in] | sColorMap | The color map to us. |
Definition at line 260 of file rtsensordataworker.cpp.
◆ setColormapType()
void RtSensorDataWorker::setColormapType |
( |
const QString & |
sColormapType | ) |
|
Set the type of the colormap.
- Parameters
-
[in] | sColormapType | The new colormap type. |
Definition at line 128 of file rtsensordataworker.cpp.
◆ setInterpolationMatrix()
void RtSensorDataWorker::setInterpolationMatrix |
( |
QSharedPointer< Eigen::SparseMatrix< float > > |
pMatInterpolationMatrix | ) |
|
Set the interpolation matrix.
- Parameters
-
[in] | pMatInterpolationMatrix | The new interpolation matrix. |
Definition at line 158 of file rtsensordataworker.cpp.
◆ setLoopState()
void RtSensorDataWorker::setLoopState |
( |
bool |
bLoopState | ) |
|
Set the loop functionality on or off.
- Parameters
-
[in] | bLoopState | The new looping state. |
Definition at line 144 of file rtsensordataworker.cpp.
◆ setNumberAverages()
void RtSensorDataWorker::setNumberAverages |
( |
int |
iNumAvr | ) |
|
Set the number of average to take after emitting the data to the listening threads.
- Parameters
-
[in] | iNumAvr | The new number of averages. |
Definition at line 114 of file rtsensordataworker.cpp.
◆ setNumberVertices()
void RtSensorDataWorker::setNumberVertices |
( |
int |
iNumberVerts | ) |
|
Set number of vertices.
- Parameters
-
[in] | iNumberVerts | The number of vertices. |
Definition at line 105 of file rtsensordataworker.cpp.
◆ setSFreq()
void RtSensorDataWorker::setSFreq |
( |
const double |
dSFreq | ) |
|
Set the sampling frequency.
- Parameters
-
[in] | dSFreq | The new sampling frequency. |
Definition at line 151 of file rtsensordataworker.cpp.
◆ setStreamSmoothedData()
void RtSensorDataWorker::setStreamSmoothedData |
( |
bool |
bStreamSmoothedData | ) |
|
Sets the state whether to stream smoothed or raw data
- Parameters
-
[in] | bStreamSmoothedData | The new state. |
Definition at line 121 of file rtsensordataworker.cpp.
◆ setThresholds()
void RtSensorDataWorker::setThresholds |
( |
const QVector3D & |
vecThresholds | ) |
|
Set the normalization value.
- Parameters
-
[in] | vecThresholds | The new threshold values used for normalizing the data. |
Definition at line 136 of file rtsensordataworker.cpp.
◆ streamData()
void RtSensorDataWorker::streamData |
( |
| ) |
|
◆ m_bIsLooping
bool DISP3DLIB::RtSensorDataWorker::m_bIsLooping |
|
protected |
Flag if this thread should repeat sending the same data over and over again.
Definition at line 215 of file rtsensordataworker.h.
◆ m_bStreamSmoothedData
bool DISP3DLIB::RtSensorDataWorker::m_bStreamSmoothedData |
|
protected |
Flag if this thread's streams the raw or already smoothed data. Latter are produced by multiplying the smoothing operator here in this thread.
Definition at line 216 of file rtsensordataworker.h.
◆ m_dSFreq
double DISP3DLIB::RtSensorDataWorker::m_dSFreq |
|
protected |
◆ m_iAverageSamples
int DISP3DLIB::RtSensorDataWorker::m_iAverageSamples |
|
protected |
◆ m_iCurrentSample
int DISP3DLIB::RtSensorDataWorker::m_iCurrentSample |
|
protected |
◆ m_lDataLoopQ
QList<Eigen::VectorXd> DISP3DLIB::RtSensorDataWorker::m_lDataLoopQ |
|
protected |
List that holds the matrix data <n_channels x n_samples> for looping.
Definition at line 210 of file rtsensordataworker.h.
◆ m_lDataQ
QList<Eigen::VectorXd> DISP3DLIB::RtSensorDataWorker::m_lDataQ |
|
protected |
List that holds the fiff matrix data <n_channels x n_samples>.
Definition at line 209 of file rtsensordataworker.h.
◆ m_lVisualizationInfo
Container for the visualization info.
◆ m_pMatInterpolationMatrix
QSharedPointer<Eigen::SparseMatrix<float> > DISP3DLIB::RtSensorDataWorker::m_pMatInterpolationMatrix |
|
protected |
◆ m_vecAverage
Eigen::VectorXd DISP3DLIB::RtSensorDataWorker::m_vecAverage |
|
protected |
The documentation for this class was generated from the following files: