32 #ifndef DISP3DLIB_SENSORDATATREEITEM_H
33 #define DISP3DLIB_SENSORDATATREEITEM_H
39 #include "../../../../disp3D_global.h"
40 #include "../common/abstracttreeitem.h"
41 #include "../measurement/measurementtreeitem.h"
80 class RtSensorDataController;
81 class GpuInterpolationItem;
82 class AbstractMeshTreeItem;
97 typedef QSharedPointer<SensorDataTreeItem>
SPtr;
98 typedef QSharedPointer<const SensorDataTreeItem>
ConstSPtr;
109 const QString& text =
"Sensor Data",
110 bool bUseGPU =
false);
130 const QString& sSensorType,
131 Qt3DCore::QEntity *p3DEntityParent);
140 virtual void addData(
const Eigen::MatrixXd& tSensorData);
148 virtual inline bool isDataInit()
const;
156 virtual void setLoopState(
bool bState);
164 virtual void setStreamingState(
bool bState);
172 virtual void setTimeInterval(
int iMSec);
180 virtual void setNumberAverages(
int iNumberAverages);
188 virtual void setColormapType(
const QString& sColormap);
196 virtual void setThresholds(
const QVector3D& vecThresholds);
205 virtual void setCancelDistance(
double dCancelDist);
213 virtual void setInterpolationFunction(
const QString &sInterpolationFunction);
221 virtual void setSFreq(
const double dSFreq);
237 virtual void setTransform(
const Qt3DCore::QTransform &transform);
254 virtual void applyTransform(
const Qt3DCore::QTransform& transform);
271 virtual void initItem()
override;
279 virtual void onNewInterpolationMatrixAvailable(QSharedPointer<Eigen::SparseMatrix<float> > pMatInterpolationMatrixLeftHemi);
287 void virtual onNewRtRawDataAvailable(
const Eigen::VectorXd &vecDataVector);
295 virtual void onNewRtSmoothedDataAvailable(
const Eigen::MatrixX4f &matColorMatrix);
303 virtual void onStreamingStateChanged(
const Qt::CheckState& checkState);
311 virtual void onColormapTypeChanged(
const QVariant& sColormapType);
319 virtual void onTimeIntervalChanged(
const QVariant &iMSec);
327 virtual void onDataThresholdChanged(
const QVariant &vecThresholds);
335 virtual void onLoopStateChanged(
const Qt::CheckState& checkState);
343 virtual void onNumberAveragesChanged(
const QVariant& iNumAvr);
351 virtual void onCancelDistanceChanged(
const QVariant& dCancelDist);
359 virtual void onInterpolationFunctionChanged(
const QVariant& sInterpolationFunction);
382 #endif // DISP3DLIB_SENSORDATATREEITEM_H