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
Raw Normal View History

2015-10-05 01:43:48 +02:00
#ifndef TRACK_H
#define TRACK_H
#include <QVector>
#include <QDateTime>
#include "trackpoint.h"
2015-10-05 01:43:48 +02:00
class Track
2015-10-05 01:43:48 +02:00
{
public:
Track(const QVector<Trackpoint> &data);
2015-10-05 01:43:48 +02:00
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;
2015-11-23 02:37:08 +01:00
bool isNull() const {return (_dd.count() < 2);}
2015-10-05 01:43:48 +02:00
private:
2016-02-19 21:42:54 +01:00
const QVector<Trackpoint> &_data;
QVector<qreal> _dd;
2015-10-05 01:43:48 +02:00
};
#endif // TRACK_H