Subgroup: other
Class: QgsFilledMarkerSymbolLayer¶
-
class
qgis.core.
QgsFilledMarkerSymbolLayer
¶ Bases:
qgis._core.QgsSimpleMarkerSymbolLayerBase
Filled marker symbol layer, consisting of a shape which is rendered using a
QgsFillSymbol
. This allows the symbol to support advanced styling of the interior and stroke of the shape.New in version 2.16: Methods
angle
Returns the rotation angle for the marker, in degrees clockwise from north. availableShapes
Returns a list of all available shape types. bounds
calculateOffsetAndRotation
calculateSize
clone
color
copyDataDefinedProperties
copyPaintEffect
create
Creates a new QgsFilledMarkerSymbolLayer. dataDefinedProperties
Returns a reference to the symbol layer’s property collection, used for data defined overrides. decodeShape
Attempts to decode a string representation of a shape name to the corresponding shape. draw
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. encodeShape
Encodes a shape to its string representation. estimateMaxBleed
fillColor
Get fill color. horizontalAnchorPoint
Returns the horizontal anchor point for positioning the symbol. isCompatibleWithSymbol
Returns if the layer can be used below the specified symbol isLocked
layerType
mapUnitScale
markerOffset
markerOffset2
markerOffsetWithWidthAndHeight
offset
Returns the marker’s offset, which is the horizontal and vertical displacement which the rendered marker will have from the original feature’s geometry. offsetMapUnitScale
Returns the map unit scale for the symbol’s offset. offsetUnit
Returns the units for the symbol’s offset. ogrFeatureStyle
outputUnit
paintEffect
Returns the current paint effect for the layer. prepareExpressions
Prepares all data defined property expressions for evaluation. prepareMarkerPath
prepareMarkerShape
properties
propertyDefinitions
Returns the symbol layer property definitions. renderPoint
renderingPass
restoreOldDataDefinedProperties
scaleMethod
Returns the method to use for scaling the marker’s size. setAngle
Sets the rotation angle for the marker. 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. setHorizontalAnchorPoint
Sets the horizontal anchor point for positioning the symbol. setLineAngle
Sets the line angle modification for the symbol’s angle. setLocked
setMapUnitScale
setOffset
Sets the marker’s offset, which is the horizontal and vertical displacement which the rendered marker should have from the original feature’s geometry. setOffsetMapUnitScale
Sets the map unit scale for the symbol’s offset. setOffsetUnit
Sets the units for the symbol’s offset. setOutputUnit
setPaintEffect
Sets the current paint effect for the layer. setRenderingPass
setScaleMethod
Sets the method to use for scaling the marker’s size. setShape
Sets the rendered marker shape. setSize
Sets the symbol size. setSizeMapUnitScale
Sets the map unit scale for the symbol’s size. setSizeUnit
Sets the units for the symbol’s size. setStrokeColor
Set stroke color. setSubSymbol
setVerticalAnchorPoint
Sets the vertical anchor point for positioning the symbol. shape
Returns the shape for the rendered marker symbol. shapeIsFilled
Returns true if a symbol shape has a fill. shapeToPolygon
size
Returns the symbol size. sizeMapUnitScale
Returns the map unit scale for the symbol’s size. sizeUnit
Returns the units for the symbol’s size. startRender
stopRender
strokeColor
Get stroke color. subSymbol
toSld
type
usedAttributes
verticalAnchorPoint
Returns the vertical anchor point for positioning the symbol. writeDxf
write as DXF writeSldMarker
Writes the symbol layer definition as a SLD XML element. Attributes
Arrow
ArrowHead
ArrowHeadFilled
Bottom
Circle
Cross
Cross2
CrossFill
DiagonalHalfSquare
Diamond
EquilateralTriangle
HCenter
HalfSquare
Hexagon
Left
LeftHalfTriangle
Line
Pentagon
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
QuarterCircle
QuarterSquare
Right
RightHalfTriangle
SemiCircle
Square
Star
ThirdCircle
Top
Triangle
VCenter
-
calculateOffsetAndRotation
()¶
-
calculateSize
()¶
-
clone
(self) → QgsFilledMarkerSymbolLayer¶
-
color
(self) → QColor¶
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶ Creates a new QgsFilledMarkerSymbolLayer.
Parameters: properties – a property map containing symbol properties (see properties()) Returns: new QgsFilledMarkerSymbolLayer
-
draw
()¶
-
estimateMaxBleed
(self, context: QgsRenderContext) → float¶
-
layerType
(self) → str¶
-
markerOffset
()¶
-
markerOffset2
()¶
-
markerOffsetWithWidthAndHeight
()¶
-
prepareMarkerPath
()¶
-
prepareMarkerShape
()¶
-
properties
(self) → Dict[str, str]¶
-
restoreOldDataDefinedProperties
()¶
-
setColor
(self, c: Union[QColor, Qt.GlobalColor])¶
-
setSubSymbol
(self, symbol: QgsSymbol) → bool¶
-
shapeToPolygon
()¶
-
startRender
(self, context: QgsSymbolRenderContext)¶
-
stopRender
(self, context: QgsSymbolRenderContext)¶
-
subSymbol
(self) → QgsSymbol¶
-
usedAttributes
(self, context: QgsRenderContext) → Set[str]¶
-