Class: QgsManhattanLineCallout

Draws straight (right angled) lines as callouts.

Added in version 3.10.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsManhattanLineCallout

Base classes

QgsSimpleLineCallout

A simple direct line callout style.

QgsCallout

Abstract base class for callout renderers.

Abstract Methods

clone

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsManhattanLineCallout. See the FAQ for more details.

createCalloutLine

Static Methods

create

Creates a new QgsManhattanLineCallout, using the settings serialized in the properties map (corresponding to the output from QgsManhattanLineCallout.properties() ).

class qgis.core.QgsManhattanLineCallout[source]

Bases: QgsSimpleLineCallout

abstract clone(self) → QgsManhattanLineCallout | None[source]
Return type:

QgsManhattanLineCallout|None

static create(properties: dict[str | None, Any] = {}, context: QgsReadWriteContext = QgsReadWriteContext()) → QgsCallout | None

Creates a new QgsManhattanLineCallout, using the settings serialized in the properties map (corresponding to the output from QgsManhattanLineCallout.properties() ).

Parameters:
Return type:

QgsCallout|None

virtual createCalloutLine(self, start: QgsPoint, end: QgsPoint, context: QgsRenderContext, bodyBoundingBox: QRectF, angle: float, anchor: QgsGeometry, calloutContext: QgsCallout.QgsCalloutContext) → QgsCurve | None[source]
Parameters:
Return type:

QgsCurve|None