|
UtiLite
0.3.1
A lite utilities library
|
#include <UPlot.h>
Inherited by UPlotCurveThreshold.
Public Slots | |
| virtual void | clear () |
| void | setVisible (bool visible) |
| void | setXIncrement (float increment) |
| void | setXStart (float val) |
| void | addValue (UPlotItem *data) |
| void | addValue (float y) |
| void | addValue (float x, float y) |
| void | addValue (const QString &y) |
| void | addValues (QVector< UPlotItem * > &data) |
| void | addValues (const QVector< float > &xs, const QVector< float > &ys) |
| void | addValues (const QVector< float > &ys) |
| void | addValues (const std::vector< float > &ys) |
Signals | |
| void | dataChanged (const UPlotCurve *) |
Public Member Functions | |
| UPlotCurve (const QString &name, QObject *parent=0) | |
| UPlotCurve (const QString &name, const QVector< UPlotItem * > data, QObject *parent=0) | |
| UPlotCurve (const QString &name, const QVector< float > &x, const QVector< float > &y, QObject *parent=0) | |
| const QPen & | pen () const |
| const QBrush & | brush () const |
| void | setPen (const QPen &pen) |
| void | setBrush (const QBrush &brush) |
| QString | name () const |
| int | itemsSize () const |
Friends | |
| class | UPlot |
UPlotCurve is a curve used to hold data shown in a UPlot.
| UPlotCurve::UPlotCurve | ( | const QString & | name, |
| QObject * | parent = 0 |
||
| ) |
Constructor 1
| UPlotCurve::UPlotCurve | ( | const QString & | name, |
| const QVector< UPlotItem * > | data, | ||
| QObject * | parent = 0 |
||
| ) |
Constructor 2
| UPlotCurve::UPlotCurve | ( | const QString & | name, |
| const QVector< float > & | x, | ||
| const QVector< float > & | y, | ||
| QObject * | parent = 0 |
||
| ) |
Constructor 3
| void UPlotCurve::addValue | ( | UPlotItem * | data | ) | [slot] |
Add a single value, using a custom UPlotItem.
| void UPlotCurve::addValue | ( | float | y | ) | [slot] |
Add a single value y, x is auto-incremented by the increment set with setXIncrement().
| void UPlotCurve::addValue | ( | float | x, |
| float | y | ||
| ) | [slot] |
Add a single value y at x.
| void UPlotCurve::addValue | ( | const QString & | y | ) | [slot] |
For convenience... Add a single value y, x is auto-incremented by the increment set with setXIncrement().
| void UPlotCurve::addValues | ( | QVector< UPlotItem * > & | data | ) | [slot] |
For convenience... Add multiple values, using custom UPlotItem.
| void UPlotCurve::addValues | ( | const QVector< float > & | xs, |
| const QVector< float > & | ys | ||
| ) | [slot] |
Add multiple values y at x. Vectors must have the same size.
| void UPlotCurve::addValues | ( | const QVector< float > & | ys | ) | [slot] |
Add multiple values y, x is auto-incremented by the increment set with setXIncrement().
| void UPlotCurve::addValues | ( | const std::vector< float > & | ys | ) | [slot] |
Add multiple values y, x is auto-incremented by the increment set with setXIncrement().
| const QBrush& UPlotCurve::brush | ( | ) | const [inline] |
Get brush.
| virtual void UPlotCurve::clear | ( | ) | [virtual, slot] |
Clear curve's values.
| void UPlotCurve::dataChanged | ( | const UPlotCurve * | ) | [signal] |
emitted when data is changed.
| int UPlotCurve::itemsSize | ( | ) | const |
Get the number of items in the curve (dot + line items).
| QString UPlotCurve::name | ( | ) | const [inline] |
Get name.
| const QPen& UPlotCurve::pen | ( | ) | const [inline] |
Get pen.
| void UPlotCurve::setBrush | ( | const QBrush & | brush | ) |
Set brush.
| void UPlotCurve::setPen | ( | const QPen & | pen | ) |
Set pen.
| void UPlotCurve::setVisible | ( | bool | visible | ) | [slot] |
Show or hide the curve.
| void UPlotCurve::setXIncrement | ( | float | increment | ) | [slot] |
Set increment of the x values (when auto-increment is used).
| void UPlotCurve::setXStart | ( | float | val | ) | [slot] |
Set starting x value (when auto-increment is used).
1.7.6.1