35 #ifndef DISP3DLIB_RTSOURCEDATAWORKER_H 36 #define DISP3DLIB_RTSOURCEDATAWORKER_H 42 #include "../../../../disp3D_global.h" 51 #include <QSharedPointer> 52 #include <QLinkedList> 58 #include <Eigen/SparseCore> 75 Eigen::VectorXd vecSensorValues;
76 Eigen::MatrixX4f matOriginalVertColor;
77 Eigen::MatrixX4f matFinalVertColor;
81 QString sColormapType;
90 Eigen::VectorXf vecData;
92 QRgb (*functionHandlerColorMap)(
double v);
110 typedef QSharedPointer<RtSourceDataWorker>
SPtr;
111 typedef QSharedPointer<const RtSourceDataWorker>
ConstSPtr;
125 void addData(
const Eigen::MatrixXd& data);
140 void setSurfaceColor(
const Eigen::MatrixX4f &matColorLeft,
141 const Eigen::MatrixX4f &matColorRight);
149 void setNumberAverages(
int iNumAvr);
157 void setStreamSmoothedData(
bool bStreamSmoothedData);
165 void setColormapType(
const QString& sColormapType);
173 void setThresholds(
const QVector3D &vecThresholds);
181 void setLoopState(
bool bLoopState);
189 void setSFreq(
const double dSFreq);
197 void setInterpolationMatrixLeft(QSharedPointer<Eigen::SparseMatrix<float> > pMatInterpolationMatrixLeft);
205 void setInterpolationMatrixRight(QSharedPointer<Eigen::SparseMatrix<float> > pMatInterpolationMatrixRight);
225 static void normalizeAndTransformToColor(
const Eigen::VectorXf& vecData,
226 Eigen::MatrixX4f &matFinalVertColor,
229 QRgb (*functionHandlerColorMap)(
double v,
const QString& sColorMap),
230 const QString& sColorMap);
238 static void generateColorsFromSensorValues(
VisualizationInfo &visualizationInfoHemi);
263 void newRtRawData(
const Eigen::VectorXd &vecDataVectorLeftHemi,
264 const Eigen::VectorXd &vecDataVectorRightHemi);
273 void newRtSmoothedData(
const Eigen::MatrixX4f &matColorMatrixLeftHemi,
274 const Eigen::MatrixX4f &matColorMatrixRightHemi);
278 #endif //DISP3DLIB_RTSOURCEDATAWORKER_H
QList< VisualizationInfo > m_lHemiVisualizationInfo
Eigen::VectorXd m_vecAverage
QList< Eigen::VectorXd > m_lDataQ
QList< Eigen::VectorXd > m_lDataLoopQ
bool m_bStreamSmoothedData
#define DISP3DSHARED_EXPORT
QSharedPointer< const RtSourceDataWorker > ConstSPtr
static QRgb valueToColor(double v, const QString &sMap)
QSharedPointer< Eigen::SparseMatrix< float > > pMatInterpolationMatrix
This worker streams either interpolated or raw data.
QSharedPointer< RtSourceDataWorker > SPtr
ColorMap class declaration.