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

29 lines
612 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
void elevationGraph(QVector<QPointF> &graph) const;
void speedGraph(QVector<QPointF> &graph) const;
void heartRateGraph(QVector<QPointF> &graph) const;
2016-06-16 20:47:32 +02:00
void temperatureGraph(QVector<QPointF> &graph) const;
void track(QVector<QPointF> &track) const;
qreal distance() const {return _distance;}
qreal time() const;
QDateTime date() const;
2015-11-23 02:37:08 +01:00
2015-10-05 01:43:48 +02:00
private:
2016-02-19 21:42:54 +01:00
const QVector<Trackpoint> &_data;
QVector<qreal> _dd;
qreal _distance;
2015-10-05 01:43:48 +02:00
};
#endif // TRACK_H