Class: QgsCurvedLineCallout

Draws curved lines as callouts.

Added in version 3.20.

Class Hierarchy

Inheritance diagram of qgis.core.QgsCurvedLineCallout

Base classes

QgsSimpleLineCallout

A simple direct line callout style.

QgsCallout

Abstract base class for callout renderers.

Methods

curvature

Returns the callout line's curvature.

orientation

Returns the callout line's curve orientation.

setCurvature

Sets the callout line's curvature.

setOrientation

Sets the callout line's curve orientation.

Static Methods

create

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

Attributes

Automatic

Clockwise

CounterClockwise

class qgis.core.QgsCurvedLineCallout[source]

Bases: QgsSimpleLineCallout

Automatic = 0
Clockwise = 1
CounterClockwise = 2
static create(properties: Dict[str, Any] = {}, context: QgsReadWriteContext = QgsReadWriteContext()) QgsCallout | None[source]

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

Parameters:
Return type:

Optional[QgsCallout]

curvature(self) float[source]

Returns the callout line’s curvature.

The curvature is a percentage value (with typical ranges between 0.0 and 1.0), representing the overall curvature of the line.

See also

setCurvature()

Return type:

float

orientation(self) QgsCurvedLineCallout.Orientation[source]

Returns the callout line’s curve orientation.

See also

setOrientation()

Return type:

QgsCurvedLineCallout.Orientation

setCurvature(self, curvature: float)[source]

Sets the callout line’s curvature.

The curvature is a percentage value (with typical ranges between 0.0 and 1.0), representing the overall curvature of the line.

See also

curvature()

Parameters:

curvature (float)

setOrientation(self, orientation: QgsCurvedLineCallout.Orientation)[source]

Sets the callout line’s curve orientation.

See also

orientation()

Parameters:

orientation (QgsCurvedLineCallout.Orientation)