Graph loading performance improvement
[GPXSee.git] / src / GUI / elevationgraphitem.h
blob40294269a298d36e5d0605f9ee276e63b35d4d85
1 #ifndef ELEVATIONGRAPHITEM_H
2 #define ELEVATIONGRAPHITEM_H
4 #include "graphitem.h"
6 class ElevationGraphItem : public GraphItem
8 Q_OBJECT
10 public:
11 ElevationGraphItem(const Graph &graph, GraphType type, int width,
12 const QColor &color, QGraphicsItem *parent = 0);
14 qreal ascent() const {return _ascent;}
15 qreal descent() const {return _descent;}
16 qreal max() const {return _max;}
17 qreal min() const {return _min;}
19 void setUnits(Units units);
21 private:
22 QString toolTip(Units units) const;
24 qreal _ascent, _descent, _min, _max;
27 #endif // ELEVATIONGRAPHITEM_H