16#ifndef QGSMAPCLIPPINGREGION_H
17#define QGSMAPCLIPPINGREGION_H
92 bool restrictToLayers()
const;
100 void setRestrictToLayers(
bool enabled );
112 void setRestrictedLayers(
const QList< QgsMapLayer * > &layers );
124 QList< QgsMapLayer * > restrictedLayers()
const;
129 bool appliesToLayer(
const QgsMapLayer *layer )
const;
135 bool mRestrictToLayers =
false;
138 FeatureClippingType mFeatureClip = FeatureClippingType::ClipToIntersection;
A geometry is the spatial representation of a feature.
FeatureClippingType
Feature clipping behavior, which controls how features from vector layers will be clipped.
void setFeatureClip(FeatureClippingType type)
Sets the feature clipping type.
FeatureClippingType featureClip() const
Returns the feature clipping type.
QgsGeometry geometry() const
Returns the geometry of the clipping region (in the destination map CRS).
QgsMapClippingRegion(const QgsGeometry &geometry)
Constructor for a map clipping region, with the specified geometry in the destination map CRS.
Base class for all map layer types.
QList< QgsWeakMapLayerPointer > QgsWeakMapLayerPointerList
A list of weak pointers to QgsMapLayers.