QGIS API Documentation
3.28.0-Firenze (ed3ad0430f)
src
core
annotations
qgsannotationlayerrenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsannotationlayerrenderer.h
3
----------------
4
copyright : (C) 2019 by Sandro Mani
5
email : smani at sourcepole dot ch
6
***************************************************************************/
7
8
/***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSANNOTATIONLAYERRENDERER_H
18
#define QGSANNOTATIONLAYERRENDERER_H
19
20
#define SIP_NO_FILE
21
22
#include "qgis_core.h"
23
#include "
qgis_sip.h
"
24
#include "
qgsmaplayerrenderer.h
"
25
#include "
qgsannotationitem.h
"
26
#include <tuple>
27
#include <vector>
28
#include <memory>
29
30
class
QgsAnnotationLayer
;
31
class
QgsPaintEffect
;
32
40
class
CORE_EXPORT
QgsAnnotationLayerRenderer
:
public
QgsMapLayerRenderer
41
{
42
public
:
43
47
QgsAnnotationLayerRenderer
(
QgsAnnotationLayer
*layer,
QgsRenderContext
&context );
48
~QgsAnnotationLayerRenderer
()
override
;
49
QgsFeedback
*
feedback
()
const override
;
50
bool
render
()
override
;
51
bool
forceRasterRender
()
const override
;
52
53
private
:
54
std::vector < std::pair< QString, std::unique_ptr< QgsAnnotationItem > > > mItems;
55
std::unique_ptr< QgsFeedback > mFeedback;
56
double
mLayerOpacity = 1.0;
57
std::unique_ptr< QgsPaintEffect > mPaintEffect;
58
59
};
60
61
#endif
// QGSANNOTATIONLAYERRENDERER_H
QgsAnnotationLayerRenderer
Implementation of threaded rendering for annotation layers.
Definition:
qgsannotationlayerrenderer.h:41
QgsAnnotationLayerRenderer::~QgsAnnotationLayerRenderer
~QgsAnnotationLayerRenderer() override
QgsAnnotationLayer
Represents a map layer containing a set of georeferenced annotations, e.g.
Definition:
qgsannotationlayer.h:47
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition:
qgsfeedback.h:45
QgsMapLayerRenderer
Base class for utility classes that encapsulate information necessary for rendering of map layers.
Definition:
qgsmaplayerrenderer.h:55
QgsMapLayerRenderer::render
virtual bool render()=0
Do the rendering (based on data stored in the class).
QgsMapLayerRenderer::forceRasterRender
virtual bool forceRasterRender() const
Returns true if the renderer must be rendered to a raster paint device (e.g.
Definition:
qgsmaplayerrenderer.h:92
QgsMapLayerRenderer::feedback
virtual QgsFeedback * feedback() const
Access to feedback object of the layer renderer (may be nullptr)
Definition:
qgsmaplayerrenderer.h:98
QgsPaintEffect
Base class for visual effects which can be applied to QPicture drawings.
Definition:
qgspainteffect.h:53
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:60
qgis_sip.h
qgsannotationitem.h
qgsmaplayerrenderer.h
Generated on Sat Oct 22 2022 16:10:47 for QGIS API Documentation by
1.9.4