10 #include <QMessageBox>
11 #include <QPushButton>
16 if (range_x.
min <= std::numeric_limits<double>::lowest() &&
17 range_x.
min <= std::numeric_limits<double>::max())
20 double min_y = (std::numeric_limits<double>::max());
21 double max_y = (std::numeric_limits<double>::lowest());
23 for (
size_t i = 0; i <
size(); i++)
25 const double Y =
sample(i).y();
26 min_y = std::min(min_y, Y);
27 max_y = std::max(max_y, Y);
29 return Range{ min_y, max_y };
37 if (first_index > last_index || first_index < 0 || last_index < 0)
42 if (first_index == 0 && last_index ==
plotData()->
size() - 1)
47 double min_y = (std::numeric_limits<double>::max());
48 double max_y = (std::numeric_limits<double>::lowest());
50 for (
size_t i = first_index; i < last_index; i++)
52 const double Y =
sample(i).y();
53 min_y = std::min(min_y, Y);
54 max_y = std::max(max_y, Y);
56 return Range{ min_y, max_y };
67 return QPointF(p.x, p.y);
72 , _dst_data(source_data->plotName(), {})
73 , _src_data(source_data)
88 if (transform_ID.isEmpty())
149 box.setLeft(range_x.min);
150 box.setRight(range_x.max);
151 box.setTop(range_y.max);
152 box.setBottom(range_y.min);
168 box.setTop(range_y.max);
169 box.setBottom(range_y.min);
176 return QPointF(p.x, p.y);
197 if (this->
size() < 2)
209 if (this->
size() < 2)