diff --git a/plugins/amda/include/AmdaResultParserDefs.h b/plugins/amda/include/AmdaResultParserDefs.h index 43f44dc..6c56028 100644 --- a/plugins/amda/include/AmdaResultParserDefs.h +++ b/plugins/amda/include/AmdaResultParserDefs.h @@ -12,11 +12,13 @@ /// Alias to represent properties read in the header of AMDA file using Properties = QVariantHash; +extern const QString END_TIME_PROPERTY; extern const QString FILL_VALUE_PROPERTY; extern const QString MAX_BANDS_PROPERTY; extern const QString MIN_BANDS_PROPERTY; extern const QString MAX_SAMPLING_PROPERTY; extern const QString MIN_SAMPLING_PROPERTY; +extern const QString START_TIME_PROPERTY; extern const QString X_AXIS_UNIT_PROPERTY; extern const QString Y_AXIS_UNIT_PROPERTY; extern const QString VALUES_UNIT_PROPERTY; diff --git a/plugins/amda/src/AmdaResultParserDefs.cpp b/plugins/amda/src/AmdaResultParserDefs.cpp index d724a05..146b13f 100644 --- a/plugins/amda/src/AmdaResultParserDefs.cpp +++ b/plugins/amda/src/AmdaResultParserDefs.cpp @@ -1,10 +1,12 @@ #include "AmdaResultParserDefs.h" +const QString END_TIME_PROPERTY = QStringLiteral("endTime"); const QString FILL_VALUE_PROPERTY = QStringLiteral("fillValue"); const QString MAX_BANDS_PROPERTY = QStringLiteral("maxBands"); const QString MIN_BANDS_PROPERTY = QStringLiteral("minBands"); const QString MAX_SAMPLING_PROPERTY = QStringLiteral("maxSampling"); const QString MIN_SAMPLING_PROPERTY = QStringLiteral("minSampling"); +const QString START_TIME_PROPERTY = QStringLiteral("startTime"); const QString X_AXIS_UNIT_PROPERTY = QStringLiteral("xAxisUnit"); const QString Y_AXIS_UNIT_PROPERTY = QStringLiteral("yAxisUnit"); const QString VALUES_UNIT_PROPERTY = QStringLiteral("valuesUnit"); diff --git a/plugins/amda/src/AmdaResultParserHelper.cpp b/plugins/amda/src/AmdaResultParserHelper.cpp index cb8c1d2..cae52f8 100644 --- a/plugins/amda/src/AmdaResultParserHelper.cpp +++ b/plugins/amda/src/AmdaResultParserHelper.cpp @@ -359,8 +359,11 @@ void SpectrogramParserHelper::handleDataHoles() // Fills data holes according to the max resolution found in the AMDA file auto resolution = m_Properties.value(MAX_SAMPLING_PROPERTY).value(); auto fillValue = m_Properties.value(FILL_VALUE_PROPERTY).value(); + auto minBound = m_Properties.value(START_TIME_PROPERTY).value(); + auto maxBound = m_Properties.value(END_TIME_PROPERTY).value(); - DataSeriesUtils::fillDataHoles(m_XAxisData, m_ValuesData, resolution, fillValue); + DataSeriesUtils::fillDataHoles(m_XAxisData, m_ValuesData, resolution, fillValue, minBound, + maxBound); } // ////////////////// //