##// END OF EJS Templates
Updates PlottablesRenderingUtils to use variable's type instead of dataseries
Updates PlottablesRenderingUtils to use variable's type instead of dataseries

File last commit:

r1249:cfb378b17442
r1253:a119058eb032
Show More
DataSeriesType.h
26 lines | 686 B | text/x-c | CLexer
Alexandre Leroux
Move the AMDA data type to a type accessible from core
r1249 #ifndef SCIQLOP_DATASERIESTYPE_H
#define SCIQLOP_DATASERIESTYPE_H
#include <QString>
enum class DataSeriesType { SCALAR, SPECTROGRAM, VECTOR, UNKNOWN };
struct DataSeriesTypeUtils {
static DataSeriesType fromString(const QString &type)
{
if (type == QStringLiteral("scalar")) {
return DataSeriesType::SCALAR;
}
else if (type == QStringLiteral("spectrogram")) {
return DataSeriesType::SPECTROGRAM;
}
else if (type == QStringLiteral("vector")) {
return DataSeriesType::VECTOR;
}
else {
return DataSeriesType::UNKNOWN;
}
}
};
#endif // SCIQLOP_DATASERIESTYPE_H