#include <UPlot.h>
Public Slots | |
void | setOrientation (Qt::Orientation orientation) |
void | setThreshold (qreal threshold) |
![]() | |
void | addValue (const QString &y) |
void | addValue (qreal x, qreal y) |
void | addValue (qreal y) |
void | addValue (UPlotItem *data) |
void | addValues (const QVector< int > &ys) |
void | addValues (const QVector< qreal > &xs, const QVector< qreal > &ys) |
void | addValues (const QVector< qreal > &ys) |
void | addValues (const std::vector< int > &ys) |
void | addValues (const std::vector< qreal > &ys) |
void | addValues (QVector< UPlotItem * > &data) |
virtual void | clear () |
void | setData (const QVector< qreal > &x, const QVector< qreal > &y) |
void | setData (const QVector< qreal > &y) |
void | setData (const std::vector< qreal > &x, const std::vector< qreal > &y) |
void | setData (const std::vector< qreal > &y) |
void | setVisible (bool visible) |
void | setXIncrement (qreal increment) |
void | setXStart (qreal val) |
Public Member Functions | |
qreal | getThreshold () const |
UPlotCurveThreshold (const QString &name, qreal thesholdValue, Qt::Orientation orientation=Qt::Horizontal, QObject *parent=0) | |
virtual | ~UPlotCurveThreshold () |
![]() | |
const QBrush & | brush () const |
void | draw (QPainter *painter, const QRect &limits) |
void | getData (QMap< qreal, qreal > &data) const |
void | getData (QVector< qreal > &x, QVector< qreal > &y) const |
QPointF | getItemData (int index) |
bool | isVisible () const |
QColor | itemsColor () const |
int | itemsSize () const |
QString | name () const |
const QPen & | pen () const |
void | setBrush (const QBrush &brush) |
void | setData (QVector< UPlotItem * > &data) |
void | setItemsColor (const QColor &color) |
void | setPen (const QPen &pen) |
UPlotCurve (const QString &name, const QVector< qreal > &x, const QVector< qreal > &y, QObject *parent=0) | |
UPlotCurve (const QString &name, const QVector< UPlotItem * > data, QObject *parent=0) | |
UPlotCurve (const QString &name, QObject *parent=0) | |
virtual | ~UPlotCurve () |
Protected Member Functions | |
virtual bool | isMinMaxValid () const |
virtual void | update (qreal scaleX, qreal scaleY, qreal offsetX, qreal offsetY, qreal xDir, qreal yDir, int maxItemsKept) |
![]() | |
void | _addValue (UPlotItem *data) |
void | attach (UPlot *plot) |
void | detach (UPlot *plot) |
const QVector< qreal > & | getMinMax () const |
int | removeItem (int index) |
void | updateMinMax () |
Private Attributes | |
Qt::Orientation | _orientation |
qreal | _threshold |
Friends | |
class | UPlot |
Additional Inherited Members | |
![]() | |
void | dataChanged (const UPlotCurve *) |
![]() | |
QList< QGraphicsItem * > | _items |
UPlot * | _plot |
A special UPlotCurve that shows as a line at the specified value, spanning all the UPlot.
UPlotCurveThreshold::UPlotCurveThreshold | ( | const QString & | name, |
qreal | thesholdValue, | ||
Qt::Orientation | orientation = Qt::Horizontal , |
||
QObject * | parent = 0 |
||
) |
|
inlineprotectedvirtual |
Reimplemented from UPlotCurve.
|
slot |
|
slot |
|
protectedvirtual |
Reimplemented from UPlotCurve.