26 #ifndef QCP_PLOTTABLE_BARS_H
27 #define QCP_PLOTTABLE_BARS_H
29 #include "../global.h"
31 #include "../plottable.h"
43 Q_DECLARE_TYPEINFO(
QCPBarData, Q_MOVABLE_TYPE);
53 typedef QMapIterator<double, QCPBarData> QCPBarDataMapIterator;
54 typedef QMutableMapIterator<double, QCPBarData> QCPBarDataMutableMapIterator;
61 Q_PROPERTY(
double width READ width WRITE setWidth)
62 Q_PROPERTY(
QCPBars* barBelow READ barBelow)
63 Q_PROPERTY(
QCPBars* barAbove READ barAbove)
70 double width()
const {
return mWidth; }
76 void setWidth(
double width);
78 void setData(
const QVector<double> &key,
const QVector<double> &value);
85 void addData(
double key,
double value);
86 void addData(
const QVector<double> &keys,
const QVector<double> &values);
87 void removeDataBefore(
double key);
88 void removeDataAfter(
double key);
89 void removeData(
double fromKey,
double toKey);
90 void removeData(
double key);
94 virtual double selectTest(
const QPointF &pos,
bool onlySelectable, QVariant *details=0)
const;
100 QPointer<QCPBars> mBarBelow, mBarAbove;
109 QPolygonF getBarPolygon(
double key,
double value)
const;
110 double getBaseValue(
double key,
bool positive)
const;
117 #endif // QCP_PLOTTABLE_BARS_H