##// END OF EJS Templates
Unplot menu (1)...
Unplot menu (1) Renames m_MenuBuilder to m_PlotMenuBuilder (a new builder will be added for the Unplot menu)

File last commit:

r310:9a5cb57f1573
r323:55e8cf41b3b4
Show More
ScalarSeries.cpp
18 lines | 528 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);
}
std::unique_ptr<IDataSeries> ScalarSeries::clone() const
{
return std::make_unique<ScalarSeries>(*this);
}