Class: QgsManhattanLineCallout¶
-
class
qgis.core.
QgsManhattanLineCallout
¶ Bases:
QgsSimpleLineCallout
Draws straight (right angled) lines as callouts.
Methods
- rtype
QgsManhattanLineCallout
Creates a new
QgsManhattanLineCallout
, using the settings serialized in theproperties
map (corresponding to the output from QgsManhattanLineCallout.properties() ).- param context
- rtype
str
-
clone
(self) → QgsManhattanLineCallout¶ - Return type
-
create
(properties: Dict[str, Any] = {}, context: QgsReadWriteContext = QgsReadWriteContext()) → QgsCallout¶ Creates a new
QgsManhattanLineCallout
, using the settings serialized in theproperties
map (corresponding to the output from QgsManhattanLineCallout.properties() ).- Parameters
properties (Dict[str) –
context (
QgsReadWriteContext
= QgsReadWriteContext()) –
- Return type
-
draw
(self, context: QgsRenderContext, bodyBoundingBox: QRectF, angle: float, anchor: QgsGeometry, calloutContext: QgsCallout.QgsCalloutContext)¶ - Parameters
context (QgsRenderContext) –
bodyBoundingBox (QRectF) –
angle (float) –
anchor (QgsGeometry) –
calloutContext (QgsCallout.QgsCalloutContext) –
-
type
(self) → str¶ - Return type
str