mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
29 lines
531 B
C++
29 lines
531 B
C++
#ifndef GPX_H
|
|
#define GPX_H
|
|
|
|
#include <QVector>
|
|
#include <QPointF>
|
|
#include <QString>
|
|
#include "parser.h"
|
|
|
|
class GPX
|
|
{
|
|
public:
|
|
bool loadFile(const QString &fileName);
|
|
const QString &errorString() const {return _error;}
|
|
|
|
void elevationGraph(QVector<QPointF> &graph) const;
|
|
void speedGraph(QVector<QPointF> &graph) const;
|
|
void track(QVector<QPointF> &track) const;
|
|
qreal distance() const;
|
|
qreal time() const;
|
|
QDateTime date() const;
|
|
|
|
private:
|
|
Parser _parser;
|
|
QVector<TrackPoint> _data;
|
|
QString _error;
|
|
};
|
|
|
|
#endif // GPX_H
|