##// 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:

r118:2c63a29c9c11
r157:90c64bed8482
Show More
ScalarSeries.cpp
13 lines | 422 B | text/x-c | CppLexer
#include <Data/ScalarSeries.h>
ScalarSeries::ScalarSeries(int size, const QString &xAxisUnit, const QString &valuesUnit)
: DataSeries{std::make_shared<ArrayData<1> >(size), xAxisUnit,
std::make_shared<ArrayData<1> >(size), valuesUnit}
{
}
void ScalarSeries::setData(int index, double x, double value) noexcept
{
xAxisData()->setData(index, x);
valuesData()->setData(index, value);
}