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
Enums
Methods
Returns the units for the fill’s offset.
Sets the units for the fill’s offset.
Sets the units for the width of the fill’s stroke.
Returns the units for the width of the fill’s stroke.
Signals
Attributes
-
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])¶
-