2016-08-09 01:16:19 +02:00
|
|
|
#ifndef ROUTE_H
|
|
|
|
#define ROUTE_H
|
|
|
|
|
|
|
|
#include <QVector>
|
2016-10-28 14:33:36 +02:00
|
|
|
#include "routedata.h"
|
2016-09-19 00:56:10 +02:00
|
|
|
#include "graph.h"
|
2016-08-09 01:16:19 +02:00
|
|
|
|
|
|
|
class Route
|
|
|
|
{
|
|
|
|
public:
|
2016-10-28 14:33:36 +02:00
|
|
|
Route(const RouteData &data);
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2016-10-28 14:33:36 +02:00
|
|
|
const RouteData &route() const {return _data;}
|
2016-09-19 00:56:10 +02:00
|
|
|
Graph elevation() const;
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2016-08-09 23:08:49 +02:00
|
|
|
qreal distance() const;
|
|
|
|
|
2016-09-19 23:35:04 +02:00
|
|
|
bool isNull() const {return (_data.count() < 2);}
|
2016-08-09 01:16:19 +02:00
|
|
|
|
|
|
|
private:
|
2016-10-28 14:33:36 +02:00
|
|
|
const RouteData &_data;
|
2016-09-19 23:35:04 +02:00
|
|
|
QVector<qreal> _distance;
|
2016-08-09 01:16:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ROUTE_H
|