##// END OF EJS Templates
Update networkcontroller for abort mechanism
Update networkcontroller for abort mechanism

File last commit:

r644:c050c224f3de
r698:076c09acb9f6
Show More
ScalarSeries.cpp
31 lines | 1.1 KiB | text/x-c | CppLexer
/ core / src / Data / ScalarSeries.cpp
Alexandre Leroux
Creates scalar series
r118 #include <Data/ScalarSeries.h>
Alexandre Leroux
Uses std::vector instead of QVector in ArrayData (1)...
r644 ScalarSeries::ScalarSeries(std::vector<double> xAxisData, std::vector<double> valuesData,
Alexandre Leroux
Creates constructor for ScalarSeries that directly takes vectors...
r361 const Unit &xAxisUnit, const Unit &valuesUnit)
: DataSeries{std::make_shared<ArrayData<1> >(std::move(xAxisData)), xAxisUnit,
std::make_shared<ArrayData<1> >(std::move(valuesData)), valuesUnit}
{
}
Alexandre Leroux
Use std::shared_ptr in CosinusProvider
r287 std::unique_ptr<IDataSeries> ScalarSeries::clone() const
{
return std::make_unique<ScalarSeries>(*this);
}
Implementation of V5 acquisition
r510
Alexandre Leroux
Renames subData() to subDataSeries()...
r522 std::shared_ptr<IDataSeries> ScalarSeries::subDataSeries(const SqpRange &range)
Implementation of V5 acquisition
r510 {
Alexandre Leroux
Uses std::vector instead of QVector in ArrayData (1)...
r644 auto subXAxisData = std::vector<double>();
auto subValuesData = std::vector<double>();
Implementation of V5 acquisition
r510 this->lockRead();
{
Alexandre Leroux
(Refactoring) Renames IDataSeries::subData()
r566 auto bounds = xAxisRange(range.m_TStart, range.m_TEnd);
Alexandre Leroux
Creates vector series...
r528 for (auto it = bounds.first; it != bounds.second; ++it) {
Alexandre Leroux
Uses std::vector instead of QVector in ArrayData (1)...
r644 subXAxisData.push_back(it->x());
subValuesData.push_back(it->value());
Implementation of V5 acquisition
r510 }
}
this->unlock();
Alexandre Leroux
Uses std::vector instead of QVector in ArrayData (1)...
r644 return std::make_shared<ScalarSeries>(std::move(subXAxisData), std::move(subValuesData),
this->xAxisUnit(), this->valuesUnit());
Implementation of V5 acquisition
r510 }