QGIS API Documentation 3.43.0-Master (4c60628727b)
|
A bezier curve rubber band for use within QgsModelGraphicsView widgets. More...
#include <qgsmodelviewrubberband.h>
Public Member Functions | |
QgsModelViewBezierRubberBand (QgsModelGraphicsView *view=nullptr) | |
Constructor for QgsModelViewRectangularRubberBand. | |
~QgsModelViewBezierRubberBand () override | |
QgsModelViewBezierRubberBand * | create (QgsModelGraphicsView *view) const override |
Creates a new instance of the QgsModelViewRubberBand subclass. | |
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 model 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 model coordinate space). | |
![]() | |
QgsModelViewRubberBand (QgsModelGraphicsView *view=nullptr) | |
Constructor for QgsModelViewRubberBand. | |
~QgsModelViewRubberBand () override=default | |
QBrush | brush () const |
Returns the brush used for drawing 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. | |
QgsModelGraphicsView * | view () const |
Returns the view associated with the rubber band. | |
Additional Inherited Members | |
![]() | |
void | sizeChanged (const QString &size) |
Emitted when the size of the rubber band is changed. | |
![]() | |
QRectF | updateRect (QPointF start, QPointF position, bool constrainSquare, bool fromCenter) |
Calculates an updated bounding box rectangle from a original start position and new position. | |
A bezier curve rubber band for use within QgsModelGraphicsView widgets.
Definition at line 170 of file qgsmodelviewrubberband.h.
QgsModelViewBezierRubberBand::QgsModelViewBezierRubberBand | ( | QgsModelGraphicsView * | view = nullptr | ) |
Constructor for QgsModelViewRectangularRubberBand.
Definition at line 182 of file qgsmodelviewrubberband.cpp.
|
override |
Definition at line 192 of file qgsmodelviewrubberband.cpp.
|
overridevirtual |
Creates a new instance of the QgsModelViewRubberBand subclass.
Implements QgsModelViewRubberBand.
Definition at line 187 of file qgsmodelviewrubberband.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 QgsModelViewRubberBand.
Definition at line 239 of file qgsmodelviewrubberband.cpp.
|
overridevirtual |
Called when a rubber band should be created at the specified starting position (in model coordinate space).
Implements QgsModelViewRubberBand.
Definition at line 201 of file qgsmodelviewrubberband.cpp.
|
overridevirtual |
Called when a rubber band should be updated to reflect a temporary ending position (in model coordinate space).
Implements QgsModelViewRubberBand.
Definition at line 213 of file qgsmodelviewrubberband.cpp.