mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-10-07 07:13:21 +02:00
29 lines
543 B
C++
29 lines
543 B
C++
#ifndef SPEEDGRAPHITEM_H
|
|
#define SPEEDGRAPHITEM_H
|
|
|
|
#include "timetype.h"
|
|
#include "graphitem.h"
|
|
|
|
class SpeedGraphItem : public GraphItem
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SpeedGraphItem(const Graph &graph, GraphType type, int width,
|
|
const QColor &color, qreal movingTime, QGraphicsItem *parent = 0);
|
|
|
|
qreal avg() const {return _avg;}
|
|
qreal mavg() const {return _mavg;}
|
|
qreal max() const {return _max;}
|
|
|
|
QString info() const;
|
|
|
|
void setTimeType(TimeType type);
|
|
|
|
private:
|
|
qreal _avg, _mavg, _max;
|
|
TimeType _timeType;
|
|
};
|
|
|
|
#endif // SPEEDGRAPHITEM_H
|