1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/speedgraph.h
2016-06-24 00:55:44 +02:00

33 lines
513 B
C++

#ifndef SPEEDGRAPH_H
#define SPEEDGRAPH_H
#include <QList>
#include "graphtab.h"
class GPX;
class SpeedGraph : public GraphTab
{
Q_OBJECT
public:
SpeedGraph(QWidget *parent = 0);
QString label() const {return tr("Speed");}
void loadGPX(const GPX &gpx);
void clear();
void setUnits(enum Units units);
private:
qreal avg() const;
qreal max() const {return bounds().bottom();}
void setXUnits();
void setYUnits();
void addInfo();
QList<QPointF> _avg;
enum Units _units;
};
#endif // SPEEDGRAPH_H