2015-10-12 01:12:12 +02:00
|
|
|
#ifndef ELEVATIONGRAPH_H
|
|
|
|
#define ELEVATIONGRAPH_H
|
|
|
|
|
|
|
|
#include "graph.h"
|
2015-10-17 12:08:30 +02:00
|
|
|
#include "gpx.h"
|
2015-10-12 01:12:12 +02:00
|
|
|
|
|
|
|
class ElevationGraph : public Graph
|
|
|
|
{
|
2015-10-13 00:27:49 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
2015-10-12 01:12:12 +02:00
|
|
|
public:
|
2015-10-17 01:33:02 +02:00
|
|
|
ElevationGraph(QWidget *parent = 0);
|
2015-10-12 01:12:12 +02:00
|
|
|
|
2015-10-17 12:08:30 +02:00
|
|
|
void loadGPX(const GPX &gpx);
|
2015-10-12 01:12:12 +02:00
|
|
|
void clear();
|
|
|
|
|
2015-10-19 00:35:08 +02:00
|
|
|
qreal ascent() const {return _ascent;}
|
|
|
|
qreal descent() const {return _descent;}
|
|
|
|
qreal max() const {return _max;}
|
|
|
|
qreal min() const {return _min;}
|
|
|
|
|
2015-10-12 01:12:12 +02:00
|
|
|
private:
|
|
|
|
qreal _ascent, _descent;
|
|
|
|
qreal _max, _min;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ELEVATIONGRAPH_H
|