QGIS API Documentation 4.3.0-Master (621ced71bd7)
Loading...
Searching...
No Matches
qgsrubberband_impl.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrubberband_impl.h
3 --------------------------------------
4 Date : July 2026
5 Copyright : (C) 2026 by Nyall Dawson
6 Email : nyall.dawson@gmail.com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef QGSRUBBERBANDIMPL_H
16#define QGSRUBBERBANDIMPL_H
17
18#include "qgis_gui.h"
19#include "qgsfeature.h"
20#include "qgsrubberband.h"
21
22#include <QPointer>
23
24#define SIP_NO_FILE
25
26class QgsVectorLayer;
27
28
36{
37 public:
44 QgsVectorLayerLabelRubberBandPreview( QgsRubberBand *rubberBand, const QList< QgsFeatureId > &fids, QgsVectorLayer *layer );
45
46 void render( QgsRenderContext &context ) final;
47
48 private:
49 QList< QgsFeature > mFeatures;
50 QPointer< QgsVectorLayer > mLayer;
51};
52
53#endif // QGSRUBBERBANDIMPL_H
Contains information about the context of a rendering operation.
QgsRubberBandPreviewItem(QgsRubberBand *rubberBand)
Constructor for a QgsRubberBandPreviewItem, attached to the specified rubberBand.
virtual void render(QgsRenderContext &context)=0
Renders the custom preview overlay using the specified render context.
QgsRubberBand * rubberBand()
Returns the rubber band associated with the item.
Responsible for drawing transient features (e.g.
QgsVectorLayerLabelRubberBandPreview(QgsRubberBand *rubberBand, const QList< QgsFeatureId > &fids, QgsVectorLayer *layer)
Constructor for QgsVectorLayerLabelRubberBandPreview.
Represents a vector layer which manages a vector based dataset.