##// END OF EJS Templates
Implements method to get min/max values of a dataseries giving a range (1)
Alexandre Leroux -
r608:368ab9415e5a
parent child
Show More
@@ -230,6 +230,21 public:
230 return std::make_pair(lowerIt, upperIt);
230 return std::make_pair(lowerIt, upperIt);
231 }
231 }
232
232
233 std::pair<DataSeriesIterator, DataSeriesIterator>
234 valuesBounds(double minXAxisData, double maxXAxisData) const override
235 {
236 // Places iterators to the correct x-axis range
237 auto xAxisRangeIts = xAxisRange(minXAxisData, maxXAxisData);
238
239 // Returns end iterators if the range is empty
240 if (xAxisRangeIts.first == xAxisRangeIts.second) {
241 return std::make_pair(cend(), cend());
242 }
243
244 /// @todo ALX: complete
245
246 }
247
233 // /////// //
248 // /////// //
234 // Mutexes //
249 // Mutexes //
235 // /////// //
250 // /////// //
@@ -83,6 +83,12 public:
83 virtual std::pair<DataSeriesIterator, DataSeriesIterator>
83 virtual std::pair<DataSeriesIterator, DataSeriesIterator>
84 xAxisRange(double minXAxisData, double maxXAxisData) const = 0;
84 xAxisRange(double minXAxisData, double maxXAxisData) const = 0;
85
85
86 /// @return two iterators pointing to the data that have respectively the min and the max value
87 /// data of a data series' range. The search is performed for a given x-axis range.
88 /// @sa xAxisRange()
89 virtual std::pair<DataSeriesIterator, DataSeriesIterator>
90 valuesBounds(double minXAxisData, double maxXAxisData) const = 0;
91
86 // /////// //
92 // /////// //
87 // Mutexes //
93 // Mutexes //
88 // /////// //
94 // /////// //
General Comments 0
You need to be logged in to leave comments. Login now