File: qgsmapsettings.sip.in

package info (click to toggle)
qgis 3.40.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,183,800 kB
  • sloc: cpp: 1,595,841; python: 372,637; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 154
file content (1078 lines) | stat: -rw-r--r-- 28,293 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgsmapsettings.h                                            *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/






class QgsLabelBlockingRegion
{
%Docstring(signature="appended")
Label blocking region (in map coordinates and CRS).

.. versionadded:: 3.6
%End

%TypeHeaderCode
#include "qgsmapsettings.h"
%End
  public:

    explicit QgsLabelBlockingRegion( const QgsGeometry &geometry );
%Docstring
Constructor for a label blocking region
%End

    QgsGeometry geometry;

};


class QgsMapSettings : QgsTemporalRangeObject
{
%Docstring(signature="appended")
The :py:class:`QgsMapSettings` class contains configuration for
rendering of the map.

The rendering itself is done by :py:class:`QgsMapRendererJob`
subclasses.

In order to set up :py:class:`QgsMapSettings` instance, it is necessary
to set at least few members: extent, output size and layers.

Some systems use high DPI scaling that is an alternative to the
traditional DPI scaling. The operating system provides Qt with a scaling
ratio and it scales window, event, and desktop geometry. The Cocoa
platform plugin sets the scaling ratio as QWindow.devicePixelRatio(). To
properly render the map on such systems, the map settings device pixel
ratio shall be set accordingly.
%End

%TypeHeaderCode
#include "qgsmapsettings.h"
%End
  public:
    QgsMapSettings();

    QgsRectangle extent() const;
%Docstring
Returns geographical coordinates of the rectangle that should be
rendered.

.. warning::

   The actual visible extent used for rendering can be significantly different from this
   value, since the given extent may be expanded in order to fit the aspect ratio
   of the :py:func:`~QgsMapSettings.outputSize`. Use :py:func:`~QgsMapSettings.visibleExtent` to get the actual extent which will be rendered.

.. seealso:: :py:func:`visibleExtent`

.. seealso:: :py:func:`setExtent`
%End

    void setExtent( const QgsRectangle &rect, bool magnified = true );
%Docstring
Sets the coordinates of the rectangle which should be rendered.

.. warning::

   The actual visible extent used for rendering can be significantly different
   from the specified extent, since the given extent may be expanded in order to match the
   aspect ratio of :py:func:`~QgsMapSettings.outputSize`. Use :py:func:`~QgsMapSettings.visibleExtent` to retrieve the actual extent to be rendered.

.. seealso:: :py:func:`visibleExtent`

.. seealso:: :py:func:`extent`
%End

    double extentBuffer() const;
%Docstring
Returns the buffer in map units to use around the visible extent for
rendering symbols whose corresponding geometries are outside the visible
extent.

.. seealso:: :py:func:`setExtentBuffer`

.. versionadded:: 3.10
%End

    void setExtentBuffer( double buffer );
%Docstring
Sets the buffer in map units to use around the visible extent for
rendering symbols whose corresponding geometries are outside the visible
extent. This is useful when using tiles to avoid cut symbols at tile
boundaries.

.. versionadded:: 3.10
%End

    QSize outputSize() const;
%Docstring
Returns the size of the resulting map image, in pixels.

.. seealso:: :py:func:`deviceOutputSize`

.. seealso:: :py:func:`setOutputSize`
%End

    void setOutputSize( QSize size );
%Docstring
Sets the ``size`` of the resulting map image, in pixels.

.. seealso:: :py:func:`outputSize`
%End

    float devicePixelRatio() const;
%Docstring
Returns the device pixel ratio.

Common values are 1 for normal-dpi displays and 2 for high-dpi "retina"
displays.

.. versionadded:: 3.4
%End

    void setDevicePixelRatio( float dpr );
%Docstring
Sets the device pixel ratio.

Common values are 1 for normal-dpi displays and 2 for high-dpi "retina"
displays.

.. versionadded:: 3.4
%End

