#include <UPlot.h>
UPlotCurve is a curve used to hold data shown in a UPlot.
Definition at line 91 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< float > & |
x, |
|
|
const QVector< float > & |
y, |
|
|
QObject * |
parent = 0 |
|
) |
| |
UPlotCurve::~UPlotCurve |
( |
| ) |
|
|
virtual |
void UPlotCurve::_addValue |
( |
UPlotItem * |
data | ) |
|
|
protected |
void UPlotCurve::addValue |
( |
UPlotItem * |
data | ) |
|
|
slot |
void UPlotCurve::addValue |
( |
float |
y | ) |
|
|
slot |
void UPlotCurve::addValue |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
slot |
Add a single value y at x.
Definition at line 430 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 475 of file UPlot.cpp.
void UPlotCurve::addValues |
( |
const QVector< float > & |
xs, |
|
|
const QVector< float > & |
ys |
|
) |
| |
|
slot |
Add multiple values y at x. Vectors must have the same size.
Definition at line 484 of file UPlot.cpp.
void UPlotCurve::addValues |
( |
const QVector< float > & |
ys | ) |
|
|
slot |
void UPlotCurve::addValues |
( |
const QVector< int > & |
ys | ) |
|
|
slot |
void UPlotCurve::addValues |
( |
const std::vector< float > & |
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 117 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< float > & |
x, |
|
|
QVector< float > & |
y |
|
) |
| const |
void UPlotCurve::getData |
( |
QMap< float, float > & |
data | ) |
const |
QPointF UPlotCurve::getItemData |
( |
int |
index | ) |
|
const QVector<float>& 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 837 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< float > & |
x, |
|
|
const QVector< float > & |
y |
|
) |
| |
|
slot |
void UPlotCurve::setData |
( |
const std::vector< float > & |
x, |
|
|
const std::vector< float > & |
y |
|
) |
| |
|
slot |
void UPlotCurve::setData |
( |
const QVector< float > & |
y | ) |
|
|
slot |
void UPlotCurve::setData |
( |
const std::vector< float > & |
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 857 of file UPlot.cpp.
void UPlotCurve::setXIncrement |
( |
float |
increment | ) |
|
|
slot |
Set increment of the x values (when auto-increment is used).
Definition at line 866 of file UPlot.cpp.
void UPlotCurve::setXStart |
( |
float |
val | ) |
|
|
slot |
Set starting x value (when auto-increment is used).
Definition at line 871 of file UPlot.cpp.
void UPlotCurve::update |
( |
float |
scaleX, |
|
|
float |
scaleY, |
|
|
float |
offsetX, |
|
|
float |
offsetY, |
|
|
float |
xDir, |
|
|
float |
yDir, |
|
|
int |
maxItemsKept |
|
) |
| |
|
protectedvirtual |
void UPlotCurve::updateMinMax |
( |
| ) |
|
|
protected |
QBrush UPlotCurve::_brush |
|
private |
QList<QGraphicsItem *> UPlotCurve::_items |
|
protected |
QColor UPlotCurve::_itemsColor |
|
private |
QVector<float> UPlotCurve::_minMax |
|
private |
QString UPlotCurve::_name |
|
private |
QGraphicsRectItem* UPlotCurve::_rootItem |
|
private |
bool UPlotCurve::_valuesShown |
|
private |
bool UPlotCurve::_visible |
|
private |
float UPlotCurve::_xIncrement |
|
private |
float UPlotCurve::_xStart |
|
private |
The documentation for this class was generated from the following files: