QGIS API Documentation
3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
src
core
maprenderer
qgsrendereditemresults.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrendereditemresults.h
3
-------------------
4
begin : August 2021
5
copyright : (C) Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSRENDEREDITEMRESULTS_H
19
#define QGSRENDEREDITEMRESULTS_H
20
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
#include "
qgsrectangle.h
"
24
#include <memory>
25
#include <QList>
26
#include <vector>
27
#include <unordered_map>
28
29
class
QgsRenderedItemDetails
;
30
class
QgsRenderContext
;
31
class
QgsRenderedAnnotationItemDetails
;
32
34
class
QgsRenderedItemResultsSpatialIndex;
36
42
class
CORE_EXPORT
QgsRenderedItemResults
43
{
44
public
:
45
52
QgsRenderedItemResults
(
const
QgsRectangle
&extent =
QgsRectangle
() );
53
~QgsRenderedItemResults
();
54
55
QgsRenderedItemResults
(
const
QgsRenderedItemResults
& ) =
delete
;
56
QgsRenderedItemResults
&
operator=
(
const
QgsRenderedItemResults
&rh ) =
delete
;
57
61
QList< QgsRenderedItemDetails * > renderedItems()
const
;
62
68
QList<const QgsRenderedAnnotationItemDetails *> renderedAnnotationItemsInBounds(
const
QgsRectangle
&bounds )
const
;
69
78
void
appendResults(
const
QList< QgsRenderedItemDetails * > &results
SIP_TRANSFER
,
const
QgsRenderContext
&context );
79
88
void
transferResults(
QgsRenderedItemResults
*other,
const
QStringList &layerIds );
89
97
void
transferResults(
QgsRenderedItemResults
*other );
98
102
void
eraseResultsFromLayers(
const
QStringList &layerIds );
103
104
private
:
105
#ifdef SIP_RUN
106
QgsRenderedItemResults
(
const
QgsRenderedItemResults
& );
107
#endif
108
109
QgsRectangle
mExtent;
110
111
std::unordered_map< QString, std::vector< std::unique_ptr< QgsRenderedItemDetails > > > mDetails;
112
std::unique_ptr< QgsRenderedItemResultsSpatialIndex > mAnnotationItemsIndex;
113
114
};
115
116
#endif
// QGSRENDEREDITEMRESULTS_H
QgsRectangle
A rectangle specified with double values.
Definition
qgsrectangle.h:42
QgsRenderContext
Contains information about the context of a rendering operation.
Definition
qgsrendercontext.h:62
QgsRenderedAnnotationItemDetails
Contains information about a rendered annotation item.
Definition
qgsrenderedannotationitemdetails.h:30
QgsRenderedItemDetails
Base class for detailed information about a rendered item.
Definition
qgsrendereditemdetails.h:37
QgsRenderedItemResults
Stores collated details of rendered items during a map rendering operation.
Definition
qgsrendereditemresults.h:43
QgsRenderedItemResults::QgsRenderedItemResults
QgsRenderedItemResults(const QgsRenderedItemResults &)=delete
QgsRenderedItemResults::operator=
QgsRenderedItemResults & operator=(const QgsRenderedItemResults &rh)=delete
QgsRenderedItemResults::~QgsRenderedItemResults
~QgsRenderedItemResults()
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:36
qgsrectangle.h
Generated on Mon Oct 28 2024 22:06:03 for QGIS API Documentation by
1.9.8