mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
43 lines
950 B
C++
43 lines
950 B
C++
#ifndef ROUTE_H
|
|
#define ROUTE_H
|
|
|
|
#include <QVector>
|
|
#include "routedata.h"
|
|
#include "graph.h"
|
|
#include "path.h"
|
|
|
|
class Route
|
|
{
|
|
public:
|
|
Route(const RouteData &data);
|
|
|
|
const RouteData &data() const {return _data;}
|
|
Path path() const;
|
|
GraphPair elevation() const;
|
|
qreal distance() const;
|
|
|
|
const QString &name() const {return _data.name();}
|
|
const QString &description() const {return _data.description();}
|
|
const QString &comment() const {return _data.comment();}
|
|
const QVector<Link> &links() const {return _data.links();}
|
|
const LineStyle &style() const {return _data.style();}
|
|
|
|
bool isValid() const {return _data.size() >= 2;}
|
|
|
|
static void useDEM(bool use) {_useDEM = use;}
|
|
static void showSecondaryElevation(bool show)
|
|
{_show2ndElevation = show;}
|
|
|
|
private:
|
|
Graph gpsElevation() const;
|
|
Graph demElevation() const;
|
|
|
|
RouteData _data;
|
|
QVector<qreal> _distance;
|
|
|
|
static bool _useDEM;
|
|
static bool _show2ndElevation;
|
|
};
|
|
|
|
#endif // ROUTE_H
|