#include <UPlot.h>

| Public Slots | |
| void | clearData () | 
| void | removeCurve (const UPlotCurve *curve) | 
| void | showCurve (const UPlotCurve *curve, bool shown) | 
| void | updateAxis () | 
| Public Member Functions | |
| UPlotCurve * | addCurve (const QString &curveName, const QColor &color=QColor()) | 
| bool | addCurve (UPlotCurve *curve, bool ownershipTransferred=true) | 
| UPlotCurveThreshold * | addThreshold (const QString &name, float value, Qt::Orientation orientation=Qt::Horizontal) | 
| bool | contains (const QString &curveName) | 
| QStringList | curveNames () | 
| QPen | getRandomPenColored () | 
| void | keepAllData (bool kept) | 
| void | removeCurves () | 
| QRectF | sceneRect () const | 
| void | setFixedXAxis (float x1, float x2) | 
| void | setFixedYAxis (float y1, float y2) | 
| void | setGraphicsView (bool on) | 
| void | setMaxVisibleItems (int maxVisibleItems) | 
| void | setTitle (const QString &text) | 
| void | setVariableXAxis () | 
| void | setVariableYAxis () | 
| void | setWorkingDirectory (const QString &workingDirectory) | 
| void | setXLabel (const QString &text) | 
| void | setYLabel (const QString &text, Qt::Orientation orientation=Qt::Vertical) | 
| void | showGrid (bool shown) | 
| void | showLegend (bool shown) | 
| void | showRefreshRate (bool shown) | 
| void | showXAxis (bool shown) | 
| void | showYAxis (bool shown) | 
| QString | title () const | 
| UPlot (QWidget *parent=0) | |
| virtual | ~UPlot () | 
| Protected Member Functions | |
| virtual void | contextMenuEvent (QContextMenuEvent *event) | 
| virtual void | paintEvent (QPaintEvent *event) | 
| virtual void | resizeEvent (QResizeEvent *event) | 
| Private Slots | |
| void | captureScreen () | 
| void | updateAxis (const UPlotCurve *curve) | 
| Private Member Functions | |
| void | addItem (QGraphicsItem *item) | 
| void | createActions () | 
| void | createMenus () | 
| void | replot (QPainter *painter) | 
| void | selectScreenCaptureFormat () | 
| void | setupUi () | 
| bool | updateAxis (float x, float y) | 
| bool | updateAxis (float x1, float x2, float y1, float y2) | 
| Friends | |
| class | UPlotCurve | 
UPlot is a QWidget to create a plot like MATLAB, and incrementally add new values like a scope using Qt signals/slots. Many customizations can be done at runtime with the right-click menu.
 
 
Example:
| UPlotCurve * UPlot::addCurve | ( | const QString & | curveName, | 
| const QColor & | color = QColor() | ||
| ) | 
| bool UPlot::addCurve | ( | UPlotCurve * | curve, | 
| bool | ownershipTransferred = true | ||
| ) | 
| UPlotCurveThreshold * UPlot::addThreshold | ( | const QString & | name, | 
| float | value, | ||
| Qt::Orientation | orientation = Qt::Horizontal | ||
| ) | 
| 
 | protectedvirtual | 
| 
 | protectedvirtual | 
| 
 | slot | 
| 
 | protectedvirtual | 
| void UPlot::setWorkingDirectory | ( | const QString & | workingDirectory | ) | 
| void UPlot::setYLabel | ( | const QString & | text, | 
| Qt::Orientation | orientation = Qt::Vertical | ||
| ) | 
| 
 | slot | 
| 
 | privateslot | 
| 
 | private | 
| 
 | friend | 
| 
 | private | 
| 
 | private | 
| 
 | private |