mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			136 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			136 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgsmapclippingregion.h                                      *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsMapClippingRegion
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
A map clipping region (in map coordinates and CRS).
 | 
						|
 | 
						|
.. versionadded:: 3.16
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsmapclippingregion.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    enum class FeatureClippingType /BaseType=IntEnum/
 | 
						|
    {
 | 
						|
      ClipToIntersection,
 | 
						|
      ClipPainterOnly,
 | 
						|
      NoClipping,
 | 
						|
    };
 | 
						|
 | 
						|
    explicit QgsMapClippingRegion( const QgsGeometry &geometry );
 | 
						|
%Docstring
 | 
						|
Constructor for a map clipping region, with the specified ``geometry``
 | 
						|
in the destination map CRS.
 | 
						|
%End
 | 
						|
 | 
						|
    QgsGeometry geometry() const;
 | 
						|
%Docstring
 | 
						|
Returns the geometry of the clipping region (in the destination map
 | 
						|
CRS).
 | 
						|
 | 
						|
.. seealso:: :py:func:`setGeometry`
 | 
						|
%End
 | 
						|
 | 
						|
    void setGeometry( const QgsGeometry &geometry );
 | 
						|
%Docstring
 | 
						|
Sets the clipping region ``geometry`` (in the destination map CRS).
 | 
						|
 | 
						|
.. seealso:: :py:func:`geometry`
 | 
						|
%End
 | 
						|
 | 
						|
    FeatureClippingType featureClip() const;
 | 
						|
%Docstring
 | 
						|
Returns the feature clipping type.
 | 
						|
 | 
						|
This setting is only used while rendering vector layers, for other layer
 | 
						|
types it is ignored.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setFeatureClip`
 | 
						|
%End
 | 
						|
 | 
						|
    void setFeatureClip( FeatureClippingType type );
 | 
						|
%Docstring
 | 
						|
Sets the feature clipping ``type``.
 | 
						|
 | 
						|
This setting is only used while rendering vector layers, for other layer
 | 
						|
types it is ignored.
 | 
						|
 | 
						|
.. seealso:: :py:func:`featureClip`
 | 
						|
%End
 | 
						|
 | 
						|
    bool restrictToLayers() const;
 | 
						|
%Docstring
 | 
						|
Returns ``True`` if clipping should be restricted to a subset of layers.
 | 
						|
 | 
						|
.. seealso:: :py:func:`restrictedLayers`
 | 
						|
 | 
						|
.. seealso:: :py:func:`setRestrictToLayers`
 | 
						|
%End
 | 
						|
 | 
						|
    void setRestrictToLayers( bool enabled );
 | 
						|
%Docstring
 | 
						|
Sets whether clipping should be restricted to a subset of layers.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setRestrictedLayers`
 | 
						|
 | 
						|
.. seealso:: :py:func:`restrictToLayers`
 | 
						|
%End
 | 
						|
 | 
						|
    void setRestrictedLayers( const QList< QgsMapLayer * > &layers );
 | 
						|
%Docstring
 | 
						|
Sets a list of ``layers`` to restrict the clipping region effects to.
 | 
						|
 | 
						|
By default the clipping region applies to all layers.
 | 
						|
 | 
						|
.. note::
 | 
						|
 | 
						|
   This setting is only used if :py:func:`~QgsMapClippingRegion.restrictToLayers` is ``True``.
 | 
						|
 | 
						|
.. seealso:: :py:func:`restrictedLayers`
 | 
						|
 | 
						|
.. seealso:: :py:func:`setRestrictToLayers`
 | 
						|
%End
 | 
						|
 | 
						|
    QList< QgsMapLayer * > restrictedLayers() const;
 | 
						|
%Docstring
 | 
						|
Returns the list of layers to restrict the clipping region effects to.
 | 
						|
 | 
						|
If the list is empty then the clipping will be applied to all layers.
 | 
						|
 | 
						|
.. note::
 | 
						|
 | 
						|
   This setting is only used if :py:func:`~QgsMapClippingRegion.restrictToLayers` is ``True``.
 | 
						|
 | 
						|
.. seealso:: :py:func:`setRestrictedLayers`
 | 
						|
 | 
						|
.. seealso:: :py:func:`restrictToLayers`
 | 
						|
%End
 | 
						|
 | 
						|
    bool appliesToLayer( const QgsMapLayer *layer ) const;
 | 
						|
%Docstring
 | 
						|
Returns ``True`` if the clipping region should be applied to the
 | 
						|
specified map ``layer``.
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgsmapclippingregion.h                                      *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 |