QGIS API Documentation 4.3.0-Master (621ced71bd7)
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.
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 23 of file qgsrubberband_impl.cpp.

Member Function Documentation

◆ render()

void QgsVectorLayerLabelRubberBandPreview::render ( QgsRenderContext & context)
finalvirtual

Renders the custom preview overlay using the specified render context.

Implements QgsRubberBandPreviewItem.

Definition at line 38 of file qgsrubberband_impl.cpp.


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