2015-10-05 01:43:48 +02:00
|
|
|
#ifndef TRACK_H
|
|
|
|
#define TRACK_H
|
|
|
|
|
|
|
|
#include <QVector>
|
2016-02-11 20:58:52 +01:00
|
|
|
#include <QDateTime>
|
|
|
|
#include "trackpoint.h"
|
2015-10-05 01:43:48 +02:00
|
|
|
|
2016-02-11 20:58:52 +01:00
|
|
|
class Track
|
2015-10-05 01:43:48 +02:00
|
|
|
{
|
|
|
|
public:
|
2016-02-11 20:58:52 +01:00
|
|
|
Track(const QVector<TrackPoint> &data) : _data(data) {}
|
2015-10-05 01:43:48 +02:00
|
|
|
|
2016-02-11 20:58:52 +01:00
|
|
|
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;
|
2015-11-23 02:37:08 +01:00
|
|
|
|
2015-10-05 01:43:48 +02:00
|
|
|
private:
|
2016-02-11 20:58:52 +01:00
|
|
|
const QVector<TrackPoint> &_data;
|
2015-10-05 01:43:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRACK_H
|