43 : yDataHistory(nullptr)
48 if (p_uavFieldName.contains(
51 QStringList fieldSubfield = p_uavFieldName.split(
"-", QString::SkipEmptyParts);
60 xData =
new QVector<double>();
61 yData =
new QVector<double>();
85 if (p_uavFieldName.contains(
88 QStringList fieldSubfield = p_uavFieldName.split(
"-", QString::SkipEmptyParts);
97 xData =
new QVector<double>();
98 yData =
new QVector<double>();
99 zData =
new QVector<double>();
149 QString uavSubFieldName)
156 QRegExp(uavSubFieldName, Qt::CaseSensitive, QRegExp::FixedString));
157 value = field->
getValue(indexOfSubField);
161 return value.toDouble();
QVector< double > * xData
QVector< double > * yDataHistory
QVector< double > * timeDataHistory
QVariant getValue(int index=0) const
QVector< double > * zData
QVector< double > * zDataHistory
QVector< double > * yData
Plot3dData(QString uavObject, QString uavField)
Plot3dData::Plot3dData Default 3d constructor.
QStringList getElementNames() const
Plot2dData(QString uavObject, QString uavField)
Plot2dData::Plot2dData Default 2d constructor.
double valueAsDouble(UAVObject *obj, UAVObjectField *field, bool haveSubField, QString uavSubFieldName)
valueAsDouble Fetch the value from the UAVO and return it as a double