QGIS API Documentation
4.3.0-Master (621ced71bd7)
Loading...
Searching...
No Matches
src
gui
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
26
class
QgsVectorLayer
;
27
28
35
class
GUI_EXPORT
QgsVectorLayerLabelRubberBandPreview
:
public
QgsRubberBandPreviewItem
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
QgsRenderContext
Contains information about the context of a rendering operation.
Definition
qgsrendercontext.h:63
QgsRubberBandPreviewItem::QgsRubberBandPreviewItem
QgsRubberBandPreviewItem(QgsRubberBand *rubberBand)
Constructor for a QgsRubberBandPreviewItem, attached to the specified rubberBand.
Definition
qgsrubberband.cpp:839
QgsRubberBandPreviewItem::render
virtual void render(QgsRenderContext &context)=0
Renders the custom preview overlay using the specified render context.
QgsRubberBandPreviewItem::rubberBand
QgsRubberBand * rubberBand()
Returns the rubber band associated with the item.
Definition
qgsrubberband.cpp:843
QgsRubberBand
Responsible for drawing transient features (e.g.
Definition
qgsrubberband.h:88
QgsVectorLayerLabelRubberBandPreview::QgsVectorLayerLabelRubberBandPreview
QgsVectorLayerLabelRubberBandPreview(QgsRubberBand *rubberBand, const QList< QgsFeatureId > &fids, QgsVectorLayer *layer)
Constructor for QgsVectorLayerLabelRubberBandPreview.
Definition
qgsrubberband_impl.cpp:23
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgsfeature.h
qgsrubberband.h
Generated on
for QGIS API Documentation by
1.15.0