QGIS API Documentation
3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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
41
class
CORE_EXPORT
QgsInvertedPolygonRenderer
:
public
QgsMergedFeatureRenderer
42
{
43
public
:
44
50
QgsInvertedPolygonRenderer
(
QgsFeatureRenderer
*embeddedRenderer
SIP_TRANSFER
=
nullptr
);
51
53
QgsInvertedPolygonRenderer
(
const
QgsInvertedPolygonRenderer
& ) =
delete
;
55
QgsInvertedPolygonRenderer
&
operator=
(
const
QgsInvertedPolygonRenderer
& ) =
delete
;
56
57
QgsInvertedPolygonRenderer
*
clone
() const override
SIP_FACTORY
;
58
59
QString dump() const override;
60
62
static
QgsFeatureRenderer
*create( QDomElement &element, const
QgsReadWriteContext
&context )
SIP_FACTORY
;
// cppcheck-suppress duplInheritedMember
63
64
QDomElement save( QDomDocument &doc, const
QgsReadWriteContext
&context ) override;
65
67
bool
preprocessingEnabled()
const
{
return
mOperation ==
MergeAndInvert
; }
68
75
void
setPreprocessingEnabled
(
bool
enabled ) { mOperation = enabled ?
MergeAndInvert
:
InvertOnly
; }
76
81
static
QgsInvertedPolygonRenderer
*
convertFromRenderer
(
const
QgsFeatureRenderer
*renderer )
SIP_FACTORY
;
// cppcheck-suppress duplInheritedMember
82
83
};
84
85
86
#endif
// QGSINVERTEDPOLYGONRENDERER_H
QgsFeatureRenderer
Abstract base class for all 2D vector feature renderers.
Definition
qgsrenderer.h:106
QgsInvertedPolygonRenderer
QgsInvertedPolygonRenderer is a polygon-only feature renderer used to display features inverted,...
Definition
qgsinvertedpolygonrenderer.h:42
QgsInvertedPolygonRenderer::setPreprocessingEnabled
void setPreprocessingEnabled(bool enabled)
Definition
qgsinvertedpolygonrenderer.h:75
QgsInvertedPolygonRenderer::operator=
QgsInvertedPolygonRenderer & operator=(const QgsInvertedPolygonRenderer &)=delete
Direct copies are forbidden. Use clone() instead.
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:41
QgsMergedFeatureRenderer::InvertOnly
@ InvertOnly
Invert features only (polygons only)
Definition
qgsmergedfeaturerenderer.h:123
QgsMergedFeatureRenderer::MergeAndInvert
@ MergeAndInvert
Merge and invert features (polygons only)
Definition
qgsmergedfeaturerenderer.h:124
QgsMergedFeatureRenderer::convertFromRenderer
static QgsMergedFeatureRenderer * convertFromRenderer(const QgsFeatureRenderer *renderer)
Creates a QgsMergedFeatureRenderer by a conversion from an existing renderer.
Definition
qgsmergedfeaturerenderer.cpp:583
QgsMergedFeatureRenderer::clone
QgsMergedFeatureRenderer * clone() const override
Create a deep copy of this renderer.
Definition
qgsmergedfeaturerenderer.cpp:440
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition
qgsreadwritecontext.h:34
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 Sat Nov 23 2024 09:26:05 for QGIS API Documentation by
1.9.8