Subgroup: Point

Class: QgsPointPatternFillSymbolLayer

class qgis.core.QgsPointPatternFillSymbolLayer

Bases: qgis._core.QgsImageFillSymbolLayer

Methods

angle
applyDataDefinedSettings
clone
color
copyDataDefinedProperties
copyPaintEffect
create
createFromSld
dataDefinedProperties Returns a reference to the symbol layer’s property collection, used for data defined overrides.
displacementX
displacementXMapUnitScale
displacementXUnit Returns the units for the horizontal displacement between rows in the pattern.
displacementY
displacementYMapUnitScale
displacementYUnit Returns the units for the vertical displacement between rows in the pattern.
distanceX
distanceXMapUnitScale
distanceXUnit Returns the units for the horizontal distance between points in the pattern.
distanceY
distanceYMapUnitScale
distanceYUnit Returns the units for the vertical distance between points in the pattern.
drawPreviewIcon
dxfAngle get angle
dxfBrushColor get brush/fill color
dxfBrushStyle get brush/fill style
dxfColor
dxfCustomDashPattern get dash pattern
dxfOffset get offset
dxfPenStyle
dxfWidth
enabled Returns true if symbol layer is enabled and will be drawn.
estimateMaxBleed
fillColor Get fill color.
isCompatibleWithSymbol Returns if the layer can be used below the specified symbol
isLocked
layerType
mapUnitScale
ogrFeatureStyle
outputUnit
paintEffect Returns the current paint effect for the layer.
prepareExpressions Prepares all data defined property expressions for evaluation.
properties
propertyDefinitions Returns the symbol layer property definitions.
renderPolygon
renderingPass
restoreOldDataDefinedProperties
setAngle
setColor
setDataDefinedProperties Sets the symbol layer’s property collection, used for data defined overrides.
setDataDefinedProperty Sets a data defined property for the layer.
setDisplacementX
setDisplacementXMapUnitScale
setDisplacementXUnit Sets the units for the horizontal displacement between rows in the pattern.
setDisplacementY
setDisplacementYMapUnitScale
setDisplacementYUnit Sets the units for the vertical displacement between rows in the pattern.
setDistanceX
setDistanceXMapUnitScale
setDistanceXUnit Sets the units for the horizontal distance between points in the pattern.
setDistanceY
setDistanceYMapUnitScale
setDistanceYUnit Sets the units for the vertical distance between points in the pattern.
setEnabled Sets whether symbol layer is enabled and should be drawn.
setFillColor Set fill color.
setLocked
setMapUnitScale
setOutputUnit
setPaintEffect Sets the current paint effect for the layer.
setRenderingPass
setStrokeColor Set stroke color.
setStrokeWidthMapUnitScale
setStrokeWidthUnit Sets the units for the symbol’s stroke width.
setSubSymbol
startRender
stopRender
strokeColor Get stroke color.
strokeWidthMapUnitScale
strokeWidthUnit Returns the units for the symbol’s stroke width.
subSymbol
toSld
type
usedAttributes
writeDxf write as DXF

Attributes

PropertyAngle
PropertyArrowHeadLength
PropertyArrowHeadThickness
PropertyArrowHeadType
PropertyArrowStartWidth
PropertyArrowType
PropertyArrowWidth
PropertyBlurRadius
PropertyCapStyle
PropertyCharacter
PropertyCoordinateMode
PropertyCustomDash
PropertyDisplacementX
PropertyDisplacementY
PropertyDistanceX
PropertyDistanceY
PropertyFile
PropertyFillColor
PropertyFillStyle
PropertyGradientReference1IsCentroid
PropertyGradientReference1X
PropertyGradientReference1Y
PropertyGradientReference2IsCentroid
PropertyGradientReference2X
PropertyGradientReference2Y
PropertyGradientSpread
PropertyGradientType
PropertyHeight
PropertyHorizontalAnchor
PropertyInterval
PropertyJoinStyle
PropertyLayerEnabled
PropertyLineAngle
PropertyLineDistance
PropertyName
PropertyOffset
PropertyOffsetAlongLine
PropertyOpacity
PropertyPlacement
PropertyPreserveAspectRatio
PropertySecondaryColor
PropertyShapeburstIgnoreRings
PropertyShapeburstMaxDistance
PropertyShapeburstUseWholeShape
PropertySize
PropertyStrokeColor
PropertyStrokeStyle
PropertyStrokeWidth
PropertyVerticalAnchor
PropertyWidth
applyDataDefinedSettings(self, context: QgsSymbolRenderContext)
clone(self) → QgsPointPatternFillSymbolLayer
color(self) → QColor
copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
createFromSld(element: QDomElement) → QgsSymbolLayer
displacementX(self) → float
displacementXMapUnitScale(self) → QgsMapUnitScale
displacementXUnit(self) → QgsUnitTypes.RenderUnit

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

displacementY(self) → float
displacementYMapUnitScale(self) → QgsMapUnitScale
displacementYUnit(self) → QgsUnitTypes.RenderUnit

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

distanceX(self) → float
distanceXMapUnitScale(self) → QgsMapUnitScale
distanceXUnit(self) → QgsUnitTypes.RenderUnit

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

See also

distanceYUnit()

distanceY(self) → float
distanceYMapUnitScale(self) → QgsMapUnitScale
distanceYUnit(self) → QgsUnitTypes.RenderUnit

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

See also

distanceXUnit()

estimateMaxBleed(self, context: QgsRenderContext) → float
layerType(self) → str
mapUnitScale(self) → QgsMapUnitScale
outputUnit(self) → QgsUnitTypes.RenderUnit
properties(self) → Dict[str, str]
restoreOldDataDefinedProperties()
setColor(self, c: Union[QColor, Qt.GlobalColor])
setDisplacementX(self, d: float)
setDisplacementXMapUnitScale(self, scale: QgsMapUnitScale)
setDisplacementXUnit(self, unit: QgsUnitTypes.RenderUnit)

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

Parameters:unit – displacement units
setDisplacementY(self, d: float)
setDisplacementYMapUnitScale(self, scale: QgsMapUnitScale)
setDisplacementYUnit(self, unit: QgsUnitTypes.RenderUnit)

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

Parameters:unit – displacement units
setDistanceX(self, d: float)
setDistanceXMapUnitScale(self, scale: QgsMapUnitScale)
setDistanceXUnit(self, unit: QgsUnitTypes.RenderUnit)

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

Parameters:unit – distance units

See also

distanceXUnit()

setDistanceY(self, d: float)
setDistanceYMapUnitScale(self, scale: QgsMapUnitScale)
setDistanceYUnit(self, unit: QgsUnitTypes.RenderUnit)

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

Parameters:unit – distance units

See also

distanceYUnit()

setMapUnitScale(self, scale: QgsMapUnitScale)
setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
setSubSymbol(self, symbol: QgsSymbol) → bool
startRender(self, context: QgsSymbolRenderContext)
stopRender(self, context: QgsSymbolRenderContext)
subSymbol(self) → QgsSymbol
toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
usedAttributes(self, context: QgsRenderContext) → Set[str]