QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSMAPCLIPPINGREGION_H
17 #define QGSMAPCLIPPINGREGION_H
19 #include "qgis_core.h"
52 : mGeometry( geometry )
99 bool restrictToLayers()
const;
107 void setRestrictToLayers(
bool enabled );
119 void setRestrictedLayers(
const QList< QgsMapLayer * > &layers );
131 QList< QgsMapLayer * > restrictedLayers()
const;
136 bool appliesToLayer(
const QgsMapLayer *layer )
const;
143 bool mRestrictToLayers =
false;
146 FeatureClippingType mFeatureClip = FeatureClippingType::ClipToIntersection;
150 #endif // QGSMAPCLIPPINGREGION_H
A map clipping region (in map coordinates and CRS).
QList< QgsWeakMapLayerPointer > QgsWeakMapLayerPointerList
A list of weak pointers to QgsMapLayers.
FeatureClippingType
Feature clipping behavior, which controls how features from vector layers will be clipped.
A geometry is the spatial representation of a feature.
Base class for all map layer types. This is the base class for all map layer types (vector,...
QgsMapClippingRegion(const QgsGeometry &geometry)
Constructor for a map clipping region, with the specified geometry in the destination map CRS.
void setFeatureClip(FeatureClippingType type)
Sets the feature clipping type.
FeatureClippingType featureClip() const
Returns the feature clipping type.