Subgroup: Line
Class: QgsLinePatternFillSymbolLayer¶
-
class
qgis.core.
QgsLinePatternFillSymbolLayer
¶ Bases:
qgis._core.QgsImageFillSymbolLayer
Methods
angle
applyDataDefinedSettings
Offset perpendicular to line direction clone
color
copyDataDefinedProperties
copyPaintEffect
create
createFromSld
dataDefinedProperties
Returns a reference to the symbol layer’s property collection, used for data defined overrides. distance
Returns the distance between lines in the fill pattern. distanceMapUnitScale
distanceUnit
Returns the units for the distance between lines in the fill 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
lineAngle
lineWidth
lineWidthMapUnitScale
lineWidthUnit
Returns the units for the line’s width. mapUnitScale
offset
offsetMapUnitScale
offsetUnit
Returns the units for the line pattern’s offset. ogrFeatureStyle
ogrFeatureStyleWidth
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. setDistance
Sets the distance between lines in the fill pattern. setDistanceMapUnitScale
setDistanceUnit
Sets the units for the distance between lines in the fill pattern. setEnabled
Sets whether symbol layer is enabled and should be drawn. setFillColor
Set fill color. setLineAngle
setLineWidth
setLineWidthMapUnitScale
setLineWidthUnit
Sets the units for the line’s width. setLocked
setMapUnitScale
setOffset
setOffsetMapUnitScale
setOffsetUnit
Sets the units for the line pattern’s offset. 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)¶ Offset perpendicular to line direction
-
clone
(self) → QgsLinePatternFillSymbolLayer¶
-
color
(self) → QColor¶
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶
-
createFromSld
(element: QDomElement) → QgsSymbolLayer¶
-
distance
(self) → float¶ Returns the distance between lines in the fill pattern. Units are retrieved by distanceUnit().
See also
See also
-
distanceMapUnitScale
(self) → QgsMapUnitScale¶
-
distanceUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the units for the distance between lines in the fill pattern.
See also
See also
-
estimateMaxBleed
(self, context: QgsRenderContext) → float¶
-
layerType
(self) → str¶
-
lineAngle
(self) → float¶
-
lineWidth
(self) → float¶
-
lineWidthMapUnitScale
(self) → QgsMapUnitScale¶
-
lineWidthUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the units for the line’s width.
See also
-
mapUnitScale
(self) → QgsMapUnitScale¶
-
offset
(self) → float¶
-
offsetMapUnitScale
(self) → QgsMapUnitScale¶
-
offsetUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the units for the line pattern’s offset.
See also
-
ogrFeatureStyleWidth
(self, widthScaleFactor: float) → str¶
-
outputUnit
(self) → QgsUnitTypes.RenderUnit¶
-
properties
(self) → Dict[str, str]¶
-
restoreOldDataDefinedProperties
()¶
-
setColor
(self, c: Union[QColor, Qt.GlobalColor])¶
-
setDistance
(self, d: float)¶ Sets the distance between lines in the fill pattern.
Parameters: d – distance. Units are specified by setDistanceUnit() See also
See also
-
setDistanceMapUnitScale
(self, scale: QgsMapUnitScale)¶
-
setDistanceUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the units for the distance between lines in the fill pattern.
Parameters: unit – distance units See also
See also
-
setLineAngle
(self, a: float)¶
-
setLineWidth
(self, w: float)¶
-
setLineWidthMapUnitScale
(self, scale: QgsMapUnitScale)¶
-
setLineWidthUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the units for the line’s width.
Parameters: unit – width units See also
-
setMapUnitScale
(self, scale: QgsMapUnitScale)¶
-
setOffset
(self, offset: float)¶
-
setOffsetMapUnitScale
(self, scale: QgsMapUnitScale)¶
-
setOffsetUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the units for the line pattern’s offset.
Parameters: unit – offset units See also
-
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]¶
-