QGIS API Documentation
3.20.0-Odense (decaadbb31)
src
core
symbology
qgsinvertedpolygonrenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsinvertedpolygonrenderer.h
3
---------------------
4
begin : April 2014
5
copyright : (C) 2014 Hugo Mercier / Oslandia
6
email : hugo dot mercier at oslandia dot 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 QGSINVERTEDPOLYGONRENDERER_H
16
#define QGSINVERTEDPOLYGONRENDERER_H
17
18
#include "qgis_core.h"
19
#include "
qgis_sip.h
"
20
#include "
qgis.h
"
21
#include "
qgsrenderer.h
"
22
#include "
qgsexpression.h
"
23
#include "
qgsfeature.h
"
24
#include "
qgsgeometry.h
"
25
#include "
qgsmergedfeaturerenderer.h
"
26
42
class
CORE_EXPORT
QgsInvertedPolygonRenderer
:
public
QgsMergedFeatureRenderer
43
{
44
public
:
45
51
QgsInvertedPolygonRenderer
(
QgsFeatureRenderer
*embeddedRenderer
SIP_TRANSFER
=
nullptr
);
52
54
QgsInvertedPolygonRenderer
(
const
QgsInvertedPolygonRenderer
& ) =
delete
;
56
QgsInvertedPolygonRenderer
&
operator=
(
const
QgsInvertedPolygonRenderer
& ) =
delete
;
57
58
QgsInvertedPolygonRenderer
*
clone
() const override
SIP_FACTORY
;
59
60
QString dump() const override;
61
63
static
QgsFeatureRenderer
*create( QDomElement &element, const
QgsReadWriteContext
&context )
SIP_FACTORY
;
64
65
QDomElement save( QDomDocument &doc, const
QgsReadWriteContext
&context ) override;
66
68
bool
preprocessingEnabled()
const
{
return
mOperation ==
MergeAndInvert
; }
69
76
void
setPreprocessingEnabled
(
bool
enabled ) { mOperation = enabled ?
MergeAndInvert
:
InvertOnly
; }
77
83
static
QgsInvertedPolygonRenderer
*
convertFromRenderer
(
const
QgsFeatureRenderer
*renderer )
SIP_FACTORY
;
84
85
};
86
87
88
#endif
// QGSINVERTEDPOLYGONRENDERER_H
QgsFeatureRenderer
Definition:
qgsrenderer.h:101
QgsInvertedPolygonRenderer
QgsInvertedPolygonRenderer is a polygon-only feature renderer used to display features inverted,...
Definition:
qgsinvertedpolygonrenderer.h:43
QgsInvertedPolygonRenderer::operator=
QgsInvertedPolygonRenderer & operator=(const QgsInvertedPolygonRenderer &)=delete
Direct copies are forbidden. Use clone() instead.
QgsInvertedPolygonRenderer::setPreprocessingEnabled
void setPreprocessingEnabled(bool enabled)
Definition:
qgsinvertedpolygonrenderer.h:76
QgsInvertedPolygonRenderer::QgsInvertedPolygonRenderer
QgsInvertedPolygonRenderer(const QgsInvertedPolygonRenderer &)=delete
Direct copies are forbidden. Use clone() instead.
QgsMergedFeatureRenderer
QgsMergedFeatureRenderer is a polygon or line-only feature renderer used to renderer a set of feature...
Definition:
qgsmergedfeaturerenderer.h:40
QgsMergedFeatureRenderer::InvertOnly
@ InvertOnly
Invert features only (polygons only)
Definition:
qgsmergedfeaturerenderer.h:120
QgsMergedFeatureRenderer::MergeAndInvert
@ MergeAndInvert
Merge and invert features (polygons only)
Definition:
qgsmergedfeaturerenderer.h:121
QgsMergedFeatureRenderer::convertFromRenderer
static QgsMergedFeatureRenderer * convertFromRenderer(const QgsFeatureRenderer *renderer)
Creates a QgsMergedFeatureRenderer by a conversion from an existing renderer.
Definition:
qgsmergedfeaturerenderer.cpp:556
QgsMergedFeatureRenderer::clone
QgsMergedFeatureRenderer * clone() const override
Create a deep copy of this renderer.
Definition:
qgsmergedfeaturerenderer.cpp:411
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition:
qgsreadwritecontext.h:35
qgis.h
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
qgsexpression.h
qgsfeature.h
qgsgeometry.h
qgsmergedfeaturerenderer.h
qgsrenderer.h
Generated on Sun Jun 20 2021 10:45:59 for QGIS API Documentation by
1.9.1