##// END OF EJS Templates
Variable deletion (5)...
Variable deletion (5) Calls operation in a slot that will be called when the variable is about to be deleted from the variable controller

File last commit:

r287:9a5cb57f1573
r308:bd7aec6a1752
Show More
ScalarSeries.h
30 lines | 866 B | text/x-c | CLexer
Alexandre Leroux
Creates scalar series
r118 #ifndef SCIQLOP_SCALARSERIES_H
#define SCIQLOP_SCALARSERIES_H
#include <Data/DataSeries.h>
/**
* @brief The ScalarSeries class is the implementation for a data series representing a scalar.
*/
class ScalarSeries : public DataSeries<1> {
public:
/**
* Ctor
* @param size the number of data the series will hold
* @param xAxisUnit x-axis unit
* @param valuesUnit values unit
*/
Alexandre Leroux
Fixes after review
r175 explicit ScalarSeries(int size, const Unit &xAxisUnit, const Unit &valuesUnit);
Alexandre Leroux
Creates scalar series
r118
/**
* Sets data for a specific index. The index has to be valid to be effective
* @param index the index to which the data will be set
* @param x the x-axis data
* @param value the value data
*/
void setData(int index, double x, double value) noexcept;
Alexandre Leroux
Use std::shared_ptr in CosinusProvider
r287
std::unique_ptr<IDataSeries> clone() const;
Alexandre Leroux
Creates scalar series
r118 };
#endif // SCIQLOP_SCALARSERIES_H