Class: QgsPointPatternFillSymbolLayer¶
- class qgis.core.QgsPointPatternFillSymbolLayer¶
Bases:
QgsImageFillSymbolLayer
Methods
Returns
True
if the image brush should be transformed using the render context's texture origin.- param context:
- rtype:
QgsPointPatternFillSymbolLayer
- rtype:
QColor
Copies all data defined properties of this layer to another symbol layer.
Copies paint effect of this layer to another symbol layer
Creates a new
QgsPointPatternFillSymbolLayer
using the specifiedproperties
map containing symbol properties (seeproperties()
).- param element:
- rtype:
float
- rtype:
QgsMapUnitScale
Returns the units for the horizontal displacement between rows in the pattern.
- rtype:
float
- rtype:
QgsMapUnitScale
Returns the units for the vertical displacement between rows in the pattern.
- rtype:
float
- rtype:
QgsMapUnitScale
Returns the units for the horizontal distance between points in the pattern.
- rtype:
float
- rtype:
QgsMapUnitScale
Returns the units for the vertical distance between points in the pattern.
- param context:
- rtype:
bool
- rtype:
str
- rtype:
QgsMapUnitScale
Returns the horizontal offset values for points in the pattern.
Returns the unit scale for the horizontal offset for rows in the pattern.
Returns the units for the horizontal offset for rows in the pattern.
Returns the vertical offset values for points in the pattern.
Returns the unit scale for the vertical offset between rows in the pattern.
Returns the units for the vertical offset for rows in the pattern.
- rtype:
QgsUnitTypes.RenderUnit
- rtype:
Dict[str, Any]
- param points:
Restores older data defined properties from string map.
- param c:
- param d:
- param scale:
Sets the units for the horizontal displacement between rows in the pattern.
- param d:
- param scale:
Sets the units for the vertical displacement between rows in the pattern.
- param d:
- param scale:
Sets the units for the horizontal distance between points in the pattern.
- param d:
- param scale:
Sets the units for the vertical distance between points in the pattern.
- param scale:
Sets the horizontal offset values for points in the pattern.
Sets the unit scale for the horizontal offset for rows in the pattern.
Sets the units for the horizontal offset between rows in the pattern.
Sets the vertical offset values for points in the pattern.
Sets the unit scale for the vertical offset for rows in the pattern.
Sets the units for the vertical offset for rows in the pattern.
- param unit:
- param symbol:
- param context:
- param context:
- rtype:
QgsSymbol
- param doc:
- param context:
- rtype:
bool
- applyBrushTransformFromContext(self) bool ¶
Returns
True
if the image brush should be transformed using the render context’s texture origin.New in version 3.16.
- applyDataDefinedSettings(self, context: QgsSymbolRenderContext)¶
- Parameters:
context (QgsSymbolRenderContext) –
- clone(self) QgsPointPatternFillSymbolLayer ¶
- Return type:
- color(self) QColor ¶
- Return type:
QColor
- copyDataDefinedProperties(self, destLayer: QgsSymbolLayer)¶
Copies all data defined properties of this layer to another symbol layer.
- Parameters:
destLayer – destination layer
- copyPaintEffect(self, destLayer: QgsSymbolLayer)¶
Copies paint effect of this layer to another symbol layer
- Parameters:
destLayer – destination layer
New in version 2.9.
- create(properties: Dict[str, Any] = {}) QgsSymbolLayer ¶
Creates a new
QgsPointPatternFillSymbolLayer
using the specifiedproperties
map containing symbol properties (seeproperties()
).Caller takes ownership of the returned symbol layer.
- Parameters:
properties (Dict[str) –
- Return type:
- createFromSld(element: QDomElement) QgsSymbolLayer ¶
- Parameters:
element (QDomElement) –
- Return type:
- displacementX(self) float ¶
- Return type:
float
- displacementXMapUnitScale(self) QgsMapUnitScale ¶
- Return type:
- displacementXUnit(self) QgsUnitTypes.RenderUnit ¶
Returns the units for the horizontal displacement between rows in the pattern.
See also
See also
- Return type:
- displacementY(self) float ¶
- Return type:
float
- displacementYMapUnitScale(self) QgsMapUnitScale ¶
- Return type:
- displacementYUnit(self) QgsUnitTypes.RenderUnit ¶
Returns the units for the vertical displacement between rows in the pattern.
See also
See also
- Return type:
- distanceX(self) float ¶
- Return type:
float
- distanceXMapUnitScale(self) QgsMapUnitScale ¶
- Return type:
- distanceXUnit(self) QgsUnitTypes.RenderUnit ¶
Returns the units for the horizontal distance between points in the pattern.
See also
See also
- Return type:
- distanceY(self) float ¶
- Return type:
float
- distanceYMapUnitScale(self) QgsMapUnitScale ¶
- Return type:
- distanceYUnit(self) QgsUnitTypes.RenderUnit ¶
Returns the units for the vertical distance between points in the pattern.
See also
See also
- Return type:
- 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:
- offsetX(self) float ¶
Returns the horizontal offset values for points in the pattern.
See also
See also
New in version 3.8.
- Return type:
float
- offsetXMapUnitScale(self) QgsMapUnitScale ¶
Returns the unit scale for the horizontal offset for rows in the pattern.
See also
See also
New in version 3.8.
- Return type:
- offsetXUnit(self) QgsUnitTypes.RenderUnit ¶
Returns the units for the horizontal offset for rows in the pattern.
See also
See also
New in version 3.8.
- Return type:
- offsetY(self) float ¶
Returns the vertical offset values for points in the pattern.
See also
See also
New in version 3.8.
- Return type:
float
- offsetYMapUnitScale(self) QgsMapUnitScale ¶
Returns the unit scale for the vertical offset between rows in the pattern.
See also
See also
New in version 3.8.
- Return type:
- offsetYUnit(self) QgsUnitTypes.RenderUnit ¶
Returns the units for the vertical offset for rows in the pattern.
See also
See also
New in version 3.8.
- Return type:
- outputUnit(self) QgsUnitTypes.RenderUnit ¶
- Return type:
- properties(self) Dict[str, Any] ¶
- Return type:
Dict[str, Any]
- renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)¶
- Parameters:
points (QPolygonF) –
rings (Iterable[QPolygonF]) –
context (QgsSymbolRenderContext) –
- restoreOldDataDefinedProperties(self, stringMap: Dict[str, Any])¶
Restores older data defined properties from string map.
New in version 3.0.
- setColor(self, c: 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
See also
See also
- 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
See also
See also
- 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
See also
- 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
See also
- setMapUnitScale(self, scale: QgsMapUnitScale)¶
- Parameters:
scale (QgsMapUnitScale) –
- setOffsetX(self, offset: float)¶
Sets the horizontal offset values for points in the pattern.
- Parameters:
offset (float) – offset value
See also
See also
New in version 3.8.
- setOffsetXMapUnitScale(self, scale: QgsMapUnitScale)¶
Sets the unit scale for the horizontal offset for rows in the pattern.
- Parameters:
scale (QgsMapUnitScale) – offset unit scale
See also
See also
New in version 3.8.
- setOffsetXUnit(self, unit: QgsUnitTypes.RenderUnit)¶
Sets the units for the horizontal offset between rows in the pattern.
- Parameters:
unit (QgsUnitTypes.RenderUnit) – offset units
See also
See also
New in version 3.8.
- setOffsetY(self, offset: float)¶
Sets the vertical offset values for points in the pattern.
- Parameters:
offset (float) – offset value
See also
See also
New in version 3.8.
- setOffsetYMapUnitScale(self, scale: QgsMapUnitScale)¶
Sets the unit scale for the vertical offset for rows in the pattern.
- Parameters:
scale (QgsMapUnitScale) – offset unit scale
See also
See also
New in version 3.8.
- setOffsetYUnit(self, unit: QgsUnitTypes.RenderUnit)¶
Sets the units for the vertical offset for rows in the pattern.
- Parameters:
unit (QgsUnitTypes.RenderUnit) – offset units
See also
See also
New in version 3.8.
- setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)¶
- Parameters:
unit (QgsUnitTypes.RenderUnit) –
- startRender(self, context: QgsSymbolRenderContext)¶
- Parameters:
context (QgsSymbolRenderContext) –
- stopRender(self, context: QgsSymbolRenderContext)¶
- Parameters:
context (QgsSymbolRenderContext) –
- toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, Any])¶
- Parameters:
doc (QDomDocument) –
element (QDomElement) –
props (Dict[str) –
- usedAttributes(self, context: QgsRenderContext) Set[str] ¶
- Parameters:
context (QgsRenderContext) –
- Return type:
Set[str]
- usesMapUnits(self) bool ¶
- Return type:
bool