2016-08-09 01:16:19 +02:00
|
|
|
#ifndef ROUTE_H
|
|
|
|
#define ROUTE_H
|
|
|
|
|
|
|
|
#include <QVector>
|
|
|
|
#include "waypoint.h"
|
|
|
|
|
|
|
|
class Route
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Route(const QVector<Waypoint> &data);
|
|
|
|
|
|
|
|
const QVector<Waypoint> &route() const {return _data;}
|
2016-08-09 23:08:49 +02:00
|
|
|
QVector<QPointF> elevation() const;
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2016-08-09 23:08:49 +02:00
|
|
|
qreal distance() const;
|
|
|
|
|
2016-08-10 22:16:39 +02:00
|
|
|
bool isNull() const {return (_dd.count() < 2);}
|
2016-08-09 01:16:19 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
const QVector<Waypoint> &_data;
|
|
|
|
QVector<qreal> _dd;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ROUTE_H
|