1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-23 07:14:22 +02:00
Files
GPXSee/src/GUI/speedgraph.h
2019-03-15 19:43:17 +01:00

36 lines
619 B
C++

#ifndef SPEEDGRAPH_H
#define SPEEDGRAPH_H
#include <QList>
#include "graphtab.h"
class SpeedGraph : public GraphTab
{
Q_OBJECT
public:
SpeedGraph(QWidget *parent = 0);
QString label() const {return tr("Speed");}
QList<GraphItem*> loadData(const Data &data);
void clear();
void setUnits(Units units);
void setTimeType(TimeType type);
void showTracks(bool show);
private:
qreal avg() const;
qreal max() const {return bounds().bottom();}
void setYUnits();
void setInfo();
QVector<QPointF> _avg;
QVector<QPointF> _mavg;
Units _units;
TimeType _timeType;
bool _showTracks;
};
#endif // SPEEDGRAPH_H