QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
QgsPlotRectangularRubberBand is rectangular rubber band for use within QgsPlotCanvas widgets. More...
#include <qgsplotrubberband.h>
Public Member Functions | |
QgsPlotRectangularRubberBand (QgsPlotCanvas *canvas=nullptr) | |
Constructor for QgsPlotRectangularRubberBand. More... | |
~QgsPlotRectangularRubberBand () override | |
QRectF | finish (QPointF position=QPointF(), Qt::KeyboardModifiers modifiers=Qt::KeyboardModifiers()) override |
Called when a rubber band use has finished and the rubber band is no longer required. More... | |
void | start (QPointF position, Qt::KeyboardModifiers modifiers) override |
Called when a rubber band should be created at the specified starting position (in canvas coordinate space). More... | |
void | update (QPointF position, Qt::KeyboardModifiers modifiers) override |
Called when a rubber band should be updated to reflect a temporary ending position (in canvas coordinate space). More... | |
Public Member Functions inherited from QgsPlotRubberBand | |
QgsPlotRubberBand (QgsPlotCanvas *canvas=nullptr) | |
Constructor for QgsPlotRubberBand. More... | |
~QgsPlotRubberBand () override=default | |
QBrush | brush () const |
Returns the brush used for drawing the rubber band. More... | |
QgsPlotCanvas * | canvas () const |
Returns the canvas associated with the rubber band. More... | |
virtual QRectF | finish (QPointF position=QPointF(), Qt::KeyboardModifiers modifiers=Qt::KeyboardModifiers())=0 |
Called when a rubber band use has finished and the rubber band is no longer required. More... | |
QPen | pen () const |
Returns the pen used for drawing the rubber band. More... | |
void | setBrush (const QBrush &brush) |
Sets the brush used for drawing the rubber band. More... | |
void | setPen (const QPen &pen) |
Sets the pen used for drawing the rubber band. More... | |
virtual void | start (QPointF position, Qt::KeyboardModifiers modifiers)=0 |
Called when a rubber band should be created at the specified starting position (in canvas coordinate space). More... | |
virtual void | update (QPointF position, Qt::KeyboardModifiers modifiers)=0 |
Called when a rubber band should be updated to reflect a temporary ending position (in canvas coordinate space). More... | |
Additional Inherited Members | |
Protected Member Functions inherited from QgsPlotRubberBand | |
QRectF | updateRect (QPointF start, QPointF position, bool constrainSquare, bool fromCenter) |
Calculates an updated bounding box rectangle from a original start position and new position. More... | |
QgsPlotRectangularRubberBand is rectangular rubber band for use within QgsPlotCanvas widgets.
Definition at line 128 of file qgsplotrubberband.h.
QgsPlotRectangularRubberBand::QgsPlotRectangularRubberBand | ( | QgsPlotCanvas * | canvas = nullptr | ) |
Constructor for QgsPlotRectangularRubberBand.
Definition at line 121 of file qgsplotrubberband.cpp.
|
override |
Definition at line 126 of file qgsplotrubberband.cpp.
|
overridevirtual |
Called when a rubber band use has finished and the rubber band is no longer required.
Returns the final bounding box of the rubber band.
Implements QgsPlotRubberBand.
Definition at line 166 of file qgsplotrubberband.cpp.
|
overridevirtual |
Called when a rubber band should be created at the specified starting position (in canvas coordinate space).
Implements QgsPlotRubberBand.
Definition at line 135 of file qgsplotrubberband.cpp.
|
overridevirtual |
Called when a rubber band should be updated to reflect a temporary ending position (in canvas coordinate space).
Implements QgsPlotRubberBand.
Definition at line 149 of file qgsplotrubberband.cpp.