43 return std::numeric_limits<double>::quiet_NaN();
48 QVector<size_t> indexes;
51 for (
size_t index = 0; index <
getNumPoints(); ++index) {
52 double distance = fabs(x-
getPoint(index).x());
54 if (distance <= maxDistance)
55 indexes.append(index);
66 return QPair<double, double>(bounds.
getMinimum().x(),
69 return QPair<double, double>(bounds.
getMinimum().y(),
72 return QPair<double, double>();
104 for (
size_t index = 0; index <
getNumPoints(); ++index) {
107 formattedX.append(QString::number(point.x(),
'g', 20));
108 formattedY.append(QString::number(point.y(),
'g', 20));
QRectF getRectangle() const
QPointF sample(size_t i) const
virtual void appendPoint(const QPointF &point)=0
virtual QVector< size_t > getPointsInDistance(double x, double maxDistance) const
QRectF boundingRect() const
virtual BoundingRectangle getBounds() const =0
QPair< double, double > getAxisBounds(CurveConfig::Axis axis) const
virtual QPointF getPoint(size_t index) const =0
virtual size_t getNumPoints() const =0
void writeFormatted(QStringList &formattedX, QStringList &formattedY) const
double getValue(size_t index, CurveConfig::Axis axis) const