Class: QgsCentroidFillSymbolLayer¶
A fill symbol layer which renders a marker symbol at the centroid of a polygon geometry.
Class Hierarchy¶
Base classes¶
Abstract base class for fill symbol layers.  | 
|
Constructor for QgsSymbolLayer.  | 
Methods
Returns   | 
|
Returns   | 
|
Returns whether a point is drawn for all parts or only on the biggest part of multi-part features.  | 
|
Sets whether point markers should be clipped to the current part boundary only.  | 
|
Sets whether point markers should be clipped to the polygon boundary.  | 
|
Sets whether a point is drawn for all parts or only on the biggest part of multi-part features.  | 
|
Static Methods
Creates a new   | 
|
- class qgis.core.QgsCentroidFillSymbolLayer[source]¶
 Bases:
QgsFillSymbolLayer- clipOnCurrentPartOnly(self) bool[source]¶
 Returns
Trueif point markers should be clipped to the current part boundary only.See also
Added in version 3.14.
- Return type:
 bool
- clipPoints(self) bool[source]¶
 Returns
Trueif point markers should be clipped to the polygon boundary.See also
Added in version 3.14.
- Return type:
 bool
- static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None[source]¶
 Creates a new
QgsCentroidFillSymbolLayerusing the specifiedpropertiesmap containing symbol properties (seeproperties()).Caller takes ownership of the returned symbol layer.
- Parameters:
 properties (Dict[str, Any] = {})
- Return type:
 Optional[QgsSymbolLayer]
- static createFromSld(element: QDomElement) QgsSymbolLayer | None[source]¶
 - Parameters:
 element (QDomElement)
- Return type:
 Optional[QgsSymbolLayer]
- pointOnAllParts(self) bool[source]¶
 Returns whether a point is drawn for all parts or only on the biggest part of multi-part features.
See also
- Return type:
 bool
- setClipOnCurrentPartOnly(self, clipOnCurrentPartOnly: bool)[source]¶
 Sets whether point markers should be
clippedto the current part boundary only.See also
Added in version 3.14.
- Parameters:
 clipOnCurrentPartOnly (bool)
- setClipPoints(self, clipPoints: bool)[source]¶
 Sets whether point markers should be
clippedto the polygon boundary.See also
Added in version 3.14.
- Parameters:
 clipPoints (bool)