mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
34 lines
490 B
C++
34 lines
490 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 bounds().bottom();}
|
|
|
|
private:
|
|
void setXUnits();
|
|
void setYUnits();
|
|
void addInfo();
|
|
|
|
QList<QPointF> _avg;
|
|
enum Units _units;
|
|
};
|
|
|
|
#endif // SPEEDGRAPH_H
|