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

25 lines
462 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) : _data(data) {}
2015-10-05 01:43:48 +02: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:
const QVector<TrackPoint> &_data;
2015-10-05 01:43:48 +02:00
};
#endif // TRACK_H