|
void | started (QMouseEvent *event) |
|
void | changed (const QRect &rect, QMouseEvent *event) |
|
void | canceled (const QRect &rect, QInputEvent *event) |
|
void | accepted (const QRect &rect, QMouseEvent *event) |
|
void | started (QMouseEvent *event) |
|
void | changed (const QRect &rect, QMouseEvent *event) |
|
void | canceled (const QRect &rect, QInputEvent *event) |
|
void | accepted (const QRect &rect, QMouseEvent *event) |
|
void | started (QMouseEvent *event) |
|
void | changed (const QRect &rect, QMouseEvent *event) |
|
void | canceled (const QRect &rect, QInputEvent *event) |
|
void | accepted (const QRect &rect, QMouseEvent *event) |
|
void | started (QMouseEvent *event) |
|
void | changed (const QRect &rect, QMouseEvent *event) |
|
void | canceled (const QRect &rect, QInputEvent *event) |
|
void | accepted (const QRect &rect, QMouseEvent *event) |
|
void | started (QMouseEvent *event) |
|
void | changed (const QRect &rect, QMouseEvent *event) |
|
void | canceled (const QRect &rect, QInputEvent *event) |
|
void | accepted (const QRect &rect, QMouseEvent *event) |
|
void | layerChanged (QCPLayer *newLayer) |
|
void | layerChanged (QCPLayer *newLayer) |
|
void | layerChanged (QCPLayer *newLayer) |
|
void | layerChanged (QCPLayer *newLayer) |
|
void | layerChanged (QCPLayer *newLayer) |
|
|
| QCPSelectionRect (QCustomPlot *parentPlot) |
|
virtual | ~QCPSelectionRect () |
|
QRect | rect () const |
|
QCPRange | range (const QCPAxis *axis) const |
|
QPen | pen () const |
|
QBrush | brush () const |
|
bool | isActive () const |
|
void | setPen (const QPen &pen) |
|
void | setBrush (const QBrush &brush) |
|
Q_SLOT void | cancel () |
|
| QCPSelectionRect (QCustomPlot *parentPlot) |
|
virtual | ~QCPSelectionRect () |
|
QRect | rect () const |
|
QCPRange | range (const QCPAxis *axis) const |
|
QPen | pen () const |
|
QBrush | brush () const |
|
bool | isActive () const |
|
void | setPen (const QPen &pen) |
|
void | setBrush (const QBrush &brush) |
|
Q_SLOT void | cancel () |
|
| QCPSelectionRect (QCustomPlot *parentPlot) |
|
virtual | ~QCPSelectionRect () |
|
QRect | rect () const |
|
QCPRange | range (const QCPAxis *axis) const |
|
QPen | pen () const |
|
QBrush | brush () const |
|
bool | isActive () const |
|
void | setPen (const QPen &pen) |
|
void | setBrush (const QBrush &brush) |
|
Q_SLOT void | cancel () |
|
| QCPSelectionRect (QCustomPlot *parentPlot) |
|
virtual | ~QCPSelectionRect () |
|
QRect | rect () const |
|
QCPRange | range (const QCPAxis *axis) const |
|
QPen | pen () const |
|
QBrush | brush () const |
|
bool | isActive () const |
|
void | setPen (const QPen &pen) |
|
void | setBrush (const QBrush &brush) |
|
Q_SLOT void | cancel () |
|
| QCPSelectionRect (QCustomPlot *parentPlot) |
|
virtual | ~QCPSelectionRect () |
|
QRect | rect () const |
|
QCPRange | range (const QCPAxis *axis) const |
|
QPen | pen () const |
|
QBrush | brush () const |
|
bool | isActive () const |
|
void | setPen (const QPen &pen) |
|
void | setBrush (const QBrush &brush) |
|
Q_SLOT void | cancel () |
|
| QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0) |
|
virtual | ~QCPLayerable () |
|
bool | visible () const |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () const |
|
bool | antialiased () const |
|
void | setVisible (bool on) |
|
Q_SLOT bool | setLayer (QCPLayer *layer) |
|
bool | setLayer (const QString &layerName) |
|
void | setAntialiased (bool enabled) |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const |
|
bool | realVisibility () const |
|
| QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0) |
|
virtual | ~QCPLayerable () |
|
bool | visible () const |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () const |
|
bool | antialiased () const |
|
void | setVisible (bool on) |
|
Q_SLOT bool | setLayer (QCPLayer *layer) |
|
bool | setLayer (const QString &layerName) |
|
void | setAntialiased (bool enabled) |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const |
|
bool | realVisibility () const |
|
| QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0) |
|
virtual | ~QCPLayerable () |
|
bool | visible () const |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () const |
|
bool | antialiased () const |
|
void | setVisible (bool on) |
|
Q_SLOT bool | setLayer (QCPLayer *layer) |
|
bool | setLayer (const QString &layerName) |
|
void | setAntialiased (bool enabled) |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const |
|
bool | realVisibility () const |
|
| QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0) |
|
virtual | ~QCPLayerable () |
|
bool | visible () const |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () const |
|
bool | antialiased () const |
|
void | setVisible (bool on) |
|
Q_SLOT bool | setLayer (QCPLayer *layer) |
|
bool | setLayer (const QString &layerName) |
|
void | setAntialiased (bool enabled) |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const |
|
bool | realVisibility () const |
|
| QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0) |
|
virtual | ~QCPLayerable () |
|
bool | visible () const |
|
QCustomPlot * | parentPlot () const |
|
QCPLayerable * | parentLayerable () const |
|
QCPLayer * | layer () const |
|
bool | antialiased () const |
|
void | setVisible (bool on) |
|
Q_SLOT bool | setLayer (QCPLayer *layer) |
|
bool | setLayer (const QString &layerName) |
|
void | setAntialiased (bool enabled) |
|
virtual double | selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const |
|
bool | realVisibility () const |
|
|
virtual void | startSelection (QMouseEvent *event) |
|
virtual void | moveSelection (QMouseEvent *event) |
|
virtual void | endSelection (QMouseEvent *event) |
|
virtual void | keyPressEvent (QKeyEvent *event) |
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | startSelection (QMouseEvent *event) |
|
virtual void | moveSelection (QMouseEvent *event) |
|
virtual void | endSelection (QMouseEvent *event) |
|
virtual void | keyPressEvent (QKeyEvent *event) |
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | startSelection (QMouseEvent *event) |
|
virtual void | moveSelection (QMouseEvent *event) |
|
virtual void | endSelection (QMouseEvent *event) |
|
virtual void | keyPressEvent (QKeyEvent *event) |
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | startSelection (QMouseEvent *event) |
|
virtual void | moveSelection (QMouseEvent *event) |
|
virtual void | endSelection (QMouseEvent *event) |
|
virtual void | keyPressEvent (QKeyEvent *event) |
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | startSelection (QMouseEvent *event) |
|
virtual void | moveSelection (QMouseEvent *event) |
|
virtual void | endSelection (QMouseEvent *event) |
|
virtual void | keyPressEvent (QKeyEvent *event) |
|
virtual void | applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE |
|
virtual void | draw (QCPPainter *painter) Q_DECL_OVERRIDE |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) |
|
virtual QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | wheelEvent (QWheelEvent *event) |
|
void | initializeParentPlot (QCustomPlot *parentPlot) |
|
void | setParentLayerable (QCPLayerable *parentLayerable) |
|
bool | moveToLayer (QCPLayer *layer, bool prepend) |
|
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) |
|
virtual QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | wheelEvent (QWheelEvent *event) |
|
void | initializeParentPlot (QCustomPlot *parentPlot) |
|
void | setParentLayerable (QCPLayerable *parentLayerable) |
|
bool | moveToLayer (QCPLayer *layer, bool prepend) |
|
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) |
|
virtual QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | wheelEvent (QWheelEvent *event) |
|
void | initializeParentPlot (QCustomPlot *parentPlot) |
|
void | setParentLayerable (QCPLayerable *parentLayerable) |
|
bool | moveToLayer (QCPLayer *layer, bool prepend) |
|
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) |
|
virtual QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | wheelEvent (QWheelEvent *event) |
|
void | initializeParentPlot (QCustomPlot *parentPlot) |
|
void | setParentLayerable (QCPLayerable *parentLayerable) |
|
bool | moveToLayer (QCPLayer *layer, bool prepend) |
|
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
|
virtual void | parentPlotInitialized (QCustomPlot *parentPlot) |
|
virtual QCP::Interaction | selectionCategory () const |
|
virtual QRect | clipRect () const |
|
virtual void | selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) |
|
virtual void | deselectEvent (bool *selectionStateChanged) |
|
virtual void | mousePressEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | mouseMoveEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos) |
|
virtual void | mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details) |
|
virtual void | wheelEvent (QWheelEvent *event) |
|
void | initializeParentPlot (QCustomPlot *parentPlot) |
|
void | setParentLayerable (QCPLayerable *parentLayerable) |
|
bool | moveToLayer (QCPLayer *layer, bool prepend) |
|
void | applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const |
|
Provides rect/rubber-band data selection and range zoom interaction.
QCPSelectionRect is used by QCustomPlot when the QCustomPlot::setSelectionRectMode is not QCP::srmNone. When the user drags the mouse across the plot, the current selection rect instance (QCustomPlot::setSelectionRect) is forwarded these events and makes sure an according rect shape is drawn. At the begin, during, and after completion of the interaction, it emits the corresponding signals started, changed, canceled, and accepted.
The QCustomPlot instance connects own slots to the current selection rect instance, in order to react to an accepted selection rect interaction accordingly.
isActive can be used to check whether the selection rect is currently active. An ongoing selection interaction can be cancelled programmatically via calling cancel at any time.
The appearance of the selection rect can be controlled via setPen and setBrush.
If you wish to provide custom behaviour, e.g. a different visual representation of the selection rect (QCPSelectionRect::draw), you can subclass QCPSelectionRect and pass an instance of your subclass to QCustomPlot::setSelectionRect.