1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00
GPXSee/src/elevationgraph.h

33 lines
541 B
C++

#ifndef ELEVATIONGRAPH_H
#define ELEVATIONGRAPH_H
#include "graphview.h"
#include "units.h"
class GPX;
class ElevationGraph : public GraphView
{
Q_OBJECT
public:
ElevationGraph(QWidget *parent = 0);
void loadGPX(const GPX &gpx);
void clear();
void setUnits(enum Units units);
qreal ascent() const {return _ascent;}
qreal descent() const {return _descent;}
qreal max() const {return _max;}
qreal min() const {return _min;}
private:
void addInfo();
qreal _ascent, _descent;
qreal _max, _min;
};
#endif // ELEVATIONGRAPH_H