Class: QgsPointPatternFillSymbolLayer

class qgis.core.QgsPointPatternFillSymbolLayer

Bases: QgsImageFillSymbolLayer

Methods

applyDataDefinedSettings

param context

clone

rtype

QgsPointPatternFillSymbolLayer

color

rtype

QColor

copyDataDefinedProperties

copyPaintEffect

create

param properties

createFromSld

param element

displacementX

rtype

float

displacementXMapUnitScale

rtype

QgsMapUnitScale

displacementXUnit

Returns the units for the horizontal displacement between rows in the pattern.

displacementY

rtype

float

displacementYMapUnitScale

rtype

QgsMapUnitScale

displacementYUnit

Returns the units for the vertical displacement between rows in the pattern.

distanceX

rtype

float

distanceXMapUnitScale

rtype

QgsMapUnitScale

distanceXUnit

Returns the units for the horizontal distance between points in the pattern.

distanceY

rtype

float

distanceYMapUnitScale

rtype

QgsMapUnitScale

distanceYUnit

Returns the units for the vertical distance between points in the pattern.

estimateMaxBleed

param context

hasDataDefinedProperties

rtype

bool

layerType

rtype

str

mapUnitScale

rtype

QgsMapUnitScale

outputUnit

rtype

QgsUnitTypes.RenderUnit

properties

rtype

Dict[str, str]

restoreOldDataDefinedProperties

setColor

param c

setDisplacementX

param d

setDisplacementXMapUnitScale

param scale

setDisplacementXUnit

Sets the units for the horizontal displacement between rows in the pattern.

setDisplacementY

param d

setDisplacementYMapUnitScale

param scale

setDisplacementYUnit

Sets the units for the vertical displacement between rows in the pattern.

setDistanceX

param d

setDistanceXMapUnitScale

param scale

setDistanceXUnit

Sets the units for the horizontal distance between points in the pattern.

setDistanceY

param d

setDistanceYMapUnitScale

param scale

setDistanceYUnit

Sets the units for the vertical distance between points in the pattern.

setMapUnitScale

param scale

setOutputUnit

param unit

setSubSymbol

param symbol

startRender

param context

stopRender

param context

subSymbol

rtype

QgsSymbol

toSld

param doc

usedAttributes

param context

applyDataDefinedSettings(self, context: QgsSymbolRenderContext)
Parameters

context (QgsSymbolRenderContext) –

clone(self) → QgsPointPatternFillSymbolLayer
Return type

QgsPointPatternFillSymbolLayer

color(self) → QColor
Return type

QColor

copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
Parameters

properties (Dict[str) –

Return type

QgsSymbolLayer

createFromSld(element: QDomElement) → QgsSymbolLayer
Parameters

element (QDomElement) –

Return type

QgsSymbolLayer

displacementX(self) → float
Return type

float

displacementXMapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

displacementXUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the horizontal displacement between rows in the pattern.

Return type

QgsUnitTypes.RenderUnit

displacementY(self) → float
Return type

float

displacementYMapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

displacementYUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the vertical displacement between rows in the pattern.

Return type

QgsUnitTypes.RenderUnit

distanceX(self) → float
Return type

float

distanceXMapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

distanceXUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the horizontal distance between points in the pattern.

See also

distanceYUnit()

Return type

QgsUnitTypes.RenderUnit

distanceY(self) → float
Return type

float

distanceYMapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

distanceYUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the vertical distance between points in the pattern.

See also

distanceXUnit()

Return type

QgsUnitTypes.RenderUnit

estimateMaxBleed(self, context: QgsRenderContext) → float
Parameters

context (QgsRenderContext) –

Return type

float

hasDataDefinedProperties(self) → bool
Return type

bool

layerType(self) → str
Return type

str

mapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

outputUnit(self) → QgsUnitTypes.RenderUnit
Return type

QgsUnitTypes.RenderUnit

properties(self) → Dict[str, str]
Return type

Dict[str, str]

restoreOldDataDefinedProperties()
setColor(self, c: Union[QColor, Qt.GlobalColor])
Parameters

c (Union[QColor) –

setDisplacementX(self, d: float)
Parameters

d (float) –

setDisplacementXMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setDisplacementXUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the horizontal displacement between rows in the pattern.

Parameters

unit (QgsUnitTypes.RenderUnit) – displacement units

setDisplacementY(self, d: float)
Parameters

d (float) –

setDisplacementYMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setDisplacementYUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the vertical displacement between rows in the pattern.

Parameters

unit (QgsUnitTypes.RenderUnit) – displacement units

setDistanceX(self, d: float)
Parameters

d (float) –

setDistanceXMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setDistanceXUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the horizontal distance between points in the pattern.

Parameters

unit (QgsUnitTypes.RenderUnit) – distance units

See also

distanceXUnit()

setDistanceY(self, d: float)
Parameters

d (float) –

setDistanceYMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setDistanceYUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the vertical distance between points in the pattern.

Parameters

unit (QgsUnitTypes.RenderUnit) – distance units

See also

distanceYUnit()

setMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
Parameters

unit (QgsUnitTypes.RenderUnit) –

setSubSymbol(self, symbol: QgsSymbol) → bool
Parameters

symbol (QgsSymbol) –

Return type

bool

startRender(self, context: QgsSymbolRenderContext)
Parameters

context (QgsSymbolRenderContext) –

stopRender(self, context: QgsSymbolRenderContext)
Parameters

context (QgsSymbolRenderContext) –

subSymbol(self) → QgsSymbol
Return type

QgsSymbol

toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
Parameters
  • doc (QDomDocument) –

  • element (QDomElement) –

  • props (Dict[str) –

usedAttributes(self, context: QgsRenderContext) → Set[str]
Parameters

context (QgsRenderContext) –

Return type

Set[str]