#include <UPlot.h>
UPlotCurve is a curve used to hold data shown in a UPlot.
Definition at line 92 of file UPlot.h.
UPlotCurve::UPlotCurve |
( |
const QString & |
name, |
|
|
QObject * |
parent = 0 |
|
) |
| |
UPlotCurve::UPlotCurve |
( |
const QString & |
name, |
|
|
const QVector< UPlotItem * > |
data, |
|
|
QObject * |
parent = 0 |
|
) |
| |
UPlotCurve::UPlotCurve |
( |
const QString & |
name, |
|
|
const QVector< qreal > & |
x, |
|
|
const QVector< qreal > & |
y, |
|
|
QObject * |
parent = 0 |
|
) |
| |
UPlotCurve::~UPlotCurve |
( |
| ) |
|
|
virtual |
void UPlotCurve::_addValue |
( |
UPlotItem * |
data | ) |
|
|
protected |
void UPlotCurve::addValue |
( |
UPlotItem * |
data | ) |
|
|
slot |
void UPlotCurve::addValue |
( |
qreal |
y | ) |
|
|
slot |
void UPlotCurve::addValue |
( |
qreal |
x, |
|
|
qreal |
y |
|
) |
| |
|
slot |
Add a single value y at x.
Definition at line 432 of file UPlot.cpp.
void UPlotCurve::addValue |
( |
const QString & |
y | ) |
|
|
slot |
void UPlotCurve::addValues |
( |
QVector< UPlotItem * > & |
data | ) |
|
|
slot |
For convenience... Add multiple values, using custom UPlotItem.
Definition at line 477 of file UPlot.cpp.
void UPlotCurve::addValues |
( |
const QVector< qreal > & |
xs, |
|
|
const QVector< qreal > & |
ys |
|
) |
| |
|
slot |
Add multiple values y at x. Vectors must have the same size.
Definition at line 486 of file UPlot.cpp.
void UPlotCurve::addValues |
( |
const QVector< qreal > & |
ys | ) |
|
|
slot |
void UPlotCurve::addValues |
( |
const QVector< int > & |
ys | ) |
|
|
slot |
void UPlotCurve::addValues |
( |
const std::vector< qreal > & |
ys | ) |
|
|
slot |
void UPlotCurve::addValues |
( |
const std::vector< int > & |
ys | ) |
|
|
slot |
void UPlotCurve::attach |
( |
UPlot * |
plot | ) |
|
|
protected |
const QBrush& UPlotCurve::brush |
( |
| ) |
const |
|
inline |
Get brush.
Definition at line 118 of file UPlot.h.
void UPlotCurve::clear |
( |
| ) |
|
|
virtualslot |
void UPlotCurve::dataChanged |
( |
const UPlotCurve * |
| ) |
|
|
signal |
emitted when data is changed.
void UPlotCurve::detach |
( |
UPlot * |
plot | ) |
|
|
protected |
void UPlotCurve::draw |
( |
QPainter * |
painter, |
|
|
const QRect & |
limits |
|
) |
| |
void UPlotCurve::getData |
( |
QVector< qreal > & |
x, |
|
|
QVector< qreal > & |
y |
|
) |
| const |
void UPlotCurve::getData |
( |
QMap< qreal, qreal > & |
data | ) |
const |
QPointF UPlotCurve::getItemData |
( |
int |
index | ) |
|
const QVector<qreal>& UPlotCurve::getMinMax |
( |
| ) |
const |
|
inlineprotected |
virtual bool UPlotCurve::isMinMaxValid |
( |
| ) |
const |
|
inlineprotectedvirtual |
bool UPlotCurve::isVisible |
( |
| ) |
const |
|
inline |
QColor UPlotCurve::itemsColor |
( |
| ) |
const |
|
inline |
int UPlotCurve::itemsSize |
( |
| ) |
const |
Get the number of items in the curve (dot + line items).
Definition at line 839 of file UPlot.cpp.
QString UPlotCurve::name |
( |
| ) |
const |
|
inline |
const QPen& UPlotCurve::pen |
( |
| ) |
const |
|
inline |
int UPlotCurve::removeItem |
( |
int |
index | ) |
|
|
protected |
void UPlotCurve::removeItem |
( |
UPlotItem * |
item | ) |
|
|
private |
void UPlotCurve::setBrush |
( |
const QBrush & |
brush | ) |
|
void UPlotCurve::setData |
( |
QVector< UPlotItem * > & |
data | ) |
|
void UPlotCurve::setData |
( |
const QVector< qreal > & |
x, |
|
|
const QVector< qreal > & |
y |
|
) |
| |
|
slot |
void UPlotCurve::setData |
( |
const std::vector< qreal > & |
x, |
|
|
const std::vector< qreal > & |
y |
|
) |
| |
|
slot |
void UPlotCurve::setData |
( |
const QVector< qreal > & |
y | ) |
|
|
slot |
void UPlotCurve::setData |
( |
const std::vector< qreal > & |
y | ) |
|
|
slot |
void UPlotCurve::setItemsColor |
( |
const QColor & |
color | ) |
|
void UPlotCurve::setPen |
( |
const QPen & |
pen | ) |
|
void UPlotCurve::setVisible |
( |
bool |
visible | ) |
|
|
slot |
Show or hide the curve.
Definition at line 859 of file UPlot.cpp.
void UPlotCurve::setXIncrement |
( |
qreal |
increment | ) |
|
|
slot |
Set increment of the x values (when auto-increment is used).
Definition at line 868 of file UPlot.cpp.
void UPlotCurve::setXStart |
( |
qreal |
val | ) |
|
|
slot |
Set starting x value (when auto-increment is used).
Definition at line 873 of file UPlot.cpp.
void UPlotCurve::update |
( |
qreal |
scaleX, |
|
|
qreal |
scaleY, |
|
|
qreal |
offsetX, |
|
|
qreal |
offsetY, |
|
|
qreal |
xDir, |
|
|
qreal |
yDir, |
|
|
int |
maxItemsKept |
|
) |
| |
|
protectedvirtual |
void UPlotCurve::updateMinMax |
( |
| ) |
|
|
protected |
QBrush UPlotCurve::_brush |
|
private |
QList<QGraphicsItem *> UPlotCurve::_items |
|
protected |
QColor UPlotCurve::_itemsColor |
|
private |
QVector<qreal> UPlotCurve::_minMax |
|
private |
QString UPlotCurve::_name |
|
private |
QGraphicsRectItem* UPlotCurve::_rootItem |
|
private |
bool UPlotCurve::_valuesShown |
|
private |
bool UPlotCurve::_visible |
|
private |
qreal UPlotCurve::_xIncrement |
|
private |
qreal UPlotCurve::_xStart |
|
private |
The documentation for this class was generated from the following files: