Class: QgsSimpleLineCallout

class qgis.core.QgsSimpleLineCallout

Bases: qgis._core.QgsCallout

A simple direct line callout style.

New in version 3.10: Enums

Methods

clone

create

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

draw

lineSymbol

Returns the line symbol used to render the callout line.

minimumLength

Returns the minimum length of callout lines.

minimumLengthMapUnitScale

Returns the map unit scale for the minimum callout length.

minimumLengthUnit

Returns the units for the minimum length of callout lines.

properties

readProperties

referencedFields

setLineSymbol

Sets the line symbol used to render the callout line.

setMinimumLength

Sets the minimum length of callout lines.

setMinimumLengthMapUnitScale

Sets the map unit scale for the minimum callout length.

setMinimumLengthUnit

Sets the unit for the minimum length of callout lines.

startRender

stopRender

type

Signals

Attributes

clone(self) → QgsSimpleLineCallout
create(properties: Dict[str, Any] = {}, context: QgsReadWriteContext = QgsReadWriteContext()) → QgsCallout

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

draw(self, context: QgsRenderContext, bodyBoundingBox: QRectF, angle: float, anchor: QgsGeometry)
lineSymbol(self) → QgsLineSymbol

Returns the line symbol used to render the callout line.

Ownership is not transferred.

See also

setLineSymbol()

minimumLength(self) → float

Returns the minimum length of callout lines. Units are specified through minimumLengthUnits().

minimumLengthMapUnitScale(self) → QgsMapUnitScale

Returns the map unit scale for the minimum callout length.

See also

minimumLength()

minimumLengthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the minimum length of callout lines.

See also

minimumLength()

properties(self, context: QgsReadWriteContext) → Dict[str, Any]
readProperties(self, props: Dict[str, Any], context: QgsReadWriteContext)
referencedFields(self, context: QgsRenderContext) → Set[str]
setLineSymbol(self, symbol: QgsLineSymbol)

Sets the line symbol used to render the callout line. Ownership of symbol is transferred to the callout.

See also

lineSymbol()

setMinimumLength(self, length: float)

Sets the minimum length of callout lines. Units are specified through setMinimumLengthUnit().

See also

minimumLength()

setMinimumLengthMapUnitScale(self, scale: QgsMapUnitScale)

Sets the map unit scale for the minimum callout length.

setMinimumLengthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the unit for the minimum length of callout lines.

startRender(self, context: QgsRenderContext)
stopRender(self, context: QgsRenderContext)
type(self) → str