Class: QgsManhattanLineCallout¶
Draws straight (right angled) lines as callouts.
Added in version 3.10.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
A simple direct line callout style. |
|
Abstract base class for callout renderers. |
Abstract Methods
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.
Static Methods
Creates a new |
- class qgis.core.QgsManhattanLineCallout[source]¶
Bases:
QgsSimpleLineCallout- abstract clone(self) QgsManhattanLineCallout | None[source]¶
- Return type:
- static create(properties: dict[str | None, Any] = {}, context: QgsReadWriteContext = QgsReadWriteContext()) QgsCallout | None¶
Creates a new
QgsManhattanLineCallout, using the settings serialized in thepropertiesmap (corresponding to the output fromQgsManhattanLineCallout.properties()).- Parameters:
properties (dict[str|None, Any] = {})
context (
QgsReadWriteContext= QgsReadWriteContext())
- 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:
start (QgsPoint)
end (QgsPoint)
context (QgsRenderContext)
bodyBoundingBox (QRectF)
angle (float)
anchor (QgsGeometry)
calloutContext (QgsCallout.QgsCalloutContext)
- Return type:
QgsCurve|None