ScalarSeries.h
25 lines
| 755 B
| text/x-c
|
CLexer
|
r118 | #ifndef SCIQLOP_SCALARSERIES_H | ||
#define SCIQLOP_SCALARSERIES_H | ||||
|
r425 | #include "CoreGlobal.h" | ||
|
r118 | #include <Data/DataSeries.h> | ||
/** | ||||
* @brief The ScalarSeries class is the implementation for a data series representing a scalar. | ||||
*/ | ||||
|
r425 | class SCIQLOP_CORE_EXPORT ScalarSeries : public DataSeries<1> { | ||
|
r118 | public: | ||
|
r361 | /** | ||
* Ctor with two vectors. The vectors must have the same size, otherwise a ScalarSeries with no | ||||
* values will be created. | ||||
* @param xAxisData x-axis data | ||||
* @param valuesData values data | ||||
*/ | ||||
explicit ScalarSeries(QVector<double> xAxisData, QVector<double> valuesData, | ||||
const Unit &xAxisUnit, const Unit &valuesUnit); | ||||
|
r287 | std::unique_ptr<IDataSeries> clone() const; | ||
|
r118 | }; | ||
#endif // SCIQLOP_SCALARSERIES_H | ||||