Cosmetics
[GPXSee.git] / src / route.h
blobe413fdb262666c0db2be5091f76703618fba1815
1 #ifndef ROUTE_H
2 #define ROUTE_H
4 #include <QVector>
5 #include "routedata.h"
6 #include "graph.h"
7 #include "path.h"
9 class Route
11 public:
12 Route(const RouteData &data);
14 Path path() const;
16 const QVector<Waypoint> &waypoints() const {return _data;}
18 Graph elevation() const;
20 qreal distance() const;
22 const QString &name() const {return _data.name();}
23 const QString &description() const {return _data.description();}
25 bool isNull() const {return (_data.count() < 2);}
27 private:
28 const RouteData &_data;
29 QVector<qreal> _distance;
32 #endif // ROUTE_H