QGIS API Documentation 4.3.0-Master (b031d471fbb)
Loading...
Searching...
No Matches
QgsVectorLayerLabelRubberBandPreview Class Reference

Rubber band preview item for showing vector layer labels. More...

#include <qgsrubberband_impl.h>

Inheritance diagram for QgsVectorLayerLabelRubberBandPreview:

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
QgsRubberBandrubberBand ()
 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.

Detailed Description

Rubber band preview item for showing vector layer labels.

Since
QGIS 4.4

Definition at line 35 of file qgsrubberband_impl.h.

Constructor & Destructor Documentation

◆ QgsVectorLayerLabelRubberBandPreview()

QgsVectorLayerLabelRubberBandPreview::QgsVectorLayerLabelRubberBandPreview ( QgsRubberBand * rubberBand,
const QList< QgsFeatureId > & fids,
QgsVectorLayer * layer )

Constructor for QgsVectorLayerLabelRubberBandPreview.

Parameters
rubberBandassociated rubber band
fidsFeature IDs for the features being manipulated
layerThe vector layer containing labeling configuration.

Definition at line 24 of file qgsrubberband_impl.cpp.

Member Function Documentation

◆ boundingRect()

QRectF QgsVectorLayerLabelRubberBandPreview::boundingRect ( ) const
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.

◆ render()

void QgsVectorLayerLabelRubberBandPreview::render ( QgsRenderContext & context)
finalvirtual

Renders the custom preview overlay using the specified render context.

Implements QgsRubberBandPreviewItem.

Definition at line 39 of file qgsrubberband_impl.cpp.


The documentation for this class was generated from the following files: