A map clipping region (in map coordinates and CRS).
More...
#include <qgsmapclippingregion.h>
A map clipping region (in map coordinates and CRS).
- Since
- QGIS 3.16
Definition at line 33 of file qgsmapclippingregion.h.
◆ FeatureClippingType
Feature clipping behavior, which controls how features from vector layers will be clipped.
Enumerator |
---|
ClipToIntersection | Clip the geometry of these features to the region prior to rendering (i.e. feature boundaries will follow the clip region)
|
ClipPainterOnly | Applying clipping on the painter only (i.e. feature boundaries will be unchanged, but may be invisible where the feature falls outside the clipping region)
|
NoClipping | Only render features which intersect the clipping region, but do not clip these features to the region.
|
Definition at line 41 of file qgsmapclippingregion.h.
◆ QgsMapClippingRegion()
QgsMapClippingRegion::QgsMapClippingRegion |
( |
const QgsGeometry & |
geometry | ) |
|
|
inlineexplicit |
Constructor for a map clipping region, with the specified geometry in the destination map CRS.
Definition at line 51 of file qgsmapclippingregion.h.
◆ appliesToLayer()
bool QgsMapClippingRegion::appliesToLayer |
( |
const QgsMapLayer * |
layer | ) |
const |
Returns true
if the clipping region should be applied to the specified map layer.
Definition at line 40 of file qgsmapclippingregion.cpp.
◆ featureClip()
Returns the feature clipping type.
This setting is only used while rendering vector layers, for other layer types it is ignored.
- See also
- setFeatureClip()
Definition at line 76 of file qgsmapclippingregion.h.
◆ geometry()
◆ restrictedLayers()
QList< QgsMapLayer * > QgsMapClippingRegion::restrictedLayers |
( |
| ) |
const |
◆ restrictToLayers()
bool QgsMapClippingRegion::restrictToLayers |
( |
| ) |
const |
◆ setFeatureClip()
Sets the feature clipping type.
This setting is only used while rendering vector layers, for other layer types it is ignored.
- See also
- featureClip()
Definition at line 88 of file qgsmapclippingregion.h.
◆ setGeometry()
void QgsMapClippingRegion::setGeometry |
( |
const QgsGeometry & |
geometry | ) |
|
◆ setRestrictedLayers()
void QgsMapClippingRegion::setRestrictedLayers |
( |
const QList< QgsMapLayer * > & |
layers | ) |
|
◆ setRestrictToLayers()
void QgsMapClippingRegion::setRestrictToLayers |
( |
bool |
enabled | ) |
|
The documentation for this class was generated from the following files: