1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-27 17:04:24 +02:00

POI loading optimization

This commit is contained in:
2016-10-08 14:53:10 +02:00
parent 434df521fb
commit f02ff1fa01
6 changed files with 131 additions and 75 deletions

View File

@ -8,7 +8,7 @@
#include "waypoint.h"
#include "rtree.h"
class QPainterPath;
class PathItem;
class WaypointItem;
#define POI_RADIUS 0.01
@ -21,10 +21,12 @@ public:
const QString &errorString() const {return _error;}
int errorLine() const {return _errorLine;}
QVector<Waypoint> points(const QPainterPath &path,
QVector<Waypoint> points(const PathItem *path,
qreal radius = POI_RADIUS) const;
QVector<Waypoint> points(const QList<WaypointItem*> &list,
qreal radius = POI_RADIUS) const;
QVector<Waypoint> points(const QList<Waypoint> &list,
qreal radius = POI_RADIUS) const;
const QStringList &files() const {return _files;}
void enableFile(const QString &fileName, bool enable);