#include <plotwidget.h>
Public Slots | |
void | activateGrid (bool activate) |
void | activateLegent (bool activate) |
void | configureTracker (CurveTracker::Parameter val) |
void | detachAllCurves () |
void | enableTracker (bool enable) |
void | on_changeTimeOffset (double offset) |
void | on_zoomOutHorizontal_triggered (bool emit_signal=true) |
void | on_zoomOutVertical_triggered (bool emit_signal=true) |
void | removeCurve (const QString &name) |
void | replot () |
Redraw the plot. | |
void | setTrackerPosition (double abs_time) |
void | updateCurves (bool force) |
void | zoomOut (bool emit_signal) |
Signals | |
void | rectChanged (PlotWidget *self, QRectF rect) |
void | swapWidgetsRequested (PlotWidget *source, PlotWidget *destination) |
void | trackerMoved (QPointF pos) |
void | undoableChange () |
Public Member Functions | |
bool | addCurve (const QString &name, bool do_replot) |
void | changeAxisX (QString curve_name) |
QRectF | currentBoundingRect () const |
const std::map< QString, std::shared_ptr< QwtPlotCurve > > & | curveList () const |
PlotData::RangeTime | getMaximumRangeX () const |
PlotData::RangeValue | getMaximumRangeY (PlotData::RangeTime range_X, bool absolute_time) const |
bool | isEmpty () const |
bool | isXYPlot () const |
PlotWidget (PlotDataMap &datamap, QWidget *parent=0) | |
void | reloadPlotData () |
void | setScale (QRectF rect, bool emit_signal) |
bool | xmlLoadState (QDomElement &element, QMessageBox::StandardButton *answer) |
QDomElement | xmlSaveState (QDomDocument &doc) const |
virtual | ~PlotWidget () |
Protected Member Functions | |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
virtual void | dragMoveEvent (QDragMoveEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
Event filter. | |
Private Slots | |
void | canvasContextMenuTriggered (const QPoint &pos) |
void | launchRemoveCurveDialog () |
void | on_1stDerivativeTransform_triggered (bool checked) |
void | on_2ndDerivativeTransform_triggered (bool checked) |
void | on_changeColor (QString curve_name, QColor new_color) |
void | on_changeColorsDialog_triggered () |
void | on_convertToXY_triggered (bool checked) |
void | on_editAxisLimits_triggered () |
void | on_externallyResized (const QRectF &new_rect) |
void | on_noTransform_triggered (bool checked) |
void | on_savePlotToFile () |
void | on_showPoints_triggered (bool checked) |
Private Member Functions | |
void | buildActions () |
void | buildLegend () |
void | setDefaultRangeX () |
Private Attributes | |
QAction * | _action_1stDerivativeTransform |
QAction * | _action_2ndDerivativeTransform |
QAction * | _action_changeColorsDialog |
QAction * | _action_editLimits |
QAction * | _action_noTransform |
QAction * | _action_phaseXY |
QAction * | _action_removeAllCurves |
QAction * | _action_removeCurve |
QAction * | _action_saveToFile |
QAction * | _action_showPoints |
QAction * | _action_zoomOutHorizontally |
QAction * | _action_zoomOutVertically |
AxisLimitsDialog * | _axis_limits_dialog |
PlotDataPtr | _axisX |
TimeseriesQwt::Transform | _current_transform |
std::map< QString, std::shared_ptr< QwtPlotCurve > > | _curve_list |
PlotData::RangeValue | _custom_Y_limits |
int | _fps_counter |
QTime | _fps_timeStamp |
QwtPlotGrid * | _grid |
QwtPlotLegendItem * | _legend |
PlotMagnifier * | _magnifier |
PlotDataMap & | _mapped_data |
QwtPlotPanner * | _panner |
std::map< QString, QwtPlotMarker * > | _point_marker |
bool | _show_line_and_points |
double | _time_offset |
CurveTracker * | _tracker |
PlotZoomer * | _zoomer |
Definition at line 24 of file plotwidget.h.
PlotWidget::PlotWidget | ( | PlotDataMap & | datamap, |
QWidget * | parent = 0 |
||
) |
Definition at line 48 of file plotwidget.cpp.
PlotWidget::~PlotWidget | ( | ) | [virtual] |
Definition at line 262 of file plotwidget.cpp.
void PlotWidget::activateGrid | ( | bool | activate | ) | [slot] |
Definition at line 739 of file plotwidget.cpp.
void PlotWidget::activateLegent | ( | bool | activate | ) | [slot] |
Definition at line 733 of file plotwidget.cpp.
bool PlotWidget::addCurve | ( | const QString & | name, |
bool | do_replot | ||
) |
Definition at line 267 of file plotwidget.cpp.
void PlotWidget::buildActions | ( | ) | [private] |
Definition at line 123 of file plotwidget.cpp.
void PlotWidget::buildLegend | ( | ) | [private] |
Definition at line 232 of file plotwidget.cpp.
void PlotWidget::canvasContextMenuTriggered | ( | const QPoint & | pos | ) | [private, slot] |
Definition at line 200 of file plotwidget.cpp.
void PlotWidget::changeAxisX | ( | QString | curve_name | ) |
Definition at line 1159 of file plotwidget.cpp.
void PlotWidget::configureTracker | ( | CurveTracker::Parameter | val | ) | [slot] |
Definition at line 748 of file plotwidget.cpp.
QRectF PlotWidget::currentBoundingRect | ( | ) | const |
Definition at line 669 of file plotwidget.cpp.
const std::map< QString, std::shared_ptr< QwtPlotCurve > > & PlotWidget::curveList | ( | ) | const |
Definition at line 372 of file plotwidget.cpp.
void PlotWidget::detachAllCurves | ( | ) | [slot] |
Definition at line 451 of file plotwidget.cpp.
void PlotWidget::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected, virtual] |
Definition at line 377 of file plotwidget.cpp.
void PlotWidget::dragMoveEvent | ( | QDragMoveEvent * | event | ) | [protected, virtual] |
Definition at line 403 of file plotwidget.cpp.
void PlotWidget::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
Definition at line 409 of file plotwidget.cpp.
void PlotWidget::enableTracker | ( | bool | enable | ) | [slot] |
Definition at line 753 of file plotwidget.cpp.
bool PlotWidget::eventFilter | ( | QObject * | object, |
QEvent * | event | ||
) | [protected, virtual] |
Event filter.
The plot handles the following events for the canvas:
object | Object to be filtered |
event | Event |
Reimplemented from QwtPlot.
Definition at line 1224 of file plotwidget.cpp.
Definition at line 789 of file plotwidget.cpp.
PlotData::RangeValue PlotWidget::getMaximumRangeY | ( | PlotData::RangeTime | range_X, |
bool | absolute_time | ||
) | const |
Definition at line 822 of file plotwidget.cpp.
bool PlotWidget::isEmpty | ( | ) | const |
Definition at line 367 of file plotwidget.cpp.
bool PlotWidget::isXYPlot | ( | ) | const |
Definition at line 1119 of file plotwidget.cpp.
void PlotWidget::launchRemoveCurveDialog | ( | ) | [private, slot] |
Definition at line 919 of file plotwidget.cpp.
void PlotWidget::on_1stDerivativeTransform_triggered | ( | bool | checked | ) | [private, slot] |
Definition at line 1071 of file plotwidget.cpp.
void PlotWidget::on_2ndDerivativeTransform_triggered | ( | bool | checked | ) | [private, slot] |
Definition at line 1095 of file plotwidget.cpp.
void PlotWidget::on_changeColor | ( | QString | curve_name, |
QColor | new_color | ||
) | [private, slot] |
Definition at line 961 of file plotwidget.cpp.
void PlotWidget::on_changeColorsDialog_triggered | ( | ) | [private, slot] |
Definition at line 937 of file plotwidget.cpp.
void PlotWidget::on_changeTimeOffset | ( | double | offset | ) | [slot] |
Definition at line 777 of file plotwidget.cpp.
void PlotWidget::on_convertToXY_triggered | ( | bool | checked | ) | [private, slot] |
Definition at line 1125 of file plotwidget.cpp.
void PlotWidget::on_editAxisLimits_triggered | ( | ) | [private, slot] |
Definition at line 1203 of file plotwidget.cpp.
void PlotWidget::on_externallyResized | ( | const QRectF & | new_rect | ) | [private, slot] |
Definition at line 992 of file plotwidget.cpp.
void PlotWidget::on_noTransform_triggered | ( | bool | checked | ) | [private, slot] |
Definition at line 1053 of file plotwidget.cpp.
void PlotWidget::on_savePlotToFile | ( | ) | [private, slot] |
Definition at line 1172 of file plotwidget.cpp.
void PlotWidget::on_showPoints_triggered | ( | bool | checked | ) | [private, slot] |
Definition at line 975 of file plotwidget.cpp.
void PlotWidget::on_zoomOutHorizontal_triggered | ( | bool | emit_signal = true | ) | [slot] |
Definition at line 1030 of file plotwidget.cpp.
void PlotWidget::on_zoomOutVertical_triggered | ( | bool | emit_signal = true | ) | [slot] |
Definition at line 1040 of file plotwidget.cpp.
void PlotWidget::rectChanged | ( | PlotWidget * | self, |
QRectF | rect | ||
) | [signal] |
void PlotWidget::reloadPlotData | ( | ) |
Definition at line 699 of file plotwidget.cpp.
void PlotWidget::removeCurve | ( | const QString & | name | ) | [slot] |
Definition at line 342 of file plotwidget.cpp.
void PlotWidget::replot | ( | ) | [virtual, slot] |
Redraw the plot.
If the autoReplot option is not set (which is the default) or if any curves are attached to raw data, the plot has to be refreshed explicitly in order to make changes visible.
Reimplemented from QwtPlot.
Definition at line 911 of file plotwidget.cpp.
void PlotWidget::setDefaultRangeX | ( | ) | [private] |
Definition at line 28 of file plotwidget.cpp.
void PlotWidget::setScale | ( | QRectF | rect, |
bool | emit_signal | ||
) |
Definition at line 681 of file plotwidget.cpp.
void PlotWidget::setTrackerPosition | ( | double | abs_time | ) | [slot] |
Definition at line 758 of file plotwidget.cpp.
void PlotWidget::swapWidgetsRequested | ( | PlotWidget * | source, |
PlotWidget * | destination | ||
) | [signal] |
void PlotWidget::trackerMoved | ( | QPointF | pos | ) | [signal] |
void PlotWidget::undoableChange | ( | ) | [signal] |
void PlotWidget::updateCurves | ( | bool | force | ) | [slot] |
Definition at line 901 of file plotwidget.cpp.
bool PlotWidget::xmlLoadState | ( | QDomElement & | element, |
QMessageBox::StandardButton * | answer | ||
) |
Definition at line 533 of file plotwidget.cpp.
QDomElement PlotWidget::xmlSaveState | ( | QDomDocument & | doc | ) | const |
Definition at line 468 of file plotwidget.cpp.
void PlotWidget::zoomOut | ( | bool | emit_signal | ) | [slot] |
Definition at line 1004 of file plotwidget.cpp.
QAction* PlotWidget::_action_1stDerivativeTransform [private] |
Definition at line 132 of file plotwidget.h.
QAction* PlotWidget::_action_2ndDerivativeTransform [private] |
Definition at line 133 of file plotwidget.h.
QAction* PlotWidget::_action_changeColorsDialog [private] |
Definition at line 127 of file plotwidget.h.
QAction* PlotWidget::_action_editLimits [private] |
Definition at line 136 of file plotwidget.h.
QAction* PlotWidget::_action_noTransform [private] |
Definition at line 131 of file plotwidget.h.
QAction* PlotWidget::_action_phaseXY [private] |
Definition at line 134 of file plotwidget.h.
QAction* PlotWidget::_action_removeAllCurves [private] |
Definition at line 126 of file plotwidget.h.
QAction* PlotWidget::_action_removeCurve [private] |
Definition at line 125 of file plotwidget.h.
QAction* PlotWidget::_action_saveToFile [private] |
Definition at line 135 of file plotwidget.h.
QAction* PlotWidget::_action_showPoints [private] |
Definition at line 128 of file plotwidget.h.
QAction* PlotWidget::_action_zoomOutHorizontally [private] |
Definition at line 129 of file plotwidget.h.
QAction* PlotWidget::_action_zoomOutVertically [private] |
Definition at line 130 of file plotwidget.h.
AxisLimitsDialog* PlotWidget::_axis_limits_dialog [private] |
Definition at line 164 of file plotwidget.h.
PlotDataPtr PlotWidget::_axisX [private] |
Definition at line 158 of file plotwidget.h.
Definition at line 147 of file plotwidget.h.
std::map<QString, std::shared_ptr<QwtPlotCurve> > PlotWidget::_curve_list [private] |
Definition at line 122 of file plotwidget.h.
Definition at line 162 of file plotwidget.h.
int PlotWidget::_fps_counter [private] |
Definition at line 152 of file plotwidget.h.
QTime PlotWidget::_fps_timeStamp [private] |
Definition at line 153 of file plotwidget.h.
QwtPlotGrid* PlotWidget::_grid [private] |
Definition at line 144 of file plotwidget.h.
QwtPlotLegendItem* PlotWidget::_legend [private] |
Definition at line 143 of file plotwidget.h.
PlotMagnifier* PlotWidget::_magnifier [private] |
Definition at line 139 of file plotwidget.h.
PlotDataMap& PlotWidget::_mapped_data [private] |
Definition at line 146 of file plotwidget.h.
QwtPlotPanner* PlotWidget::_panner [private] |
Definition at line 140 of file plotwidget.h.
std::map<QString, QwtPlotMarker*> PlotWidget::_point_marker [private] |
Definition at line 123 of file plotwidget.h.
bool PlotWidget::_show_line_and_points [private] |
Definition at line 154 of file plotwidget.h.
double PlotWidget::_time_offset [private] |
Definition at line 160 of file plotwidget.h.
CurveTracker* PlotWidget::_tracker [private] |
Definition at line 142 of file plotwidget.h.
PlotZoomer* PlotWidget::_zoomer [private] |
Definition at line 138 of file plotwidget.h.