#include <UPlot.h>
UPlotCurve is a curve used to hold data shown in a UPlot.
Definition at line 93 of file UPlot.h.
◆ UPlotCurve() [1/3]
UPlotCurve::UPlotCurve |
( |
const QString & |
name, |
|
|
QObject * |
parent = 0 |
|
) |
| |
◆ UPlotCurve() [2/3]
UPlotCurve::UPlotCurve |
( |
const QString & |
name, |
|
|
const QVector< UPlotItem * > |
data, |
|
|
QObject * |
parent = 0 |
|
) |
| |
◆ UPlotCurve() [3/3]
UPlotCurve::UPlotCurve |
( |
const QString & |
name, |
|
|
const QVector< qreal > & |
x, |
|
|
const QVector< qreal > & |
y, |
|
|
QObject * |
parent = 0 |
|
) |
| |
◆ ~UPlotCurve()
UPlotCurve::~UPlotCurve |
( |
| ) |
|
|
virtual |
◆ _addValue()
void UPlotCurve::_addValue |
( |
UPlotItem * |
data | ) |
|
|
protected |
◆ addValue [1/4]
void UPlotCurve::addValue |
( |
const QString & |
y | ) |
|
|
slot |
◆ addValue [2/4]
void UPlotCurve::addValue |
( |
qreal |
x, |
|
|
qreal |
y |
|
) |
| |
|
slot |
Add a single value y at x.
Definition at line 433 of file UPlot.cpp.
◆ addValue [3/4]
void UPlotCurve::addValue |
( |
qreal |
y | ) |
|
|
slot |
◆ addValue [4/4]
void UPlotCurve::addValue |
( |
UPlotItem * |
data | ) |
|
|
slot |
◆ addValues [1/6]
void UPlotCurve::addValues |
( |
const QVector< int > & |
ys | ) |
|
|
slot |
◆ addValues [2/6]
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 487 of file UPlot.cpp.
◆ addValues [3/6]
void UPlotCurve::addValues |
( |
const QVector< qreal > & |
ys | ) |
|
|
slot |
◆ addValues [4/6]
void UPlotCurve::addValues |
( |
const std::vector< int > & |
ys | ) |
|
|
slot |
◆ addValues [5/6]
void UPlotCurve::addValues |
( |
const std::vector< qreal > & |
ys | ) |
|
|
slot |
◆ addValues [6/6]
void UPlotCurve::addValues |
( |
QVector< UPlotItem * > & |
data | ) |
|
|
slot |
For convenience... Add multiple values, using custom UPlotItem.
Definition at line 478 of file UPlot.cpp.
◆ attach()
void UPlotCurve::attach |
( |
UPlot * |
plot | ) |
|
|
protected |
◆ brush()
const QBrush& UPlotCurve::brush |
( |
| ) |
const |
|
inline |
Get brush.
Definition at line 119 of file UPlot.h.
◆ clear
void UPlotCurve::clear |
( |
| ) |
|
|
virtualslot |
◆ dataChanged
void UPlotCurve::dataChanged |
( |
const UPlotCurve * |
| ) |
|
|
signal |
emitted when data is changed.
◆ detach()
void UPlotCurve::detach |
( |
UPlot * |
plot | ) |
|
|
protected |
◆ draw()
void UPlotCurve::draw |
( |
QPainter * |
painter, |
|
|
const QRect & |
limits |
|
) |
| |
◆ getData() [1/2]
void UPlotCurve::getData |
( |
QMap< qreal, qreal > & |
data | ) |
const |
◆ getData() [2/2]
void UPlotCurve::getData |
( |
QVector< qreal > & |
x, |
|
|
QVector< qreal > & |
y |
|
) |
| const |
◆ getItemData()
QPointF UPlotCurve::getItemData |
( |
int |
index | ) |
|
◆ getMinMax()
const QVector<qreal>& UPlotCurve::getMinMax |
( |
| ) |
const |
|
inlineprotected |
◆ isMinMaxValid()
virtual bool UPlotCurve::isMinMaxValid |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ isVisible()
bool UPlotCurve::isVisible |
( |
| ) |
const |
|
inline |
◆ itemsColor()
QColor UPlotCurve::itemsColor |
( |
| ) |
const |
|
inline |
◆ itemsSize()
int UPlotCurve::itemsSize |
( |
| ) |
const |
Get the number of items in the curve (dot + line items).
Definition at line 856 of file UPlot.cpp.
◆ name()
QString UPlotCurve::name |
( |
| ) |
const |
|
inline |
◆ pen()
const QPen& UPlotCurve::pen |
( |
| ) |
const |
|
inline |
◆ removeItem() [1/2]
int UPlotCurve::removeItem |
( |
int |
index | ) |
|
|
protected |
◆ removeItem() [2/2]
void UPlotCurve::removeItem |
( |
UPlotItem * |
item | ) |
|
|
private |
◆ setBrush()
void UPlotCurve::setBrush |
( |
const QBrush & |
brush | ) |
|
◆ setData [1/5]
void UPlotCurve::setData |
( |
const QVector< qreal > & |
x, |
|
|
const QVector< qreal > & |
y |
|
) |
| |
|
slot |
◆ setData [2/5]
void UPlotCurve::setData |
( |
const QVector< qreal > & |
y | ) |
|
|
slot |
◆ setData [3/5]
void UPlotCurve::setData |
( |
const std::vector< qreal > & |
x, |
|
|
const std::vector< qreal > & |
y |
|
) |
| |
|
slot |
◆ setData [4/5]
void UPlotCurve::setData |
( |
const std::vector< qreal > & |
y | ) |
|
|
slot |
◆ setData() [5/5]
void UPlotCurve::setData |
( |
QVector< UPlotItem * > & |
data | ) |
|
◆ setItemsColor()
void UPlotCurve::setItemsColor |
( |
const QColor & |
color | ) |
|
◆ setPen()
void UPlotCurve::setPen |
( |
const QPen & |
pen | ) |
|
◆ setVisible
void UPlotCurve::setVisible |
( |
bool |
visible | ) |
|
|
slot |
Show or hide the curve.
Definition at line 876 of file UPlot.cpp.
◆ setXIncrement
void UPlotCurve::setXIncrement |
( |
qreal |
increment | ) |
|
|
slot |
Set increment of the x values (when auto-increment is used).
Definition at line 885 of file UPlot.cpp.
◆ setXStart
void UPlotCurve::setXStart |
( |
qreal |
val | ) |
|
|
slot |
Set starting x value (when auto-increment is used).
Definition at line 890 of file UPlot.cpp.
◆ update()
void UPlotCurve::update |
( |
qreal |
scaleX, |
|
|
qreal |
scaleY, |
|
|
qreal |
offsetX, |
|
|
qreal |
offsetY, |
|
|
qreal |
xDir, |
|
|
qreal |
yDir, |
|
|
int |
maxItemsKept |
|
) |
| |
|
protectedvirtual |
◆ updateMinMax()
void UPlotCurve::updateMinMax |
( |
| ) |
|
|
protected |
◆ UPlot
◆ _brush
QBrush UPlotCurve::_brush |
|
private |
◆ _items
QList<QGraphicsItem *> UPlotCurve::_items |
|
protected |
◆ _itemsColor
QColor UPlotCurve::_itemsColor |
|
private |
◆ _minMax
QVector<qreal> UPlotCurve::_minMax |
|
private |
◆ _name
QString UPlotCurve::_name |
|
private |
◆ _pen
◆ _plot
◆ _rootItem
QGraphicsRectItem* UPlotCurve::_rootItem |
|
private |
◆ _valuesShown
bool UPlotCurve::_valuesShown |
|
private |
◆ _visible
bool UPlotCurve::_visible |
|
private |
◆ _xIncrement
qreal UPlotCurve::_xIncrement |
|
private |
◆ _xStart
qreal UPlotCurve::_xStart |
|
private |
The documentation for this class was generated from the following files: