QGIS/python/core/auto_additions/qgscallout.py
2025-04-03 01:05:31 +10:00

144 lines
7.0 KiB
Python

# The following has been generated automatically from src/core/callouts/qgscallout.h
# monkey patching scoped based enum
QgsCallout.MinimumCalloutLength = QgsCallout.Property.MinimumCalloutLength
QgsCallout.MinimumCalloutLength.is_monkey_patched = True
QgsCallout.MinimumCalloutLength.__doc__ = "Minimum length of callouts"
QgsCallout.OffsetFromAnchor = QgsCallout.Property.OffsetFromAnchor
QgsCallout.OffsetFromAnchor.is_monkey_patched = True
QgsCallout.OffsetFromAnchor.__doc__ = "Distance to offset lines from anchor points"
QgsCallout.OffsetFromLabel = QgsCallout.Property.OffsetFromLabel
QgsCallout.OffsetFromLabel.is_monkey_patched = True
QgsCallout.OffsetFromLabel.__doc__ = "Distance to offset lines from label area"
QgsCallout.DrawCalloutToAllParts = QgsCallout.Property.DrawCalloutToAllParts
QgsCallout.DrawCalloutToAllParts.is_monkey_patched = True
QgsCallout.DrawCalloutToAllParts.__doc__ = "Whether callout lines should be drawn to all feature parts"
QgsCallout.AnchorPointPosition = QgsCallout.Property.AnchorPointPosition
QgsCallout.AnchorPointPosition.is_monkey_patched = True
QgsCallout.AnchorPointPosition.__doc__ = "Feature's anchor point position"
QgsCallout.LabelAnchorPointPosition = QgsCallout.Property.LabelAnchorPointPosition
QgsCallout.LabelAnchorPointPosition.is_monkey_patched = True
QgsCallout.LabelAnchorPointPosition.__doc__ = "Label's anchor point position"
QgsCallout.OriginX = QgsCallout.Property.OriginX
QgsCallout.OriginX.is_monkey_patched = True
QgsCallout.OriginX.__doc__ = "X-coordinate of callout origin (label anchor) \n.. versionadded:: 3.20"
QgsCallout.OriginY = QgsCallout.Property.OriginY
QgsCallout.OriginY.is_monkey_patched = True
QgsCallout.OriginY.__doc__ = "Y-coordinate of callout origin (label anchor) \n.. versionadded:: 3.20"
QgsCallout.DestinationX = QgsCallout.Property.DestinationX
QgsCallout.DestinationX.is_monkey_patched = True
QgsCallout.DestinationX.__doc__ = "X-coordinate of callout destination (feature anchor) \n.. versionadded:: 3.20"
QgsCallout.DestinationY = QgsCallout.Property.DestinationY
QgsCallout.DestinationY.is_monkey_patched = True
QgsCallout.DestinationY.__doc__ = "Y-coordinate of callout destination (feature anchor) \n.. versionadded:: 3.20"
QgsCallout.Curvature = QgsCallout.Property.Curvature
QgsCallout.Curvature.is_monkey_patched = True
QgsCallout.Curvature.__doc__ = "Curvature of curved line callouts \n.. versionadded:: 3.20"
QgsCallout.Orientation = QgsCallout.Property.Orientation
QgsCallout.Orientation.is_monkey_patched = True
QgsCallout.Orientation.__doc__ = "Orientation of curved line callouts \n.. versionadded:: 3.20"
QgsCallout.Margins = QgsCallout.Property.Margins
QgsCallout.Margins.is_monkey_patched = True
QgsCallout.Margins.__doc__ = "Margin from text \n.. versionadded:: 3.20"
QgsCallout.WedgeWidth = QgsCallout.Property.WedgeWidth
QgsCallout.WedgeWidth.is_monkey_patched = True
QgsCallout.WedgeWidth.__doc__ = "Balloon callout wedge width \n.. versionadded:: 3.20"
QgsCallout.CornerRadius = QgsCallout.Property.CornerRadius
QgsCallout.CornerRadius.is_monkey_patched = True
QgsCallout.CornerRadius.__doc__ = "Balloon callout corner radius \n.. versionadded:: 3.20"
QgsCallout.BlendMode = QgsCallout.Property.BlendMode
QgsCallout.BlendMode.is_monkey_patched = True
QgsCallout.BlendMode.__doc__ = "Callout blend mode \n.. versionadded:: 3.20"
QgsCallout.Property.__doc__ = """Data definable properties.
* ``MinimumCalloutLength``: Minimum length of callouts
* ``OffsetFromAnchor``: Distance to offset lines from anchor points
* ``OffsetFromLabel``: Distance to offset lines from label area
* ``DrawCalloutToAllParts``: Whether callout lines should be drawn to all feature parts
* ``AnchorPointPosition``: Feature's anchor point position
* ``LabelAnchorPointPosition``: Label's anchor point position
* ``OriginX``: X-coordinate of callout origin (label anchor)
.. versionadded:: 3.20
* ``OriginY``: Y-coordinate of callout origin (label anchor)
.. versionadded:: 3.20
* ``DestinationX``: X-coordinate of callout destination (feature anchor)
.. versionadded:: 3.20
* ``DestinationY``: Y-coordinate of callout destination (feature anchor)
.. versionadded:: 3.20
* ``Curvature``: Curvature of curved line callouts
.. versionadded:: 3.20
* ``Orientation``: Orientation of curved line callouts
.. versionadded:: 3.20
* ``Margins``: Margin from text
.. versionadded:: 3.20
* ``WedgeWidth``: Balloon callout wedge width
.. versionadded:: 3.20
* ``CornerRadius``: Balloon callout corner radius
.. versionadded:: 3.20
* ``BlendMode``: Callout blend mode
.. versionadded:: 3.20
"""
# --
try:
QgsCallout.QgsCalloutContext.__attribute_docs__ = {'allFeaturePartsLabeled': '``True`` if all parts of associated feature were labeled', 'originalFeatureCrs': 'Contains the CRS of the original feature associated with this callout.\n\n.. versionadded:: 3.20'}
QgsCallout.QgsCalloutContext.__annotations__ = {'allFeaturePartsLabeled': bool, 'originalFeatureCrs': 'QgsCoordinateReferenceSystem'}
QgsCallout.QgsCalloutContext.__group__ = ['callouts']
except (NameError, AttributeError):
pass
try:
QgsCallout.propertyDefinitions = staticmethod(QgsCallout.propertyDefinitions)
QgsCallout.encodeAnchorPoint = staticmethod(QgsCallout.encodeAnchorPoint)
QgsCallout.decodeAnchorPoint = staticmethod(QgsCallout.decodeAnchorPoint)
QgsCallout.encodeLabelAnchorPoint = staticmethod(QgsCallout.encodeLabelAnchorPoint)
QgsCallout.decodeLabelAnchorPoint = staticmethod(QgsCallout.decodeLabelAnchorPoint)
QgsCallout.__virtual_methods__ = ['properties', 'readProperties', 'saveProperties', 'restoreProperties', 'startRender', 'stopRender', 'referencedFields', 'drawOrder']
QgsCallout.__abstract_methods__ = ['type', 'clone', 'draw']
QgsCallout.__group__ = ['callouts']
except (NameError, AttributeError):
pass
try:
QgsSimpleLineCallout.create = staticmethod(QgsSimpleLineCallout.create)
QgsSimpleLineCallout.__virtual_methods__ = ['createCalloutLine']
QgsSimpleLineCallout.__overridden_methods__ = ['type', 'clone', 'properties', 'readProperties', 'startRender', 'stopRender', 'referencedFields', 'draw']
QgsSimpleLineCallout.__group__ = ['callouts']
except (NameError, AttributeError):
pass
try:
QgsManhattanLineCallout.create = staticmethod(QgsManhattanLineCallout.create)
QgsManhattanLineCallout.__overridden_methods__ = ['type', 'clone', 'createCalloutLine']
QgsManhattanLineCallout.__group__ = ['callouts']
except (NameError, AttributeError):
pass
try:
QgsCurvedLineCallout.create = staticmethod(QgsCurvedLineCallout.create)
QgsCurvedLineCallout.__overridden_methods__ = ['type', 'clone', 'properties', 'createCalloutLine']
QgsCurvedLineCallout.__group__ = ['callouts']
except (NameError, AttributeError):
pass
try:
QgsBalloonCallout.create = staticmethod(QgsBalloonCallout.create)
QgsBalloonCallout.__overridden_methods__ = ['type', 'clone', 'properties', 'readProperties', 'startRender', 'stopRender', 'referencedFields', 'draw']
QgsBalloonCallout.__group__ = ['callouts']
except (NameError, AttributeError):
pass