    QSize deviceOutputSize() const;
%Docstring
Returns the device output size of the map render.

This is equivalent to the output size multiplicated by the device pixel
ratio.

.. seealso:: :py:func:`outputSize`

.. seealso:: :py:func:`devicePixelRatio`

.. seealso:: :py:func:`setOutputSize`

.. versionadded:: 3.4
%End

    double rotation() const;
%Docstring
Returns the rotation of the resulting map image, in degrees clockwise.

.. seealso:: :py:func:`setRotation`
%End

    void setRotation( double rotation );
%Docstring
Sets the ``rotation`` of the resulting map image, in degrees clockwise.

.. seealso:: :py:func:`rotation`
%End

    double outputDpi() const;
%Docstring
Returns the DPI (dots per inch) used for conversion between real world
units (e.g. mm) and pixels.

The default value is 96 dpi.

.. seealso:: :py:func:`setOutputDpi`
%End

    void setOutputDpi( double dpi );
%Docstring
Sets the ``dpi`` (dots per inch) used for conversion between real world
units (e.g. mm) and pixels.

.. seealso:: :py:func:`outputDpi`
%End

    double dpiTarget() const;
%Docstring
Returns the target DPI (dots per inch) to be taken into consideration
when rendering.

The default value is -1, which states no DPI target is provided.

.. seealso:: :py:func:`setDpiTarget`

.. versionadded:: 3.20
%End

    void setDpiTarget( double dpi );
%Docstring
Sets the target ``dpi`` (dots per inch) to be taken into consideration
when rendering.

.. seealso:: :py:func:`dpiTarget`

.. versionadded:: 3.20
%End

    void setMagnificationFactor( double factor, const QgsPointXY *center = 0 );
%Docstring
Set the magnification factor.

:param factor: the factor of magnification
:param center: optional point to re-center the map

.. seealso:: :py:func:`magnificationFactor`
%End

    double magnificationFactor() const;
%Docstring
Returns the magnification factor.

.. seealso:: :py:func:`setMagnificationFactor`
%End

    QStringList layerIds( bool expandGroupLayers = false ) const;
%Docstring
Returns the list of layer IDs which will be rendered in the map.

The layers are stored in the reverse order of how they are rendered
(layer with index 0 will be on top).

Since QGIS 3.24, if the ``expandGroupLayers`` option is ``True`` then
group layers will be converted to all their child layers.

.. seealso:: :py:func:`layers`

.. seealso:: :py:func:`setLayers`
%End

    QList<QgsMapLayer *> layers( bool expandGroupLayers = false ) const;
%Docstring
Returns the list of layers which will be rendered in the map.

The layers are stored in the reverse order of how they are rendered
(layer with index 0 will be on top)

Since QGIS 3.24, if the ``expandGroupLayers`` option is ``True`` then
group layers will be converted to all their child layers.

.. seealso:: :py:func:`setLayers`

.. seealso:: :py:func:`layerIds`
%End



    void setLayers( const QList<QgsMapLayer *> &layers );
%Docstring
Sets the list of ``layers`` to render in the map.

The layers are stored in the reverse order of how they are rendered
(layer with index 0 will be on top)

.. note::

   Any non-spatial layers will be automatically stripped from the list (since they cannot be rendered!).

.. seealso:: :py:func:`layers`

.. seealso:: :py:func:`layerIds`
%End

    QMap<QString, QString> layerStyleOverrides() const;
%Docstring
Returns the map of map layer style overrides (key: layer ID, value:
style name) where a different style should be used instead of the
current one.

.. seealso:: :py:func:`setLayerStyleOverrides`
%End

    void setLayerStyleOverrides( const QMap<QString, QString> &overrides );
%Docstring
Sets the map of map layer style ``overrides`` (key: layer ID, value:
style name) where a different style should be used instead of the
current one.

.. seealso:: :py:func:`layerStyleOverrides`
%End

 QString customRenderFlags() const;
%Docstring
Returns custom rendering flags. Layers might honour these to alter their
rendering.

:return: custom flags strings, separated by ';'

.. seealso:: :py:func:`setCustomRenderFlags`

.. deprecated:: 3.40

   Use \see :py:func:`~QgsMapSettings.customRenderingFlags`.
%End

 void setCustomRenderFlags( const QString &customRenderFlags );
%Docstring
Sets the custom rendering flags. Layers might honour these to alter
their rendering.

:param customRenderFlags: custom flags strings, separated by ';'

.. seealso:: :py:func:`customRenderFlags`

.. deprecated:: 3.40

   Use \see :py:func:`~QgsMapSettings.setCustomRenderingFlag` instead.
%End

    QVariantMap customRenderingFlags() const;
%Docstring
Returns any custom rendering flags. Layers might honour these to alter
their rendering.

:return: a map of custom flags

.. seealso:: :py:func:`setCustomRenderingFlag`

.. versionadded:: 3.12
%End

    void setCustomRenderingFlag( const QString &flag, const QVariant &value );
%Docstring
Sets a custom rendering ``flag``. Layers might honour these to alter
their rendering.

:param flag: the flag name
:param value: the flag value

.. seealso:: :py:func:`customRenderingFlags`

.. versionadded:: 3.12
%End

    void clearCustomRenderingFlag( const QString &flag );
%Docstring
Clears the specified custom rendering ``flag``.

:param flag: the flag name

.. seealso:: :py:func:`setCustomRenderingFlag`

.. versionadded:: 3.12
%End

    void setDestinationCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the destination ``crs`` (coordinate reference system) for the map
render.

.. seealso:: :py:func:`destinationCrs`
%End

    QgsCoordinateReferenceSystem destinationCrs() const;
%Docstring
Returns the destination coordinate reference system for the map render.

.. seealso:: :py:func:`setDestinationCrs`
%End

    Qgis::DistanceUnit mapUnits() const;
%Docstring
Returns the units of the map's geographical coordinates - used for scale
calculation.
%End

    bool setEllipsoid( const QString &ellipsoid );
%Docstring
Sets the ``ellipsoid`` by its acronym. Known ellipsoid acronyms can be
retrieved using :py:func:`QgsEllipsoidUtils.acronyms()`. Calculations
will only use the ellipsoid if a valid ellipsoid has been set.

:return: ``True`` if ellipsoid was successfully set

.. seealso:: :py:func:`ellipsoid`
%End

    QString ellipsoid() const;
%Docstring
Returns ellipsoid's acronym. Calculations will only use the ellipsoid if
a valid ellipsoid has been set.

.. seealso:: :py:func:`setEllipsoid`
%End

    void setBackgroundColor( const QColor &color );
%Docstring
Sets the background ``color`` of the map.

.. seealso:: :py:func:`backgroundColor`
%End

    QColor backgroundColor() const;
%Docstring
Returns the background color of the map.

.. seealso:: :py:func:`setBackgroundColor`
%End

    void setSelectionColor( const QColor &color );
%Docstring
Sets the ``color`` that is used for drawing of selected vector features.

.. seealso:: :py:func:`selectionColor`
%End

    QColor selectionColor() const;
%Docstring
Returns the color that is used for drawing of selected vector features.

.. seealso:: :py:func:`setSelectionColor`
%End

    void setFlags( Qgis::MapSettingsFlags flags );
%Docstring
Sets combination of flags that will be used for rendering
%End
    void setFlag( Qgis::MapSettingsFlag flag, bool on = true );
%Docstring
Enable or disable a particular flag (other flags are not affected)
%End
    Qgis::MapSettingsFlags flags() const;
%Docstring
Returns combination of flags used for rendering
%End
    bool testFlag( Qgis::MapSettingsFlag flag ) const;
%Docstring
Check whether a particular flag is enabled
%End

    Qgis::TextRenderFormat textRenderFormat() const;
%Docstring
Returns the text render format, which dictates how text is rendered
(e.g. as paths or real text objects).

.. seealso:: :py:func:`setTextRenderFormat`

.. versionadded:: 3.4.3
%End

    void setTextRenderFormat( Qgis::TextRenderFormat format );
%Docstring
Sets the text render ``format``, which dictates how text is rendered
(e.g. as paths or real text objects).

.. warning::

   Calling the :py:func:`~QgsMapSettings.setLabelingEngineSettings` method will reset the text render format to match the default
   text render format from the label engine settings.

.. seealso:: :py:func:`textRenderFormat`

.. versionadded:: 3.4.3
%End

    void setOutputImageFormat( QImage::Format format );
%Docstring
sets format of internal QImage
%End
    QImage::Format outputImageFormat() const;
%Docstring
format of internal QImage, default QImage.Format_ARGB32_Premultiplied
%End

    bool hasValidSettings() const;
%Docstring
Check whether the map settings are valid and can be used for rendering
%End
    QgsRectangle visibleExtent() const;
%Docstring
Returns the actual extent derived from requested extent that takes
output image size into account
%End

    QPolygonF visiblePolygon() const;
%Docstring
Returns the visible area as a polygon (may be rotated)
%End

    QPolygonF visiblePolygonWithBuffer() const;
%Docstring
Returns the visible area as a polygon (may be rotated) with extent
buffer included

.. seealso:: :py:func:`extentBuffer`

.. versionadded:: 3.22
%End

    double mapUnitsPerPixel() const;
%Docstring
Returns the distance in geographical coordinates that equals to one
pixel in the map
%End

    double scale() const;
%Docstring
Returns the calculated map scale. The scale value indicates the scale
denominator, e.g. 1000.0 for a 1:1000 map.
%End

    void setExpressionContext( const QgsExpressionContext &context );
%Docstring
Sets the expression context. This context is used for all expression
evaluation associated with this map settings.

.. seealso:: :py:func:`expressionContext`
%End

    const QgsExpressionContext &expressionContext() const;
%Docstring
Gets the expression context. This context should be used for all
expression evaluation associated with this map settings.

.. seealso:: :py:func:`setExpressionContext`
%End

    QgsCoordinateTransformContext transformContext() const;
%Docstring
Returns the coordinate transform context, which stores various
information regarding which datum transforms should be used when
transforming points from a source to destination coordinate reference
system.

.. seealso:: :py:func:`setTransformContext`
%End

    void setTransformContext( const QgsCoordinateTransformContext &context );
%Docstring
Sets the coordinate transform ``context``, which stores various
information regarding which datum transforms should be used when
transforming points from a source to destination coordinate reference
system.

.. seealso:: :py:func:`transformContext`
%End

    const QgsPathResolver &pathResolver() const;
%Docstring
Returns the path resolver for conversion between relative and absolute
paths during rendering operations, e.g. for resolving relative symbol
paths.

.. seealso:: :py:func:`setPathResolver`
%End

    void setPathResolver( const QgsPathResolver &resolver );
%Docstring
Sets the path ``resolver`` for conversion between relative and absolute
paths during rendering operations, e.g. for resolving relative symbol
paths.

.. seealso:: :py:func:`pathResolver`
%End

    const QgsMapToPixel &mapToPixel() const;

    double layerToMapUnits( const QgsMapLayer *layer, const QgsRectangle &referenceExtent = QgsRectangle() ) const;
%Docstring
Computes an *estimated* conversion factor between layer and map units,
where ``layerUnits × layerToMapUnits = mapUnits``

:param layer: The layer
:param referenceExtent: A reference extent based on which to perform the
                        computation. If not specified, the layer extent
                        is used
%End

    QgsRectangle layerExtentToOutputExtent( const QgsMapLayer *layer, QgsRectangle extent ) const;
%Docstring
transform bounding box from layer's CRS to output CRS

.. seealso:: :py:func:`layerToMapCoordinates` const if you want to transform a rectangle

:return: a bounding box (aligned rectangle) containing the transformed
         extent
%End

    QgsRectangle outputExtentToLayerExtent( const QgsMapLayer *layer, QgsRectangle extent ) const;
%Docstring
transform bounding box from output CRS to layer's CRS

.. seealso:: :py:func:`mapToLayerCoordinates` const if you want to transform a rectangle

:return: a bounding box (aligned rectangle) containing the transformed
         extent
%End

    QgsPointXY layerToMapCoordinates( const QgsMapLayer *layer, QgsPointXY point ) const;
%Docstring
transform point coordinates from layer's CRS to output CRS

:return: the transformed point
%End

    QgsPoint layerToMapCoordinates( const QgsMapLayer *layer, const QgsPoint &point ) const;
%Docstring
transform point coordinates from layer's CRS to output CRS

:return: the transformed point

.. versionadded:: 3.16
%End

    QgsRectangle layerToMapCoordinates( const QgsMapLayer *layer, QgsRectangle rect ) const;
%Docstring
transform rectangle from layer's CRS to output CRS

.. seealso:: :py:func:`layerExtentToOutputExtent` if you want to transform a bounding box

:return: the transformed rectangle
%End

    QgsPointXY mapToLayerCoordinates( const QgsMapLayer *layer, QgsPointXY point ) const;
%Docstring
transform point coordinates from output CRS to layer's CRS

:return: the transformed point
%End

    QgsPoint mapToLayerCoordinates( const QgsMapLayer *layer, const QgsPoint &point ) const;
%Docstring
transform point coordinates from output CRS to layer's CRS

:return: the transformed point

.. versionadded:: 3.16
%End

    QgsRectangle mapToLayerCoordinates( const QgsMapLayer *layer, QgsRectangle rect ) const;
%Docstring
transform rectangle from output CRS to layer's CRS

.. seealso:: :py:func:`outputExtentToLayerExtent` if you want to transform a bounding box

:return: the transformed rectangle
%End

    QgsCoordinateTransform layerTransform( const QgsMapLayer *layer ) const;
%Docstring
Returns the coordinate transform from layer's CRS to destination CRS

:return: transform - may be invalid if the transform is not needed
%End

    QgsRectangle computeExtentForScale( const QgsPointXY &center, double scale ) const;
%Docstring
Compute the extent such that its ``center`` is at the specified position
(mapped to the destinatonCrs) and the zoom factor corresponds to the
specified ``scale``

:param center: the center, in map coordinates
:param scale: the desired zoom factor (the x part of 1:x)

:return: an extent which can be passed to
         :py:class:`QgsMapCanvas`.setExtent

.. seealso:: :py:func:`computeScaleForExtent`

.. versionadded:: 3.22
%End

    double computeScaleForExtent( const QgsRectangle &extent ) const;
%Docstring
Compute the scale that corresponds to the specified ``extent``

:param extent: the extent, as passed to
               :py:func:`QgsMapCanvas.setExtent`

:return: the scale denominator

.. seealso:: :py:func:`computeExtentForScale`

.. note::

   This function does not consider any map rotation

.. versionadded:: 3.22
%End

    QgsRectangle fullExtent() const;
%Docstring
returns current extent of layer set
%End

    void readXml( QDomNode &node );
%Docstring
Restore the map settings from a XML ``node``.

.. seealso:: :py:func:`writeXml`
%End

    void writeXml( QDomNode &node, QDomDocument &doc );
%Docstring
Writes the map settings to an XML ``node``.

.. seealso:: :py:func:`readXml`
%End

    void setSegmentationTolerance( double tolerance );
%Docstring
Sets the segmentation tolerance applied when rendering curved geometries

:param tolerance: the segmentation tolerance
%End
    double segmentationTolerance() const;
%Docstring
Gets the segmentation tolerance applied when rendering curved geometries
%End

    void setSegmentationToleranceType( QgsAbstractGeometry::SegmentationToleranceType type );
%Docstring
Sets segmentation tolerance type (maximum angle or maximum difference
between curve and approximation)

:param type: the segmentation tolerance typename
%End
    QgsAbstractGeometry::SegmentationToleranceType segmentationToleranceType() const;
%Docstring
Gets segmentation tolerance type (maximum angle or maximum difference
between curve and approximation)
%End

