QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsmapclippingutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmapclippingutils.h
3
--------------------------------------
4
Date : June 2020
5
Copyright : (C) 2020 by Nyall Dawson
6
Email : nyall dot dawson at gmail 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
16
#ifndef QGSMAPCLIPPINGUTILS_H
17
#define QGSMAPCLIPPINGUTILS_H
18
19
#include "
qgis.h
"
20
#include "qgis_core.h"
21
#include "
qgis_sip.h
"
22
23
#include <QList>
24
#include <QPainterPath>
25
26
class
QgsRenderContext
;
27
class
QgsMapLayer
;
28
class
QgsGeometry
;
29
class
QgsMapClippingRegion
;
30
39
class
CORE_EXPORT
QgsMapClippingUtils
40
{
41
public
:
45
static
QList< QgsMapClippingRegion >
collectClippingRegionsForLayer
(
const
QgsRenderContext
&context,
const
QgsMapLayer
*layer );
46
59
static
QgsGeometry
calculateFeatureRequestGeometry
(
const
QList< QgsMapClippingRegion > ®ions,
const
QgsRenderContext
&context,
bool
&shouldFilter );
60
73
static
QgsGeometry
calculateFeatureIntersectionGeometry
(
const
QList< QgsMapClippingRegion > ®ions,
const
QgsRenderContext
&context,
bool
&shouldClip );
74
88
static
QPainterPath
calculatePainterClipRegion
(
const
QList< QgsMapClippingRegion > ®ions,
const
QgsRenderContext
&context,
Qgis::LayerType
layerType,
bool
&shouldClip );
89
102
static
QgsGeometry
calculateLabelIntersectionGeometry
(
const
QList< QgsMapClippingRegion > ®ions,
const
QgsRenderContext
&context,
bool
&shouldClip );
103
};
104
105
#endif
// QGSMAPCLIPPINGUTILS_H
Qgis::LayerType
LayerType
Types of layers that can be added to a map.
Definition
qgis.h:206
QgsGeometry
A geometry is the spatial representation of a feature.
Definition
qgsgeometry.h:267
QgsMapClippingRegion
A map clipping region (in map coordinates and CRS).
Definition
qgsmapclippingregion.h:34
QgsMapClippingUtils
Utility functions for use when clipping map renders.
Definition
qgsmapclippingutils.h:40
QgsMapClippingUtils::calculatePainterClipRegion
static QPainterPath calculatePainterClipRegion(const QList< QgsMapClippingRegion > ®ions, const QgsRenderContext &context, Qgis::LayerType layerType, bool &shouldClip)
Returns a QPainterPath representing the intersection of clipping regions from context which should be...
Definition
qgsmapclippingutils.cpp:130
QgsMapClippingUtils::collectClippingRegionsForLayer
static QList< QgsMapClippingRegion > collectClippingRegionsForLayer(const QgsRenderContext &context, const QgsMapLayer *layer)
Collects the list of map clipping regions from a context which apply to a map layer.
Definition
qgsmapclippingutils.cpp:30
QgsMapClippingUtils::calculateLabelIntersectionGeometry
static QgsGeometry calculateLabelIntersectionGeometry(const QList< QgsMapClippingRegion > ®ions, const QgsRenderContext &context, bool &shouldClip)
Returns the geometry representing the intersection of clipping regions from context which should be u...
Definition
qgsmapclippingutils.cpp:185
QgsMapClippingUtils::calculateFeatureIntersectionGeometry
static QgsGeometry calculateFeatureIntersectionGeometry(const QList< QgsMapClippingRegion > ®ions, const QgsRenderContext &context, bool &shouldClip)
Returns the geometry representing the intersection of clipping regions from context which should be u...
Definition
qgsmapclippingutils.cpp:84
QgsMapClippingUtils::calculateFeatureRequestGeometry
static QgsGeometry calculateFeatureRequestGeometry(const QList< QgsMapClippingRegion > ®ions, const QgsRenderContext &context, bool &shouldFilter)
Returns the geometry representing the intersection of clipping regions from context.
Definition
qgsmapclippingutils.cpp:41
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsRenderContext
Contains information about the context of a rendering operation.
Definition
qgsrendercontext.h:63
qgis.h
qgis_sip.h
Generated on
for QGIS API Documentation by
1.17.0