Class: QgsManhattanLineCallout¶
- class qgis.core.QgsManhattanLineCallout¶
Bases:
QgsSimpleLineCallout
Draws straight (right angled) lines as callouts.
New in version 3.10:
Methods
- rtype
QgsManhattanLineCallout
Creates a new
QgsManhattanLineCallout
, using the settings serialized in theproperties
map (corresponding to the output fromQgsManhattanLineCallout.properties()
).- param context
Returns the anchor point geometry for a label with the given bounding box and
anchor
point mode.- rtype
str
- clone(self) QgsManhattanLineCallout ¶
- Return type
- create(properties: Dict[str, Any] = {}, context: QgsReadWriteContext = QgsReadWriteContext()) QgsCallout ¶
Creates a new
QgsManhattanLineCallout
, using the settings serialized in theproperties
map (corresponding to the output fromQgsManhattanLineCallout.properties()
).- Parameters
properties (Dict[str) –
context (
QgsReadWriteContext
= QgsReadWriteContext()) –
- Return type
- draw(self, context: QgsRenderContext, bodyBoundingBox: QRectF, angle: float, anchor: QgsGeometry, calloutContext: QgsCallout.QgsCalloutContext)¶
- Parameters
context (QgsRenderContext) –
bodyBoundingBox (QRectF) –
angle (float) –
anchor (QgsGeometry) –
calloutContext (QgsCallout.QgsCalloutContext) –
- labelAnchorGeometry(self, bodyBoundingBox: QRectF, angle: float, anchor: QgsCallout.LabelAnchorPoint) QgsGeometry ¶
Returns the anchor point geometry for a label with the given bounding box and
anchor
point mode.New in version 3.14.
- type(self) str ¶
- Return type
str