Subgroup: other
Class: QgsCentroidFillSymbolLayer¶
-
class
qgis.core.
QgsCentroidFillSymbolLayer
¶ Bases:
qgis._core.QgsFillSymbolLayer
Methods
angle
clone
color
copyDataDefinedProperties
copyPaintEffect
create
createFromSld
dataDefinedProperties
Returns a reference to the symbol layer’s property collection, used for data defined overrides. drawPreviewIcon
dxfAngle
get angle dxfBrushColor
get brush/fill color dxfBrushStyle
get brush/fill style dxfColor
get color dxfCustomDashPattern
get dash pattern dxfOffset
get offset dxfPenStyle
get pen style dxfWidth
get line width enabled
Returns true if symbol layer is enabled and will be drawn. estimateMaxBleed
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape when drawn in the specified /a context. fillColor
Get fill color. isCompatibleWithSymbol
Returns if the layer can be used below the specified symbol isLocked
layerType
mapUnitScale
ogrFeatureStyle
outputUnit
paintEffect
Returns the current paint effect for the layer. pointOnAllParts
Returns whether a point is drawn for all parts or only on the biggest part of multi-part features. pointOnSurface
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. setEnabled
Sets whether symbol layer is enabled and should be drawn. setFillColor
Set fill color. setLocked
setMapUnitScale
setOutputUnit
setPaintEffect
Sets the current paint effect for the layer. setPointOnAllParts
Sets whether a point is drawn for all parts or only on the biggest part of multi-part features. setPointOnSurface
setRenderingPass
setStrokeColor
Set stroke color. setSubSymbol
startRender
stopRender
strokeColor
Get stroke color. 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
-
clone
(self) → QgsCentroidFillSymbolLayer¶
-
color
(self) → QColor¶
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶
-
createFromSld
(element: QDomElement) → QgsSymbolLayer¶
-
layerType
(self) → str¶
-
mapUnitScale
(self) → QgsMapUnitScale¶
-
outputUnit
(self) → QgsUnitTypes.RenderUnit¶
-
pointOnAllParts
(self) → bool¶ Returns whether a point is drawn for all parts or only on the biggest part of multi-part features.
New in version 2.16.
-
pointOnSurface
(self) → bool¶
-
properties
(self) → Dict[str, str]¶
-
renderPolygon
(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)¶
-
restoreOldDataDefinedProperties
()¶
-
setColor
(self, color: Union[QColor, Qt.GlobalColor])¶
-
setMapUnitScale
(self, scale: QgsMapUnitScale)¶
-
setOutputUnit
(self, unit: QgsUnitTypes.RenderUnit)¶
-
setPointOnAllParts
(self, pointOnAllParts: bool)¶ Sets whether a point is drawn for all parts or only on the biggest part of multi-part features.
New in version 2.16.
-
setPointOnSurface
(self, pointOnSurface: bool)¶
-
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]¶
-