|
QGIS API Documentation 4.3.0-Master (b031d471fbb)
|
Rubber band preview item for showing vector layer labels. More...
#include <qgsrubberband_impl.h>

Public Member Functions | |
| QgsVectorLayerLabelRubberBandPreview (QgsRubberBand *rubberBand, const QList< QgsFeatureId > &fids, QgsVectorLayer *layer) | |
| Constructor for QgsVectorLayerLabelRubberBandPreview. | |
| QRectF | boundingRect () const override |
| Returns the bounding rect required for drawing the preview item. | |
| void | render (QgsRenderContext &context) final |
| Renders the custom preview overlay using the specified render context. | |
| Public Member Functions inherited from QgsRubberBandPreviewItem | |
| virtual | ~QgsRubberBandPreviewItem ()=default |
| QgsRubberBand * | rubberBand () |
| Returns the rubber band associated with the item. | |
Additional Inherited Members | |
| Protected Member Functions inherited from QgsRubberBandPreviewItem | |
| QgsRubberBandPreviewItem (QgsRubberBand *rubberBand) | |
| Constructor for a QgsRubberBandPreviewItem, attached to the specified rubberBand. | |
Rubber band preview item for showing vector layer labels.
Definition at line 35 of file qgsrubberband_impl.h.
| QgsVectorLayerLabelRubberBandPreview::QgsVectorLayerLabelRubberBandPreview | ( | QgsRubberBand * | rubberBand, |
| const QList< QgsFeatureId > & | fids, | ||
| QgsVectorLayer * | layer ) |
Constructor for QgsVectorLayerLabelRubberBandPreview.
| rubberBand | associated rubber band |
| fids | Feature IDs for the features being manipulated |
| layer | The vector layer containing labeling configuration. |
Definition at line 24 of file qgsrubberband_impl.cpp.
|
overridevirtual |
Returns the bounding rect required for drawing the preview item.
If non-empty, these bounds will be combined with the parent rubber band's bounds in order to avoid graphical artifacts when the band is moved.
The default implementation returns an empty rect.
Reimplemented from QgsRubberBandPreviewItem.
Definition at line 150 of file qgsrubberband_impl.cpp.
|
finalvirtual |
Renders the custom preview overlay using the specified render context.
Implements QgsRubberBandPreviewItem.
Definition at line 39 of file qgsrubberband_impl.cpp.