    void setLabelingEngineSettings( const QgsLabelingEngineSettings &settings );
%Docstring
Sets the global configuration of the labeling engine.

.. note::

   Calling this method will reset the :py:func:`~QgsMapSettings.textRenderFormat` to match the default
   text render format from the label engine ``settings``.

.. seealso:: :py:func:`labelingEngineSettings`
%End

    const QgsLabelingEngineSettings &labelingEngineSettings() const;
%Docstring
Returns the global configuration of the labeling engine.

.. seealso:: :py:func:`setLabelingEngineSettings`
%End

    QgsGeometry labelBoundaryGeometry() const;
%Docstring
Returns the label boundary geometry, which restricts where in the
rendered map labels are permitted to be placed. By default this is a
null geometry, which indicates that labels can be placed anywhere within
the map's :py:func:`~QgsMapSettings.visiblePolygon`.

The geometry is specified using the map's
:py:func:`~QgsMapSettings.destinationCrs`.

.. seealso:: :py:func:`setLabelBoundaryGeometry`

.. seealso:: :py:func:`labelBlockingRegions`

.. versionadded:: 3.6
%End

    void setLabelBoundaryGeometry( const QgsGeometry &boundary );
%Docstring
Sets the label ``boundary`` geometry, which restricts where in the
rendered map labels are permitted to be placed.

A null ``boundary`` geometry (the default) indicates that labels can be
placed anywhere within the map's
:py:func:`~QgsMapSettings.visiblePolygon`.

The geometry is specified using the map's
:py:func:`~QgsMapSettings.destinationCrs`.

.. seealso:: :py:func:`labelBoundaryGeometry`

.. seealso:: :py:func:`setLabelBlockingRegions`

.. versionadded:: 3.6
%End

    void setLabelBlockingRegions( const QList< QgsLabelBlockingRegion > &regions );
%Docstring
Sets a list of ``regions`` to avoid placing labels within.

.. seealso:: :py:func:`labelBlockingRegions`

.. seealso:: :py:func:`setLabelBoundaryGeometry`

.. versionadded:: 3.6
%End

    QList< QgsLabelBlockingRegion > labelBlockingRegions() const;
%Docstring
Returns the list of regions to avoid placing labels within.

.. seealso:: :py:func:`setLabelBlockingRegions`

.. seealso:: :py:func:`labelBoundaryGeometry`

.. versionadded:: 3.6
%End

    void addClippingRegion( const QgsMapClippingRegion &region );
%Docstring
Adds a new clipping ``region`` to the map settings.

.. seealso:: :py:func:`clippingRegions`

.. seealso:: :py:func:`setClippingRegions`

.. versionadded:: 3.16
%End

    void setClippingRegions( const QList< QgsMapClippingRegion > &regions );
%Docstring
Sets the list of clipping ``regions`` to apply to the map.

.. seealso:: :py:func:`addClippingRegion`

.. seealso:: :py:func:`clippingRegions`

.. versionadded:: 3.16
%End

    QList< QgsMapClippingRegion > clippingRegions() const;
%Docstring
Returns the list of clipping regions to apply to the map.

.. seealso:: :py:func:`addClippingRegion`

.. seealso:: :py:func:`setClippingRegions`

.. versionadded:: 3.16
%End

    void setSimplifyMethod( const QgsVectorSimplifyMethod &method );
%Docstring
Sets the simplification setting to use when rendering vector layers.

If the simplify ``method`` is enabled, it will override all other
layer-specific simplification settings and will apply to all vector
layers rendered for the map.

This can be used to specify global simplification methods to apply
during map exports, e.g. to allow vector layers to be simplified to an
appropriate maximum level of detail during PDF exports.

The default is to use no global simplification, and fallback to
individual layer's settings instead.

.. seealso:: :py:func:`simplifyMethod`

.. versionadded:: 3.10
%End

