1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 15:23:22 +02:00
GPXSee/src/track.h

31 lines
551 B
C++

#ifndef TRACK_H
#define TRACK_H
#include <QVector>
#include <QDateTime>
#include "trackpoint.h"
class Track
{
public:
Track(const QVector<Trackpoint> &data);
QVector<QPointF> track() const;
QVector<QPointF> elevation() const;
QVector<QPointF> speed() const;
QVector<QPointF> heartRate() const;
QVector<QPointF> temperature() const;
qreal distance() const;
qreal time() const;
QDateTime date() const;
bool isNull() const {return (_dd.count() < 2);}
private:
const QVector<Trackpoint> &_data;
QVector<qreal> _dd;
};
#endif // TRACK_H