Class: QgsLinePatternFillSymbolLayer¶
-
class
qgis.core.
QgsLinePatternFillSymbolLayer
¶ Bases:
qgis._core.QgsImageFillSymbolLayer
A symbol fill consisting of repeated parallel lines.
Enums
Methods
Creates a new QgsLinePatternFillSymbolLayer from a
properties
map.Creates a new QgsLinePatternFillSymbolLayer from a SLD
element
.Returns the distance between lines in the fill pattern.
Returns the map unit scale for the pattern’s line distance.
Returns the units for the distance between lines in the fill pattern.
Returns the angle for the parallel lines used to fill the symbol.
Returns the width of the line subsymbol used to render the parallel lines in the fill.
Returns the map unit scale for the pattern’s line width.
Returns the units for the line’s width.
Returns the offset distance for lines within the fill, which is the distance to offset the parallel lines from their normal position.
Returns the map unit scale for the pattern’s line offset.
Returns the units for the line pattern’s offset.
Sets the distance between lines in the fill pattern.
Sets the map unit
scale
for the pattern’s line distance.Sets the
unit
for the distance between lines in the fill pattern.Sets the angle for the parallel lines used to fill the symbol.
Sets the width of the line subsymbol used to render the parallel lines in the fill.
Sets the map unit
scale
for the pattern’s line width.Sets the
unit
for the line’s width.Sets the
offset
distance for lines within the fill, which is the distance to offset the parallel lines from their normal position.Sets the map unit
scale
for the pattern’s line offset.Sets the
unit
for the line pattern’s offset.Signals
Attributes
-
applyDataDefinedSettings
(self, context: QgsSymbolRenderContext)¶
-
clone
(self) → QgsLinePatternFillSymbolLayer¶
-
color
(self) → QColor¶
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶ Creates a new QgsLinePatternFillSymbolLayer from a
properties
map. The caller takes ownership of the returned object.
-
createFromSld
(element: QDomElement) → QgsSymbolLayer¶ Creates a new QgsLinePatternFillSymbolLayer from a SLD
element
. The caller takes ownership of the returned object.
-
distance
(self) → float¶ Returns the distance between lines in the fill pattern. Units are retrieved by distanceUnit().
See also
See also
-
distanceMapUnitScale
(self) → QgsMapUnitScale¶ Returns the map unit scale for the pattern’s line distance.
See also
See also
See also
-
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¶
-
hasDataDefinedProperties
(self) → bool¶
-
layerType
(self) → str¶
-
lineAngle
(self) → float¶ Returns the angle for the parallel lines used to fill the symbol.
Angles are in degrees, clockwise from North.
See also
-
lineWidth
(self) → float¶ Returns the width of the line subsymbol used to render the parallel lines in the fill.
See also
-
lineWidthMapUnitScale
(self) → QgsMapUnitScale¶ Returns the map unit scale for the pattern’s line width.
See also
See also
See also
-
lineWidthUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the units for the line’s width.
See also
-
mapUnitScale
(self) → QgsMapUnitScale¶
-
offset
(self) → float¶ Returns the offset distance for lines within the fill, which is the distance to offset the parallel lines from their normal position.
Units are retrieved via offsetUnit().
See also
See also
See also
-
offsetMapUnitScale
(self) → QgsMapUnitScale¶ Returns the map unit scale for the pattern’s line offset.
See also
See also
See also
-
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)¶ Sets the map unit
scale
for the pattern’s line distance.See also
See also
See also
-
setDistanceUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the
unit
for the distance between lines in the fill pattern.See also
See also
-
setLineAngle
(self, a: float)¶ Sets the angle for the parallel lines used to fill the symbol.
Angles are in degrees, clockwise from North.
See also
-
setLineWidth
(self, w: float)¶ Sets the width of the line subsymbol used to render the parallel lines in the fill.
See also
-
setLineWidthMapUnitScale
(self, scale: QgsMapUnitScale)¶ Sets the map unit
scale
for the pattern’s line width.See also
See also
See also
-
setLineWidthUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the
unit
for the line’s width.See also
-
setMapUnitScale
(self, scale: QgsMapUnitScale)¶
-
setOffset
(self, offset: float)¶ Sets the
offset
distance for lines within the fill, which is the distance to offset the parallel lines from their normal position.Units are specified via setOffsetUnit().
See also
See also
See also
-
setOffsetMapUnitScale
(self, scale: QgsMapUnitScale)¶ Sets the map unit
scale
for the pattern’s line offset.See also
See also
See also
-
setOffsetUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the
unit
for the line pattern’s offset.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]¶
-