This worker streams either interpolated or raw data.
More...
#include <rtsourcedataworker.h>
|
void | newRtRawData (const Eigen::VectorXd &vecDataVectorLeftHemi, const Eigen::VectorXd &vecDataVectorRightHemi) |
|
void | newRtSmoothedData (const Eigen::MatrixX4f &matColorMatrixLeftHemi, const Eigen::MatrixX4f &matColorMatrixRightHemi) |
|
|
static void | normalizeAndTransformToColor (const Eigen::VectorXf &vecData, Eigen::MatrixX4f &matFinalVertColor, double dThresholdX, double dThresholdZ, 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...
|
|
static void | generateColorsFromSensorValues (VisualizationInfo &visualizationInfoHemi) |
| 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 104 of file rtsourcedataworker.h.
◆ ConstSPtr
◆ SPtr
◆ RtSourceDataWorker()
RtSourceDataWorker::RtSourceDataWorker |
( |
| ) |
|
|
explicit |
◆ addData()
void RtSourceDataWorker::addData |
( |
const Eigen::MatrixXd & |
data | ) |
|
◆ clear()
void DISP3DLIB::RtSourceDataWorker::clear |
( |
| ) |
|
Clear this worker, empties the m_lData field that holds the current block of sensor activity
◆ generateColorsFromSensorValues()
void RtSourceDataWorker::generateColorsFromSensorValues |
( |
VisualizationInfo & |
visualizationInfoHemi | ) |
|
|
staticprotected |
generateColorsFromSensorValues Produces the final color matrix that is to be emitted
- Parameters
-
[in/out] | visualizationInfoHemi The needed visualization info. |
Definition at line 266 of file rtsourcedataworker.cpp.
◆ newRtRawData
void DISP3DLIB::RtSourceDataWorker::newRtRawData |
( |
const Eigen::VectorXd & |
vecDataVectorLeftHemi, |
|
|
const Eigen::VectorXd & |
vecDataVectorRightHemi |
|
) |
| |
|
signal |
Emit this signal whenever this item should stream new raw data to its listeners.
- Parameters
-
[in] | vecDataVectorLeftHemi | The new streamed raw data for the left hemispehre. |
[in] | vecDataVectorRightHemi | The new streamed raw data for the right hemispehre. |
◆ newRtSmoothedData
void DISP3DLIB::RtSourceDataWorker::newRtSmoothedData |
( |
const Eigen::MatrixX4f & |
matColorMatrixLeftHemi, |
|
|
const Eigen::MatrixX4f & |
matColorMatrixRightHemi |
|
) |
| |
|
signal |
Emit this signal whenever this item should stream interpolated raw data to its listeners.
- Parameters
-
[in] | matColorMatrixLeftHemi | The new streamed interpolated raw data in form of RGB colors per vertex for the left hemisphere. |
[in] | matColorMatrixRightHemi | The new streamed interpolated raw data in form of RGB colors per vertex for the right hemisphere. |
◆ normalizeAndTransformToColor()
void RtSourceDataWorker::normalizeAndTransformToColor |
( |
const Eigen::VectorXf & |
vecData, |
|
|
Eigen::MatrixX4f & |
matFinalVertColor, |
|
|
double |
dThresholdX, |
|
|
double |
dThresholdZ, |
|
|
QRgb(*)(double v, const QString &sColorMap) |
functionHandlerColorMap, |
|
|
const QString & |
sColorMap |
|
) |
| |
|
staticprotected |
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] | dThresholdZ | Upper threshold for normalizing. |
[in] | functionHandlerColorMap | The pointer to the function which converts scalar values to rgb. |
[in] | sColorMap | The color map to use. |
Definition at line 290 of file rtsourcedataworker.cpp.
◆ setColormapType()
void RtSourceDataWorker::setColormapType |
( |
const QString & |
sColormapType | ) |
|
Set the type of the colormap.
- Parameters
-
[in] | sColormapType | The new colormap type. |
Definition at line 135 of file rtsourcedataworker.cpp.
◆ setInterpolationMatrixLeft()
void RtSourceDataWorker::setInterpolationMatrixLeft |
( |
QSharedPointer< Eigen::SparseMatrix< float > > |
pMatInterpolationMatrixLeft | ) |
|
Set the interpolation matrix for the left hemisphere.
- Parameters
-
[in] | pMatInterpolationMatrixLeft | The new interpolation matrix. |
Definition at line 168 of file rtsourcedataworker.cpp.
◆ setInterpolationMatrixRight()
void RtSourceDataWorker::setInterpolationMatrixRight |
( |
QSharedPointer< Eigen::SparseMatrix< float > > |
pMatInterpolationMatrixRight | ) |
|
Set the interpolation matrix for the right hemisphere.
- Parameters
-
[in] | pMatInterpolationMatrixRight | The new interpolation matrix. |
Definition at line 175 of file rtsourcedataworker.cpp.
◆ setLoopState()
void RtSourceDataWorker::setLoopState |
( |
bool |
bLoopState | ) |
|
Set the loop functionality on or off.
- Parameters
-
[in] | bLoopState | The new looping state. |
Definition at line 154 of file rtsourcedataworker.cpp.
◆ setNumberAverages()
void RtSourceDataWorker::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 121 of file rtsourcedataworker.cpp.
◆ setSFreq()
void RtSourceDataWorker::setSFreq |
( |
const double |
dSFreq | ) |
|
Set the sampling frequency.
- Parameters
-
[in] | dSFreq | The new sampling frequency. |
Definition at line 161 of file rtsourcedataworker.cpp.
◆ setStreamSmoothedData()
void RtSourceDataWorker::setStreamSmoothedData |
( |
bool |
bStreamSmoothedData | ) |
|
Sets the state whether to stream smoothed or raw data
- Parameters
-
[in] | bStreamSmoothedData | The new state. |
Definition at line 128 of file rtsourcedataworker.cpp.
◆ setSurfaceColor()
void RtSourceDataWorker::setSurfaceColor |
( |
const Eigen::MatrixX4f & |
matColorLeft, |
|
|
const Eigen::MatrixX4f & |
matColorRight |
|
) |
| |
Set the color of the vertices for the left and right hemisphere.
- Parameters
-
[in] | matColorLeft | The color of the vertices for the left hemisphere. |
[in] | matColorRight | The color of the vertices for the right hemisphere. |
Definition at line 112 of file rtsourcedataworker.cpp.
◆ setThresholds()
void RtSourceDataWorker::setThresholds |
( |
const QVector3D & |
vecThresholds | ) |
|
Set the normalization value.
- Parameters
-
[in] | vecThresholds | The new threshold values used for normalizing the data. |
Definition at line 144 of file rtsourcedataworker.cpp.
◆ streamData()
void RtSourceDataWorker::streamData |
( |
| ) |
|
◆ m_bIsLooping
bool DISP3DLIB::RtSourceDataWorker::m_bIsLooping |
|
protected |
Flag if this thread should repeat sending the same data over and over again.
Definition at line 243 of file rtsourcedataworker.h.
◆ m_bStreamSmoothedData
bool DISP3DLIB::RtSourceDataWorker::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 244 of file rtsourcedataworker.h.
◆ m_dSFreq
double DISP3DLIB::RtSourceDataWorker::m_dSFreq |
|
protected |
◆ m_iAverageSamples
int DISP3DLIB::RtSourceDataWorker::m_iAverageSamples |
|
protected |
◆ m_iCurrentSample
int DISP3DLIB::RtSourceDataWorker::m_iCurrentSample |
|
protected |
◆ m_iSampleCtr
int DISP3DLIB::RtSourceDataWorker::m_iSampleCtr |
|
protected |
◆ m_lDataLoopQ
QList<Eigen::VectorXd> DISP3DLIB::RtSourceDataWorker::m_lDataLoopQ |
|
protected |
List that holds the matrix data <n_channels x n_samples> for looping.
Definition at line 240 of file rtsourcedataworker.h.
◆ m_lDataQ
QList<Eigen::VectorXd> DISP3DLIB::RtSourceDataWorker::m_lDataQ |
|
protected |
◆ m_lHemiVisualizationInfo
◆ m_vecAverage
Eigen::VectorXd DISP3DLIB::RtSourceDataWorker::m_vecAverage |
|
protected |
The documentation for this class was generated from the following files: