#include <PlotCursor.h>
Classes | |
| struct | TrackedPoint |
Signals | |
| void | activeChanged (bool active) |
| void | currentPositionChanged (const QPointF &position) |
Public Member Functions | |
| bool | arePointsTracked () const |
| void | drawRubberBand (QPainter *painter) const |
| const QPointF & | getCurrentPosition () const |
| bool | hasMouseControl () const |
| PlotCursor (QwtPlotCanvas *canvas) | |
| void | setActive (bool active, const QPointF &position=QPointF(0.0, 0.0)) |
| void | setCurrentPosition (const QPointF &position) |
| void | setTrackPoints (bool track) |
| void | update () |
| ~PlotCursor () | |
Protected Member Functions | |
| void | begin () |
| void | drawTrackedPoints (QPainter *painter) const |
| bool | end (bool ok=true) |
| bool | eventFilter (QObject *object, QEvent *event) |
| QRect | getTextRect (const QPointF &point, const QFont &font) const |
| void | move (const QPoint &point) |
| QwtText | trackerTextF (const QPointF &point) const |
| void | updateDisplay () |
| void | updateTrackedPoints () |
Private Slots | |
| void | plotXAxisScaleDivChanged () |
| void | plotYAxisScaleDivChanged () |
Private Attributes | |
| QPointF | currentPosition_ |
| bool | mouseControl_ |
| QVector< TrackedPoint > | trackedPoints_ |
| bool | trackPoints_ |
Definition at line 31 of file PlotCursor.h.
| rqt_multiplot::PlotCursor::PlotCursor | ( | QwtPlotCanvas * | canvas | ) |
Definition at line 44 of file PlotCursor.cpp.
Definition at line 60 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::activeChanged | ( | bool | active | ) | [signal] |
| bool rqt_multiplot::PlotCursor::arePointsTracked | ( | ) | const |
Definition at line 115 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::begin | ( | ) | [protected] |
Definition at line 212 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::currentPositionChanged | ( | const QPointF & | position | ) | [signal] |
| void rqt_multiplot::PlotCursor::drawRubberBand | ( | QPainter * | painter | ) | const |
Definition at line 196 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::drawTrackedPoints | ( | QPainter * | painter | ) | const [protected] |
Definition at line 315 of file PlotCursor.cpp.
| bool rqt_multiplot::PlotCursor::end | ( | bool | ok = true | ) | [protected] |
Definition at line 235 of file PlotCursor.cpp.
| bool rqt_multiplot::PlotCursor::eventFilter | ( | QObject * | object, |
| QEvent * | event | ||
| ) | [protected] |
Definition at line 246 of file PlotCursor.cpp.
| const QPointF & rqt_multiplot::PlotCursor::getCurrentPosition | ( | ) | const |
Definition at line 102 of file PlotCursor.cpp.
| QRect rqt_multiplot::PlotCursor::getTextRect | ( | const QPointF & | point, |
| const QFont & | font | ||
| ) | const [protected] |
Definition at line 123 of file PlotCursor.cpp.
| bool rqt_multiplot::PlotCursor::hasMouseControl | ( | ) | const |
Definition at line 119 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::move | ( | const QPoint & | point | ) | [protected] |
Definition at line 221 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::plotXAxisScaleDivChanged | ( | ) | [private, slot] |
Definition at line 348 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::plotYAxisScaleDivChanged | ( | ) | [private, slot] |
Definition at line 377 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::setActive | ( | bool | active, |
| const QPointF & | position = QPointF(0.0, 0.0) |
||
| ) |
Definition at line 67 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::setCurrentPosition | ( | const QPointF & | position | ) |
Definition at line 89 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::setTrackPoints | ( | bool | track | ) |
Definition at line 106 of file PlotCursor.cpp.
| QwtText rqt_multiplot::PlotCursor::trackerTextF | ( | const QPointF & | point | ) | const [protected] |
Definition at line 168 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::update | ( | ) |
| void rqt_multiplot::PlotCursor::updateDisplay | ( | ) | [protected] |
Definition at line 266 of file PlotCursor.cpp.
| void rqt_multiplot::PlotCursor::updateTrackedPoints | ( | ) | [protected] |
Definition at line 272 of file PlotCursor.cpp.
QPointF rqt_multiplot::PlotCursor::currentPosition_ [private] |
Definition at line 76 of file PlotCursor.h.
bool rqt_multiplot::PlotCursor::mouseControl_ [private] |
Definition at line 80 of file PlotCursor.h.
QVector<TrackedPoint> rqt_multiplot::PlotCursor::trackedPoints_ [private] |
Definition at line 77 of file PlotCursor.h.
bool rqt_multiplot::PlotCursor::trackPoints_ [private] |
Definition at line 79 of file PlotCursor.h.