Class: QgsCurvedLineCallout¶
Draws curved lines as callouts.
Added in version 3.20.
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
Methods
Returns the callout line's curvature. |
|
Returns the callout line's curve orientation. |
|
Sets the callout line's curvature. |
|
Sets the callout line's curve orientation. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsCurvedLineCallout. See the FAQ for more details.
Static Methods
Creates a new |
- class qgis.core.QgsCurvedLineCallout[source]¶
Bases:
QgsSimpleLineCallout- Automatic = 0¶
- Clockwise = 1¶
- CounterClockwise = 2¶
- abstract clone(self) QgsCurvedLineCallout | None[source]¶
- Return type:
QgsCurvedLineCallout|None
- static create(properties: dict[str | None, Any] = {}, context: QgsReadWriteContext = QgsReadWriteContext()) QgsCallout | None¶
Creates a new
QgsCurvedLineCallout, using the settings serialized in thepropertiesmap (corresponding to the output fromQgsCurvedLineCallout.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
- 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
- Return type:
float
- orientation(self) QgsCurvedLineCallout.Orientation[source]¶
Returns the callout line’s curve orientation.
See also
- Return type:
QgsCurvedLineCallout.Orientation
- setCurvature(self, curvature: float)[source]¶
Sets the callout line’s
curvature.The
curvatureis a percentage value (with typical ranges between 0.0 and 1.0), representing the overall curvature of the line.See also
- Parameters:
curvature (float)