@@ -66,23 +66,20 std::unique_ptr<IDataSeries> VectorSeries::clone() const | |||
|
66 | 66 | std::shared_ptr<IDataSeries> VectorSeries::subDataSeries(const SqpRange &range) |
|
67 | 67 | { |
|
68 | 68 | auto subXAxisData = std::vector<double>(); |
|
69 |
auto sub |
|
|
70 | auto subYValuesData = std::vector<double>(); | |
|
71 | auto subZValuesData = std::vector<double>(); | |
|
69 | auto subValuesData = std::vector<double>(); | |
|
72 | 70 | |
|
73 | 71 | this->lockRead(); |
|
74 | 72 | { |
|
75 | 73 | auto bounds = xAxisRange(range.m_TStart, range.m_TEnd); |
|
76 | 74 | for (auto it = bounds.first; it != bounds.second; ++it) { |
|
77 | 75 | subXAxisData.push_back(it->x()); |
|
78 |
sub |
|
|
79 |
sub |
|
|
80 |
sub |
|
|
76 | subValuesData.push_back(it->value(0)); | |
|
77 | subValuesData.push_back(it->value(1)); | |
|
78 | subValuesData.push_back(it->value(2)); | |
|
81 | 79 | } |
|
82 | 80 | } |
|
83 | 81 | this->unlock(); |
|
84 | 82 | |
|
85 |
return std::make_shared<VectorSeries>(std::move(subXAxisData), std::move(sub |
|
|
86 | std::move(subYValuesData), std::move(subZValuesData), | |
|
83 | return std::make_shared<VectorSeries>(std::move(subXAxisData), std::move(subValuesData), | |
|
87 | 84 | this->xAxisUnit(), this->valuesUnit()); |
|
88 | 85 | } |
General Comments 0
You need to be logged in to leave comments.
Login now