mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
32 lines
432 B
C++
32 lines
432 B
C++
#ifndef SPEEDGRAPH_H
|
|
#define SPEEDGRAPH_H
|
|
|
|
#include <QList>
|
|
#include "graphview.h"
|
|
#include "units.h"
|
|
|
|
class GPX;
|
|
|
|
class SpeedGraph : public GraphView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SpeedGraph(QWidget *parent = 0);
|
|
|
|
void loadGPX(const GPX &gpx);
|
|
void clear();
|
|
void setUnits(enum Units units);
|
|
|
|
qreal avg() const;
|
|
qreal max() const {return _max;}
|
|
|
|
private:
|
|
void addInfo();
|
|
|
|
qreal _max;
|
|
QList<QPointF> _avg;
|
|
};
|
|
|
|
#endif // SPEEDGRAPH_H
|