#include <UPlot.h>
UPlotCurve is a curve used to hold data shown in a UPlot.
Definition at line 90 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< float > & |
x, |
|
|
const QVector< float > & |
y, |
|
|
QObject * |
parent = 0 |
|
) |
| |
◆ ~UPlotCurve()
UPlotCurve::~UPlotCurve |
( |
| ) |
|
|
virtual |
◆ _addValue()
void UPlotCurve::_addValue |
( |
UPlotItem * |
data | ) |
|
|
protected |
◆ addValue [1/4]
void UPlotCurve::addValue |
( |
UPlotItem * |
data | ) |
|
|
slot |
◆ addValue [2/4]
void UPlotCurve::addValue |
( |
float |
y | ) |
|
|
slot |
◆ addValue [3/4]
void UPlotCurve::addValue |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
slot |
Add a single value y at x.
Definition at line 426 of file UPlot.cpp.
◆ addValue [4/4]
void UPlotCurve::addValue |
( |
const QString & |
y | ) |
|
|
slot |
◆ addValues [1/6]
void UPlotCurve::addValues |
( |
QVector< UPlotItem *> & |
data | ) |
|
|
slot |
For convenience... Add multiple values, using custom UPlotItem.
Definition at line 461 of file UPlot.cpp.
◆ addValues [2/6]
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 470 of file UPlot.cpp.
◆ addValues [3/6]
void UPlotCurve::addValues |
( |
const QVector< float > & |
ys | ) |
|
|
slot |
◆ addValues [4/6]
void UPlotCurve::addValues |
( |
const QVector< int > & |
ys | ) |
|
|
slot |
◆ addValues [5/6]
void UPlotCurve::addValues |
( |
const std::vector< float > & |
ys | ) |
|
|
slot |
◆ addValues [6/6]
void UPlotCurve::addValues |
( |
const std::vector< int > & |
ys | ) |
|
|
slot |
◆ attach()
void UPlotCurve::attach |
( |
UPlot * |
plot | ) |
|
|
protected |
◆ brush()
const QBrush& UPlotCurve::brush |
( |
| ) |
const |
|
inline |
Get brush.
Definition at line 116 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 | ) |
|
◆ getData()
void UPlotCurve::getData |
( |
QVector< float > & |
x, |
|
|
QVector< float > & |
y |
|
) |
| const |
◆ getItemData()
QPointF UPlotCurve::getItemData |
( |
int |
index | ) |
|
◆ getMinMax()
const QVector<float>& UPlotCurve::getMinMax |
( |
| ) |
const |
|
inlineprotected |
◆ isMinMaxValid()
virtual bool UPlotCurve::isMinMaxValid |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ isVisible()
bool UPlotCurve::isVisible |
( |
| ) |
const |
|
inline |
◆ itemsSize()
int UPlotCurve::itemsSize |
( |
| ) |
const |
Get the number of items in the curve (dot + line items).
Definition at line 772 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 |
( |
QVector< UPlotItem *> & |
data | ) |
|
◆ setData() [2/5]
void UPlotCurve::setData |
( |
const QVector< float > & |
x, |
|
|
const QVector< float > & |
y |
|
) |
| |
◆ setData() [3/5]
void UPlotCurve::setData |
( |
const std::vector< float > & |
x, |
|
|
const std::vector< float > & |
y |
|
) |
| |
◆ setData() [4/5]
void UPlotCurve::setData |
( |
const QVector< float > & |
y | ) |
|
◆ setData() [5/5]
void UPlotCurve::setData |
( |
const std::vector< float > & |
y | ) |
|
◆ setPen()
void UPlotCurve::setPen |
( |
const QPen & |
pen | ) |
|
◆ setVisible
void UPlotCurve::setVisible |
( |
bool |
visible | ) |
|
|
slot |
Show or hide the curve.
Definition at line 792 of file UPlot.cpp.
◆ setXIncrement
void UPlotCurve::setXIncrement |
( |
float |
increment | ) |
|
|
slot |
Set increment of the x values (when auto-increment is used).
Definition at line 801 of file UPlot.cpp.
◆ setXStart
void UPlotCurve::setXStart |
( |
float |
val | ) |
|
|
slot |
Set starting x value (when auto-increment is used).
Definition at line 806 of file UPlot.cpp.
◆ update()
void UPlotCurve::update |
( |
float |
scaleX, |
|
|
float |
scaleY, |
|
|
float |
offsetX, |
|
|
float |
offsetY, |
|
|
float |
xDir, |
|
|
float |
yDir, |
|
|
bool |
allDataKept |
|
) |
| |
|
protectedvirtual |
◆ updateMinMax()
void UPlotCurve::updateMinMax |
( |
| ) |
|
|
protected |
◆ UPlot
◆ _brush
QBrush UPlotCurve::_brush |
|
private |
◆ _items
QList<QGraphicsItem *> UPlotCurve::_items |
|
protected |
◆ _minMax
QVector<float> UPlotCurve::_minMax |
|
private |
◆ _name
QString UPlotCurve::_name |
|
private |
◆ _pen
◆ _plot
◆ _valuesShown
bool UPlotCurve::_valuesShown |
|
private |
◆ _visible
bool UPlotCurve::_visible |
|
private |
◆ _xIncrement
float UPlotCurve::_xIncrement |
|
private |
◆ _xStart
float UPlotCurve::_xStart |
|
private |
The documentation for this class was generated from the following files: