##// END OF EJS Templates
Makes the connection between Data source controller and Variable controller...
Makes the connection between Data source controller and Variable controller - Adds a signal to prevent a variable creation request from the data source controller - Connects the signal to the slot that creates a variable in the variable controller

File last commit:

r117:15702be3360f
r157:90c64bed8482
Show More
IDataSeries.h
37 lines | 901 B | text/x-c | CLexer
Alexandre Leroux
Creates IDataSeries interface and its default implementation
r117 #ifndef SCIQLOP_IDATASERIES_H
#define SCIQLOP_IDATASERIES_H
#include <QString>
#include <memory>
template <int Dim>
class ArrayData;
/**
* @brief The IDataSeries aims to declare a data series.
*
* A data series is an entity that contains at least :
* - one dataset representing the x-axis
* - one dataset representing the values
*
* Each dataset is represented by an ArrayData, and is associated with a unit.
*
* An ArrayData can be unidimensional or two-dimensional, depending on the implementation of the
* IDataSeries. The x-axis dataset is always unidimensional.
*
* @sa ArrayData
*/
class IDataSeries {
public:
virtual ~IDataSeries() noexcept = default;
/// Returns the x-axis dataset
virtual std::shared_ptr<ArrayData<1> > xAxisData() = 0;
virtual QString xAxisUnit() const = 0;
virtual QString valuesUnit() const = 0;
};
#endif // SCIQLOP_IDATASERIES_H