47 QVector<size_t> indexes;
49 XCoordinateRefSet::const_iterator it =
x_.lower_bound(x-maxDistance);
51 while (it !=
x_.end()) {
52 if (fabs(x-it->x_) <= maxDistance) {
53 indexes.push_back(it->index_);
79 if (
x_.capacity() <
x_.size()+1)
80 x_.reserve(
x_.capacity() ? 2*
x_.capacity() : 1);
QPointF getPoint(size_t index) const
BoundingRectangle getBounds() const
size_t getNumPoints() const
QVector< size_t > getPointsInDistance(double x, double maxDistance) const
BoundingRectangle bounds_
void appendPoint(const QPointF &point)
QVector< QPointF > points_