##// END OF EJS Templates
A variable is now created with its dateTime too....
A variable is now created with its dateTime too. The variable can now determine if it as already the data requested on the new requested range or not.

File last commit:

r188:a02da6065266
r228:8e4faeed90b4
Show More
ScalarSeries.cpp
13 lines | 416 B | text/x-c | CppLexer
#include <Data/ScalarSeries.h>
ScalarSeries::ScalarSeries(int size, const Unit &xAxisUnit, const Unit &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);
}