    const QgsVectorSimplifyMethod &simplifyMethod() const;
%Docstring
Returns the simplification settings to use when rendering vector layers.

If enabled, it will override all other layer-specific simplification
settings and will apply to all vector layers rendered for the map.

The default is to use no global simplification, and fallback to
individual layer's settings instead.

.. seealso:: :py:func:`setSimplifyMethod`

.. versionadded:: 3.10
%End


    QgsMaskRenderSettings &maskSettings();
%Docstring
Returns a reference to the mask render settings, which control how masks
are drawn and behave during the map render.

.. seealso:: :py:func:`setMaskSettings`

.. versionadded:: 3.38
%End

    void setMaskSettings( const QgsMaskRenderSettings &settings );
%Docstring
Sets the mask render ``settings``, which control how masks are drawn and
behave during the map render.

.. seealso:: :py:func:`maskSettings`

.. versionadded:: 3.38
%End

    void addRenderedFeatureHandler( QgsRenderedFeatureHandlerInterface *handler );
%Docstring
Adds a rendered feature ``handler`` to use while rendering the map
settings.

Ownership of ``handler`` is NOT transferred, and it is the caller's
responsibility to ensure that the handler exists for the lifetime of the
map render job.

.. seealso:: :py:func:`renderedFeatureHandlers`

.. versionadded:: 3.10
%End

    QList< QgsRenderedFeatureHandlerInterface * > renderedFeatureHandlers() const;
%Docstring
Returns the list of rendered feature handlers to use while rendering the
map settings.

.. seealso:: :py:func:`addRenderedFeatureHandler`

.. versionadded:: 3.10
%End

    QgsDoubleRange zRange() const;
%Docstring
Returns the range of z-values which will be visible in the map.

.. seealso:: :py:func:`setZRange`

.. versionadded:: 3.18
%End

    void setZRange( const QgsDoubleRange &range );
%Docstring
Sets the ``range`` of z-values which will be visible in the map.

.. seealso:: :py:func:`zRange`

.. versionadded:: 3.18
%End

    Qgis::RendererUsage rendererUsage() const;
%Docstring
Returns the rendering usage

.. seealso:: :py:func:`setRendererUsage`

.. versionadded:: 3.24
%End

    void setRendererUsage( Qgis::RendererUsage rendererUsage );
%Docstring
Sets the rendering usage

.. note::

   This usage not alter how the map gets rendered but the intention is that data provider
   knows the context of rendering and may report that to the backend.

.. seealso:: :py:func:`rendererUsage`

.. versionadded:: 3.24
%End

    double frameRate() const;
%Docstring
Returns the frame rate of the map (in frames per second), for maps which
are part of an animation.

Returns -1 if the map is not associated with an animation.

.. seealso:: :py:func:`setFrameRate`

.. versionadded:: 3.26
%End

    void setFrameRate( double rate );
%Docstring
Sets the frame ``rate`` of the map (in frames per second), for maps
which are part of an animation.

Defaults to -1 if the map is not associated with an animation.

.. seealso:: :py:func:`frameRate`

.. versionadded:: 3.26
%End

    long long currentFrame() const;
%Docstring
Returns the current frame number of the map, for maps which are part of
an animation.

Returns -1 if the map is not associated with an animation.

.. seealso:: :py:func:`setCurrentFrame`

.. versionadded:: 3.26
%End

    void setCurrentFrame( long long frame );
%Docstring
Sets the current ``frame`` of the map, for maps which are part of an
animation.

Defaults to -1 if the map is not associated with an animation.

.. seealso:: :py:func:`currentFrame`

.. versionadded:: 3.26
%End

    const QgsElevationShadingRenderer &elevationShadingRenderer() const;
%Docstring
Returns the shading renderer used to render shading on the entire map

.. seealso:: :py:func:`setElevationShadingRenderer`

.. versionadded:: 3.30
%End

    void setElevationShadingRenderer( const QgsElevationShadingRenderer &renderer );
%Docstring
Sets the shading ``renderer`` used to render shading on the entire map

.. seealso:: :py:func:`elevationShadingRenderer`

.. versionadded:: 3.30
%End

  protected:
























    void updateDerived();

};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgsmapsettings.h                                            *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/