1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/GUI/speedgraphitem.h

32 lines
564 B
C
Raw Normal View History

#ifndef SPEEDGRAPHITEM_H
#define SPEEDGRAPHITEM_H
2017-09-25 19:56:04 +02:00
#include "timetype.h"
#include "graphitem.h"
class SpeedGraphItem : public GraphItem
{
2017-09-24 20:13:13 +02:00
Q_OBJECT
public:
2017-10-04 23:15:39 +02:00
SpeedGraphItem(const Graph &graph, GraphType type, qreal movingTime,
QGraphicsItem *parent = 0);
qreal max() const {return -bounds().top();}
qreal avg() const {return _avg;}
qreal mavg() const {return _mavg;}
void setUnits(Units units);
2017-09-25 19:56:04 +02:00
void setTimeType(TimeType type);
private:
2017-09-25 19:56:04 +02:00
QString toolTip() const;
qreal _avg, _mavg;
2017-09-25 19:56:04 +02:00
Units _units;
TimeType _timeType;
};
#endif // SPEEDGRAPHITEM_H