##// END OF EJS Templates
onRangeChanged is now based on the good range (the new one)...
onRangeChanged is now based on the good range (the new one) setTimeRange is now connected to rescaleAxes and replot methods

File last commit:

r310:9a5cb57f1573
r315:076efd0d6728
Show More
ScalarSeries.cpp
18 lines | 528 B | text/x-c | CppLexer
/ core / src / Data / ScalarSeries.cpp
Alexandre Leroux
Creates scalar series
r126 #include <Data/ScalarSeries.h>
Alexandre Leroux
Fixes after review
r188 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}
Alexandre Leroux
Creates scalar series
r126 {
}
void ScalarSeries::setData(int index, double x, double value) noexcept
{
xAxisData()->setData(index, x);
valuesData()->setData(index, value);
}
Alexandre Leroux
Use std::shared_ptr in CosinusProvider
r310
std::unique_ptr<IDataSeries> ScalarSeries::clone() const
{
return std::make_unique<ScalarSeries>(*this);
}