Subgroup: Simple
Class: QgsSimpleFillSymbolLayer¶
-
class
qgis.core.
QgsSimpleFillSymbolLayer
(color: Union[QColor, Qt.GlobalColor] = DEFAULT_SIMPLEFILL_COLOR, style: Qt.BrushStyle = DEFAULT_SIMPLEFILL_STYLE, strokeColor: Union[QColor, Qt.GlobalColor] = DEFAULT_SIMPLEFILL_BORDERCOLOR, strokeStyle: Qt.PenStyle = DEFAULT_SIMPLEFILL_BORDERSTYLE, strokeWidth: float = DEFAULT_SIMPLEFILL_BORDERWIDTH, penJoinStyle: Qt.PenJoinStyle = DEFAULT_SIMPLEFILL_JOINSTYLE)¶ Bases:
qgis._core.QgsFillSymbolLayer
QgsSimpleFillSymbolLayer(QgsSimpleFillSymbolLayer)
Methods
angle
brushStyle
clone
color
The fill color. copyDataDefinedProperties
copyPaintEffect
create
createFromSld
dataDefinedProperties
Returns a reference to the symbol layer’s property collection, used for data defined overrides. drawPreviewIcon
dxfAngle
dxfBrushColor
dxfBrushStyle
dxfColor
dxfCustomDashPattern
get dash pattern dxfOffset
get offset dxfPenStyle
dxfWidth
enabled
Returns true if symbol layer is enabled and will be drawn. estimateMaxBleed
fillColor
isCompatibleWithSymbol
Returns if the layer can be used below the specified symbol isLocked
layerType
mapUnitScale
offset
offsetMapUnitScale
offsetUnit
Returns the units for the fill’s offset. ogrFeatureStyle
outputUnit
paintEffect
Returns the current paint effect for the layer. penJoinStyle
prepareExpressions
Prepares all data defined property expressions for evaluation. properties
propertyDefinitions
Returns the symbol layer property definitions. renderPolygon
renderingPass
restoreOldDataDefinedProperties
setAngle
setBrushStyle
setColor
The fill color. setDataDefinedProperties
Sets the symbol layer’s property collection, used for data defined overrides. setDataDefinedProperty
Sets a data defined property for the layer. setEnabled
Sets whether symbol layer is enabled and should be drawn. setFillColor
setLocked
setMapUnitScale
setOffset
setOffsetMapUnitScale
setOffsetUnit
Sets the units for the fill’s offset. setOutputUnit
setPaintEffect
Sets the current paint effect for the layer. setPenJoinStyle
setRenderingPass
setStrokeColor
setStrokeStyle
setStrokeWidth
setStrokeWidthMapUnitScale
setStrokeWidthUnit
Sets the units for the width of the fill’s stroke. setSubSymbol
set layer’s subsymbol. takes ownership of the passed symbol startRender
stopRender
strokeColor
strokeStyle
strokeWidth
strokeWidthMapUnitScale
strokeWidthUnit
Returns the units for the width of the fill’s stroke. subSymbol
Returns the symbol’s sub symbol, if present. toSld
type
usedAttributes
Returns the set of attributes referenced by the layer. 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
-
brushStyle
(self) → Qt.BrushStyle¶
-
clone
(self) → QgsSimpleFillSymbolLayer¶
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶
-
createFromSld
(element: QDomElement) → QgsSymbolLayer¶
-
dxfAngle
(self, context: QgsSymbolRenderContext) → float¶
-
dxfBrushColor
(self, context: QgsSymbolRenderContext) → QColor¶
-
dxfBrushStyle
(self) → Qt.BrushStyle¶
-
dxfColor
(self, context: QgsSymbolRenderContext) → QColor¶
-
dxfPenStyle
(self) → Qt.PenStyle¶
-
dxfWidth
(self, e: QgsDxfExport, context: QgsSymbolRenderContext) → float¶
-
estimateMaxBleed
(self, context: QgsRenderContext) → float¶
-
fillColor
(self) → QColor¶
-
layerType
(self) → str¶
-
mapUnitScale
(self) → QgsMapUnitScale¶
-
offset
(self) → QPointF¶
-
offsetMapUnitScale
(self) → QgsMapUnitScale¶
-
offsetUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the units for the fill’s offset.
See also
-
ogrFeatureStyle
(self, mmScaleFactor: float, mapUnitScaleFactor: float) → str¶
-
outputUnit
(self) → QgsUnitTypes.RenderUnit¶
-
penJoinStyle
(self) → Qt.PenJoinStyle¶
-
properties
(self) → Dict[str, str]¶
-
renderPolygon
(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)¶
-
restoreOldDataDefinedProperties
()¶
-
setBrushStyle
(self, style: Qt.BrushStyle)¶
-
setFillColor
(self, color: Union[QColor, Qt.GlobalColor])¶
-
setMapUnitScale
(self, scale: QgsMapUnitScale)¶
-
setOffset
(self, offset: Union[QPointF, QPoint])¶
-
setOffsetMapUnitScale
(self, scale: QgsMapUnitScale)¶
-
setOffsetUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the units for the fill’s offset.
Parameters: unit – offset units See also
-
setOutputUnit
(self, unit: QgsUnitTypes.RenderUnit)¶
-
setPenJoinStyle
(self, style: Qt.PenJoinStyle)¶
-
setStrokeColor
(self, strokeColor: Union[QColor, Qt.GlobalColor])¶
-
setStrokeStyle
(self, strokeStyle: Qt.PenStyle)¶
-
setStrokeWidth
(self, strokeWidth: float)¶
-
setStrokeWidthMapUnitScale
(self, scale: QgsMapUnitScale)¶
-
setStrokeWidthUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the units for the width of the fill’s stroke.
Parameters: unit – width units See also
-
startRender
(self, context: QgsSymbolRenderContext)¶
-
stopRender
(self, context: QgsSymbolRenderContext)¶
-
strokeColor
(self) → QColor¶
-
strokeStyle
(self) → Qt.PenStyle¶
-
strokeWidth
(self) → float¶
-
strokeWidthMapUnitScale
(self) → QgsMapUnitScale¶
-
strokeWidthUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the units for the width of the fill’s stroke.
See also
-
toSld
(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])¶
-