##// END OF EJS Templates
Replaces QString unit by a new struct...
Replaces QString unit by a new struct The Unit struct contains a flag that indicates if it's a time unit or not. It will be used to set the correct ticker for axes on a graph (default ticker or datetime ticker)

File last commit:

r177:4c64b786fec1
r177:4c64b786fec1
Show More
ScalarSeries.cpp
13 lines | 424 B | text/x-c | CppLexer
/ core / src / Data / ScalarSeries.cpp
Alexandre Leroux
Creates scalar series
r126 #include <Data/ScalarSeries.h>
Alexandre Leroux
Replaces QString unit by a new struct...
r177 ScalarSeries::ScalarSeries(int size, Unit xAxisUnit, Unit valuesUnit)
: DataSeries{std::make_shared<ArrayData<1> >(size), std::move(xAxisUnit),
std::make_shared<ArrayData<1> >(size), std::move(valuesUnit)}
Alexandre Leroux
Creates scalar series
r126 {
}
void ScalarSeries::setData(int index, double x, double value) noexcept
{
xAxisData()->setData(index, x);
valuesData()->setData(index, value);
}