Class: QgsCurvedLineCallout¶
Draws curved lines as callouts.
Added in version 3.20.
Class Hierarchy¶
Base classes¶
A simple direct line callout style.  | 
|
Abstract base class for callout renderers.  | 
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.  | 
Static Methods
Creates a new   | 
Attributes
- 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 thepropertiesmap (corresponding to the output fromQgsCurvedLineCallout.properties()).- Parameters:
 properties (Dict[str, Any] = {})
context (
QgsReadWriteContext= QgsReadWriteContext())
- 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
- 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)