QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSMAPCLIPPINGREGION_H
17 #define QGSMAPCLIPPINGREGION_H
19 #include "qgis_core.h"
50 : mGeometry( geometry )
97 bool restrictToLayers()
const;
105 void setRestrictToLayers(
bool enabled );
117 void setRestrictedLayers(
const QList< QgsMapLayer * > &layers );
129 QList< QgsMapLayer * > restrictedLayers()
const;
134 bool appliesToLayer(
const QgsMapLayer *layer )
const;
141 bool mRestrictToLayers =
false;
144 FeatureClippingType mFeatureClip = FeatureClippingType::ClipToIntersection;
148 #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.
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.