2018-07-03 01:29:14 +02:00
|
|
|
#ifndef GEARRATIOGRAPHITEM_H
|
|
|
|
#define GEARRATIOGRAPHITEM_H
|
|
|
|
|
|
|
|
#include <QMap>
|
|
|
|
#include "graphitem.h"
|
|
|
|
|
|
|
|
class GearRatioGraphItem : public GraphItem
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-08-25 10:54:25 +02:00
|
|
|
GearRatioGraphItem(const Graph &graph, GraphType type, int width,
|
|
|
|
const QColor &color, QGraphicsItem *parent = 0);
|
2018-07-03 01:29:14 +02:00
|
|
|
|
|
|
|
qreal top() const {return _top;}
|
|
|
|
const QMap<qreal, qreal> &map() const {return _map;}
|
|
|
|
|
2019-10-15 23:59:15 +02:00
|
|
|
QString info() const;
|
2018-07-03 01:29:14 +02:00
|
|
|
|
2019-10-13 20:20:32 +02:00
|
|
|
private:
|
2018-07-03 01:29:14 +02:00
|
|
|
QMap<qreal, qreal> _map;
|
2019-02-11 23:28:08 +01:00
|
|
|
qreal _top;
|
2018-07-03 01:29:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GEARRATIOGRAPHITEM_H
|