1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 19:55:53 +01:00
GPXSee/src/route.h

33 lines
556 B
C
Raw Normal View History

2016-08-09 01:16:19 +02:00
#ifndef ROUTE_H
#define ROUTE_H
#include <QVector>
#include "routedata.h"
2016-09-19 00:56:10 +02:00
#include "graph.h"
2016-11-14 22:12:43 +01:00
#include "path.h"
2016-08-09 01:16:19 +02:00
class Route
{
public:
Route(const RouteData &data);
2016-08-09 01:16:19 +02:00
Path path() const;
const QVector<Waypoint> &waypoints() const {return _data;}
2016-11-14 22:12:43 +01:00
2016-09-19 00:56:10 +02:00
Graph elevation() const;
2016-08-09 01:16:19 +02:00
qreal distance() const;
const QString &name() const {return _data.name();}
const QString &description() const {return _data.description();}
2016-09-19 23:35:04 +02:00
bool isNull() const {return (_data.count() < 2);}
2016-08-09 01:16:19 +02:00
private:
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