#include <plotwidget.h>

Classes | |
| struct | CurveInfo |
| struct | DragInfo |
Public Slots | |
| void | activateGrid (bool activate) |
| void | activateLegend (bool activate) |
| void | configureTracker (CurveTracker::Parameter val) |
| void | enableTracker (bool enable) |
| bool | isTrackerEnabled () const |
| void | on_changeCurveColor (const QString &curve_name, QColor new_color) |
| void | on_changeDateTimeScale (bool enable) |
| void | on_changeTimeOffset (double offset) |
| void | on_panned (int dx, int dy) |
| void | on_zoomOutHorizontal_triggered (bool emit_signal=true) |
| void | on_zoomOutVertical_triggered (bool emit_signal=true) |
| void | onSourceDataRemoved (const std::string &src_name) |
| void | removeAllCurves () |
| void | replot () override |
| void | setTrackerPosition (double abs_time) |
| void | updateCurves () |
| void | zoomOut (bool emit_signal) |
Public Slots inherited from QwtPlot | |
| void | autoRefresh () |
Replots the plot if autoReplot() is true. More... | |
| virtual void | replot () |
| Redraw the plot. More... | |
Signals | |
| void | curveListChanged () |
| void | curvesDropped () |
| void | legendSizeChanged (int new_size) |
| void | rectChanged (PlotWidget *self, QRectF rect) |
| void | splitHorizontal () |
| void | splitVertical () |
| void | swapWidgetsRequested (PlotWidget *source, PlotWidget *destination) |
| void | trackerMoved (QPointF pos) |
| void | undoableChange () |
Signals inherited from QwtPlot | |
| void | itemAttached (QwtPlotItem *plotItem, bool on) |
| void | legendDataChanged (const QVariant &itemInfo, const QList< QwtLegendData > &data) |
Public Member Functions | |
| CurveInfo * | addCurve (const std::string &name, QColor color=Qt::transparent) |
| QRectF | canvasBoundingRect () const |
| void | changeBackgroundColor (QColor color) |
| void | changeCurveStyle (QwtPlotCurve::CurveStyle style) |
| CurveInfo * | curveFromTitle (const QString &title) |
| const CurveInfo * | curveFromTitle (const QString &title) const |
| const std::list< CurveInfo > & | curveList () const |
| std::list< CurveInfo > & | curveList () |
| QwtPlotCurve::CurveStyle | curveStyle () const |
| Range | customAxisLimit () const |
| PlotDataMapRef & | datamap () |
| std::map< QString, QColor > | getCurveColors () const |
| Range | getMaximumRangeX () const |
| Range | getMaximumRangeY (Range range_X) const |
| bool | isEmpty () const |
| bool | isLegendVisible () const |
| bool | isXYPlot () const |
| bool | isZoomEnabled () const |
| const PlotLegend * | legend () const |
| PlotWidget (PlotDataMapRef &datamap, QWidget *parent=nullptr) | |
| void | reloadPlotData () |
| void | removeCurve (const QString &title) |
| virtual void | resizeEvent (QResizeEvent *ev) override |
| void | setConstantRatioXY (bool active) |
| void | setContextMenuEnabled (bool enabled) |
| void | setCustomAxisLimits (Range range) |
| void | setLegendAlignment (Qt::Alignment alignment) |
| void | setLegendSize (int size) |
| void | setZoomEnabled (bool enabled) |
| void | setZoomRectangle (QRectF rect, bool emit_signal) |
| double | timeOffset () const |
| virtual void | updateLayout () override |
| Adjust plot content to its current size. More... | |
| bool | xmlLoadState (QDomElement &element) |
| QDomElement | xmlSaveState (QDomDocument &doc) const |
| virtual | ~PlotWidget () override |
Public Member Functions inherited from QwtPlot | |
| void | applyProperties (const QString &) |
| bool | autoReplot () const |
| bool | axisAutoScale (int axisId) const |
| bool | axisEnabled (int axisId) const |
| QFont | axisFont (int axisId) const |
| QwtInterval | axisInterval (int axisId) const |
| Return the current interval of the specified axis. More... | |
| int | axisMaxMajor (int axisId) const |
| int | axisMaxMinor (int axisId) const |
| const QwtScaleDiv & | axisScaleDiv (int axisId) const |
| Return the scale division of a specified axis. More... | |
| const QwtScaleDraw * | axisScaleDraw (int axisId) const |
| Return the scale draw of a specified axis. More... | |
| QwtScaleDraw * | axisScaleDraw (int axisId) |
| Return the scale draw of a specified axis. More... | |
| QwtScaleEngine * | axisScaleEngine (int axisId) |
| const QwtScaleEngine * | axisScaleEngine (int axisId) const |
| double | axisStepSize (int axisId) const |
| Return the step size parameter that has been set in setAxisScale. More... | |
| QwtText | axisTitle (int axisId) const |
| const QwtScaleWidget * | axisWidget (int axisId) const |
| QwtScaleWidget * | axisWidget (int axisId) |
| QWidget * | canvas () |
| const QWidget * | canvas () const |
| QBrush | canvasBackground () const |
| virtual QwtScaleMap | canvasMap (int axisId) const |
| virtual void | drawCanvas (QPainter *) |
| virtual void | drawItems (QPainter *, const QRectF &, const QwtScaleMap maps[axisCnt]) const |
| void | enableAxis (int axisId, bool tf=true) |
| Enable or disable a specified axis. More... | |
| virtual bool | event (QEvent *) QWT_OVERRIDE |
| Adds handling of layout requests. More... | |
| QwtText | footer () const |
| QwtTextLabel * | footerLabel () |
| const QwtTextLabel * | footerLabel () const |
| virtual void | getCanvasMarginsHint (const QwtScaleMap maps[], const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const |
| Calculate the canvas margins. More... | |
| QString | grabProperties () const |
| virtual QwtPlotItem * | infoToItem (const QVariant &) const |
| Identify the plot item according to an item info object, that has bee generated from itemToInfo(). More... | |
| void | insertLegend (QwtAbstractLegend *, LegendPosition=QwtPlot::RightLegend, double ratio=-1.0) |
| Insert a legend. More... | |
| double | invTransform (int axisId, int pos) const |
| virtual QVariant | itemToInfo (QwtPlotItem *) const |
| Build an information, that can be used to identify a plot item on the legend. More... | |
| QwtAbstractLegend * | legend () |
| const QwtAbstractLegend * | legend () const |
| virtual QSize | minimumSizeHint () const QWT_OVERRIDE |
| Return a minimum size hint. More... | |
| QwtPlotLayout * | plotLayout () |
| const QwtPlotLayout * | plotLayout () const |
| QwtPlot (QWidget *=NULL) | |
| Constructor. More... | |
| QwtPlot (const QwtText &title, QWidget *=NULL) | |
| Constructor. More... | |
| void | setAutoReplot (bool=true) |
| Set or reset the autoReplot option. More... | |
| void | setAxisAutoScale (int axisId, bool on=true) |
| Enable autoscaling for a specified axis. More... | |
| void | setAxisFont (int axisId, const QFont &) |
| Change the font of an axis. More... | |
| void | setAxisLabelAlignment (int axisId, Qt::Alignment) |
| void | setAxisLabelRotation (int axisId, double rotation) |
| void | setAxisMaxMajor (int axisId, int maxMajor) |
| void | setAxisMaxMinor (int axisId, int maxMinor) |
| void | setAxisScale (int axisId, double min, double max, double stepSize=0) |
| Disable autoscaling and specify a fixed scale for a selected axis. More... | |
| void | setAxisScaleDiv (int axisId, const QwtScaleDiv &) |
| Disable autoscaling and specify a fixed scale for a selected axis. More... | |
| void | setAxisScaleDraw (int axisId, QwtScaleDraw *) |
| Set a scale draw. More... | |
| void | setAxisScaleEngine (int axisId, QwtScaleEngine *) |
| void | setAxisTitle (int axisId, const QString &) |
| Change the title of a specified axis. More... | |
| void | setAxisTitle (int axisId, const QwtText &) |
| Change the title of a specified axis. More... | |
| void | setCanvas (QWidget *) |
| Set the drawing canvas of the plot widget. More... | |
| void | setCanvasBackground (const QBrush &) |
| Change the background of the plotting area. More... | |
| void | setFooter (const QString &) |
| void | setFooter (const QwtText &) |
| void | setPlotLayout (QwtPlotLayout *) |
| Assign a new plot layout. More... | |
| void | setTitle (const QString &) |
| void | setTitle (const QwtText &) |
| virtual QSize | sizeHint () const QWT_OVERRIDE |
| QwtText | title () const |
| QwtTextLabel * | titleLabel () |
| const QwtTextLabel * | titleLabel () const |
| double | transform (int axisId, double value) const |
| Transform a value into a coordinate in the plotting region. More... | |
| void | updateAxes () |
| Rebuild the axes scales. More... | |
| void | updateCanvasMargins () |
| Update the canvas margins. More... | |
| void | updateLegend () |
| void | updateLegend (const QwtPlotItem *) |
| virtual | ~QwtPlot () |
| Destructor. More... | |
Public Member Functions inherited from QwtPlotDict | |
| bool | autoDelete () const |
| void | detachItems (int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true) |
| const QwtPlotItemList & | itemList () const |
| A QwtPlotItemList of all attached plot items. More... | |
| QwtPlotItemList | itemList (int rtti) const |
| QwtPlotDict () | |
| void | setAutoDelete (bool) |
| virtual | ~QwtPlotDict () |
Protected Member Functions | |
| bool | canvasEventFilter (QEvent *event) |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dragLeaveEvent (QDragLeaveEvent *event) override |
| void | dropEvent (QDropEvent *event) override |
| bool | eventFilter (QObject *obj, QEvent *event) override |
| Event filter. More... | |
| QColor | getColorHint (PlotData *data) |
Protected Member Functions inherited from QwtPlotDict | |
| void | insertItem (QwtPlotItem *) |
| void | removeItem (QwtPlotItem *) |
Private Slots | |
| void | canvasContextMenuTriggered (const QPoint &pos) |
| void | on_copyAction_triggered () |
| void | on_copyToClipboard () |
| void | on_externallyResized (const QRectF &new_rect) |
| void | on_pasteAction_triggered () |
| void | on_savePlotToFile () |
| void | on_showPoints_triggered () |
| void | setModeXY (bool enable) |
Private Member Functions | |
| CurveInfo * | addCurveXY (std::string name_x, std::string name_y, QString curve_name="") |
| void | buildActions () |
| QwtSeriesWrapper * | createCurveXY (const PlotData *data_x, const PlotData *data_y) |
| QwtSeriesWrapper * | createTimeSeries (const QString &transform_ID, const PlotData *data) |
| void | overrideCursonMove () |
| void | rescaleEqualAxisScaling () |
| void | setDefaultRangeX () |
| void | transformCustomCurves () |
| void | updateAvailableTransformers () |
| void | updateMaximumZoomArea () |
Private Attributes | |
| QAction * | _action_copy |
| QAction * | _action_edit |
| QAction * | _action_formula |
| QAction * | _action_image_to_clipboard |
| QAction * | _action_paste |
| QAction * | _action_removeAllCurves |
| QAction * | _action_saveToFile |
| QAction * | _action_split_horizontal |
| QAction * | _action_split_vertical |
| QAction * | _action_zoomOutHorizontally |
| QAction * | _action_zoomOutMaximum |
| QAction * | _action_zoomOutVertically |
| int | _color_index |
| bool | _context_menu_enabled |
| std::list< CurveInfo > | _curve_list |
| QwtPlotCurve::CurveStyle | _curve_style |
| Range | _custom_Y_limits |
| DragInfo | _dragging |
| QwtPlotGrid * | _grid |
| bool | _keep_aspect_ratio |
| PlotLegend * | _legend |
| PlotMagnifier * | _magnifier |
| PlotDataMapRef & | _mapped_data |
| QRectF | _max_zoom_rect |
| QwtPlotPanner * | _panner1 |
| QwtPlotPanner * | _panner2 |
| SnippetsMap | _snippets |
| double | _time_offset |
| CurveTracker * | _tracker |
| TransformSelector * | _transform_select_dialog |
| bool | _use_date_time_scale |
| bool | _xy_mode |
| bool | _zoom_enabled |
| PlotZoomer * | _zoomer |
Static Private Attributes | |
| static int | global_color_index = 0 |
Additional Inherited Members | |
Public Types inherited from QwtPlot | |
| enum | Axis { yLeft, yRight, xBottom, xTop, axisCnt } |
| Axis index. More... | |
| enum | LegendPosition { LeftLegend, RightLegend, BottomLegend, TopLegend } |
Static Protected Member Functions inherited from QwtPlot | |
| static bool | axisValid (int axisId) |
Properties inherited from QwtPlot | |
| bool | autoReplot |
| QBrush | canvasBackground |
Definition at line 27 of file plotwidget.h.
| PlotWidget::PlotWidget | ( | PlotDataMapRef & | datamap, |
| QWidget * | parent = nullptr |
||
| ) |
Definition at line 123 of file plotwidget.cpp.
|
overridevirtual |
Definition at line 364 of file plotwidget.cpp.
|
slot |
Definition at line 1175 of file plotwidget.cpp.
|
slot |
Definition at line 1170 of file plotwidget.cpp.
| PlotWidget::CurveInfo * PlotWidget::addCurve | ( | const std::string & | name, |
| QColor | color = Qt::transparent |
||
| ) |
Definition at line 369 of file plotwidget.cpp.
|
private |
Definition at line 429 of file plotwidget.cpp.
|
private |
Definition at line 232 of file plotwidget.cpp.
| QRectF PlotWidget::canvasBoundingRect | ( | ) | const |
Definition at line 979 of file plotwidget.cpp.
|
privateslot |
Definition at line 305 of file plotwidget.cpp.
|
protected |
Definition at line 1819 of file plotwidget.cpp.
| void PlotWidget::changeBackgroundColor | ( | QColor | color | ) |
Definition at line 2022 of file plotwidget.cpp.
| void PlotWidget::changeCurveStyle | ( | QwtPlotCurve::CurveStyle | style | ) |
Definition at line 1419 of file plotwidget.cpp.
|
slot |
Definition at line 1184 of file plotwidget.cpp.
|
private |
Definition at line 1988 of file plotwidget.cpp.
|
private |
Definition at line 2013 of file plotwidget.cpp.
| PlotWidget::CurveInfo * PlotWidget::curveFromTitle | ( | const QString & | title | ) |
Definition at line 590 of file plotwidget.cpp.
| const PlotWidget::CurveInfo * PlotWidget::curveFromTitle | ( | const QString & | title | ) | const |
Definition at line 614 of file plotwidget.cpp.
| const std::list< PlotWidget::CurveInfo > & PlotWidget::curveList | ( | ) | const |
Definition at line 580 of file plotwidget.cpp.
| std::list< PlotWidget::CurveInfo > & PlotWidget::curveList | ( | ) |
Definition at line 585 of file plotwidget.cpp.
|
signal |
|
signal |
|
inline |
Definition at line 109 of file plotwidget.h.
| Range PlotWidget::customAxisLimit | ( | ) | const |
Definition at line 1710 of file plotwidget.cpp.
|
inline |
Definition at line 97 of file plotwidget.h.
|
overrideprotected |
Definition at line 636 of file plotwidget.cpp.
|
overrideprotected |
Definition at line 682 of file plotwidget.cpp.
|
overrideprotected |
Definition at line 688 of file plotwidget.cpp.
|
slot |
Definition at line 1189 of file plotwidget.cpp.
|
overrideprotectedvirtual |
Event filter.
The plot handles the following events for the canvas:
| object | Object to be filtered |
| event | Event |
Reimplemented from QwtPlot.
Definition at line 1777 of file plotwidget.cpp.
|
protected |
Definition at line 47 of file plotwidget.cpp.
| std::map< QString, QColor > PlotWidget::getCurveColors | ( | ) | const |
Definition at line 1391 of file plotwidget.cpp.
| Range PlotWidget::getMaximumRangeX | ( | ) | const |
Definition at line 1263 of file plotwidget.cpp.
Definition at line 1300 of file plotwidget.cpp.
| bool PlotWidget::isEmpty | ( | ) | const |
Definition at line 575 of file plotwidget.cpp.
| bool PlotWidget::isLegendVisible | ( | ) | const |
Definition at line 2039 of file plotwidget.cpp.
|
slot |
Definition at line 1194 of file plotwidget.cpp.
| bool PlotWidget::isXYPlot | ( | ) | const |
Definition at line 1532 of file plotwidget.cpp.
| bool PlotWidget::isZoomEnabled | ( | ) | const |
Definition at line 2058 of file plotwidget.cpp.
|
inline |
Definition at line 72 of file plotwidget.h.
|
signal |
|
slot |
Definition at line 1402 of file plotwidget.cpp.
|
slot |
Definition at line 1242 of file plotwidget.cpp.
|
slot |
Definition at line 1220 of file plotwidget.cpp.
|
privateslot |
Definition at line 1742 of file plotwidget.cpp.
|
privateslot |
Definition at line 1715 of file plotwidget.cpp.
|
privateslot |
Definition at line 1449 of file plotwidget.cpp.
|
slot |
Definition at line 760 of file plotwidget.cpp.
|
privateslot |
Definition at line 1754 of file plotwidget.cpp.
|
privateslot |
Definition at line 1624 of file plotwidget.cpp.
|
privateslot |
Definition at line 1431 of file plotwidget.cpp.
|
slot |
Definition at line 1480 of file plotwidget.cpp.
|
slot |
Definition at line 1491 of file plotwidget.cpp.
|
slot |
Definition at line 544 of file plotwidget.cpp.
|
private |
Definition at line 1811 of file plotwidget.cpp.
|
signal |
| void PlotWidget::reloadPlotData | ( | ) |
Definition at line 1135 of file plotwidget.cpp.
|
slot |
Definition at line 743 of file plotwidget.cpp.
| void PlotWidget::removeCurve | ( | const QString & | title | ) |
Definition at line 524 of file plotwidget.cpp.
|
overrideslot |
Definition at line 2063 of file plotwidget.cpp.
|
private |
Definition at line 1034 of file plotwidget.cpp.
|
overridevirtual |
Resize and update internal layout
| e | Resize event |
Reimplemented from QwtPlot.
Definition at line 1075 of file plotwidget.cpp.
| void PlotWidget::setConstantRatioXY | ( | bool | active | ) |
Definition at line 1092 of file plotwidget.cpp.
| void PlotWidget::setContextMenuEnabled | ( | bool | enabled | ) |
Definition at line 227 of file plotwidget.cpp.
| void PlotWidget::setCustomAxisLimits | ( | Range | range | ) |
Definition at line 1703 of file plotwidget.cpp.
|
private |
Definition at line 1964 of file plotwidget.cpp.
| void PlotWidget::setLegendAlignment | ( | Qt::Alignment | alignment | ) |
Definition at line 2044 of file plotwidget.cpp.
| void PlotWidget::setLegendSize | ( | int | size | ) |
Definition at line 2031 of file plotwidget.cpp.
|
privateslot |
Definition at line 1537 of file plotwidget.cpp.
|
slot |
Definition at line 1199 of file plotwidget.cpp.
| void PlotWidget::setZoomEnabled | ( | bool | enabled | ) |
Definition at line 2049 of file plotwidget.cpp.
| void PlotWidget::setZoomRectangle | ( | QRectF | rect, |
| bool | emit_signal | ||
| ) |
Definition at line 1106 of file plotwidget.cpp.
|
signal |
|
signal |
|
signal |
|
inline |
Definition at line 102 of file plotwidget.h.
|
signal |
|
private |
Definition at line 1573 of file plotwidget.cpp.
|
signal |
|
private |
Definition at line 1563 of file plotwidget.cpp.
|
slot |
Definition at line 1380 of file plotwidget.cpp.
|
overridevirtual |
Adjust plot content to its current size.
Reimplemented from QwtPlot.
Definition at line 1086 of file plotwidget.cpp.
|
private |
Definition at line 989 of file plotwidget.cpp.
| bool PlotWidget::xmlLoadState | ( | QDomElement & | element | ) |
Definition at line 835 of file plotwidget.cpp.
| QDomElement PlotWidget::xmlSaveState | ( | QDomDocument & | doc | ) | const |
Definition at line 765 of file plotwidget.cpp.
|
slot |
Definition at line 1467 of file plotwidget.cpp.
|
private |
Definition at line 215 of file plotwidget.h.
|
private |
Definition at line 206 of file plotwidget.h.
|
private |
Definition at line 207 of file plotwidget.h.
|
private |
Definition at line 217 of file plotwidget.h.
|
private |
Definition at line 216 of file plotwidget.h.
|
private |
Definition at line 205 of file plotwidget.h.
|
private |
Definition at line 214 of file plotwidget.h.
|
private |
Definition at line 208 of file plotwidget.h.
|
private |
Definition at line 209 of file plotwidget.h.
|
private |
Definition at line 212 of file plotwidget.h.
|
private |
Definition at line 211 of file plotwidget.h.
|
private |
Definition at line 213 of file plotwidget.h.
|
private |
Definition at line 230 of file plotwidget.h.
|
private |
Definition at line 279 of file plotwidget.h.
|
private |
Definition at line 203 of file plotwidget.h.
|
private |
Definition at line 255 of file plotwidget.h.
|
private |
Definition at line 267 of file plotwidget.h.
|
private |
Definition at line 247 of file plotwidget.h.
|
private |
Definition at line 226 of file plotwidget.h.
|
private |
Definition at line 275 of file plotwidget.h.
|
private |
Definition at line 225 of file plotwidget.h.
|
private |
Definition at line 220 of file plotwidget.h.
|
private |
Definition at line 233 of file plotwidget.h.
|
private |
Definition at line 277 of file plotwidget.h.
|
private |
Definition at line 221 of file plotwidget.h.
|
private |
Definition at line 222 of file plotwidget.h.
|
private |
Definition at line 271 of file plotwidget.h.
|
private |
Definition at line 263 of file plotwidget.h.
|
private |
Definition at line 224 of file plotwidget.h.
|
private |
Definition at line 269 of file plotwidget.h.
|
private |
Definition at line 228 of file plotwidget.h.
|
private |
Definition at line 265 of file plotwidget.h.
|
private |
Definition at line 273 of file plotwidget.h.
|
private |
Definition at line 219 of file plotwidget.h.
|
staticprivate |
Definition at line 231 of file plotwidget.h.