QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
QgsPlotRectangularRubberBand is rectangular rubber band for use within QgsPlotCanvas widgets. More...
#include <qgsplotrubberband.h>
Public Member Functions | |
QgsPlotRectangularRubberBand (QgsPlotCanvas *canvas=nullptr) | |
Constructor for QgsPlotRectangularRubberBand. | |
~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. | |
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). | |
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). | |
Public Member Functions inherited from QgsPlotRubberBand | |
QgsPlotRubberBand (QgsPlotCanvas *canvas=nullptr) | |
Constructor for QgsPlotRubberBand. | |
~QgsPlotRubberBand () override=default | |
QBrush | brush () const |
Returns the brush used for drawing the rubber band. | |
QgsPlotCanvas * | canvas () const |
Returns the canvas associated with the rubber band. | |
QPen | pen () const |
Returns the pen used for drawing the rubber band. | |
void | setBrush (const QBrush &brush) |
Sets the brush used for drawing the rubber band. | |
void | setPen (const QPen &pen) |
Sets the pen used for drawing the rubber band. | |
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. | |
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.