Subgroup: other
Class: QgsLinearlyInterpolatedDiagramRenderer¶
-
class
qgis.core.
QgsLinearlyInterpolatedDiagramRenderer
¶ Bases:
qgis._core.QgsDiagramRenderer
QgsLinearlyInterpolatedDiagramRenderer(other: QgsLinearlyInterpolatedDiagramRenderer) Copy constructor
Methods
attributeLegend
Returns true if renderer will show legend items for diagram attributes. classificationAttributeExpression
classificationAttributeIsExpression
classificationField
Returns the field name used for interpolating the diagram size. clone
convertSizeToMapUnits
dataDefinedSizeLegend
Returns configuration of appearance of legend. diagram
diagramAttributes
diagramSettings
Returns list with all diagram settings in the renderer diagramSize
dpiPaintDevice
legendItems
lowerSize
lowerValue
readXml
referencedFields
renderDiagram
Renders the diagram for a specified feature at a specific position in the passed render context. rendererName
setAttributeLegend
Sets whether the renderer will show legend items for diagram attributes. setClassificationAttributeExpression
setClassificationAttributeIsExpression
setClassificationField
Sets the field name used for interpolating the diagram size. setDataDefinedSizeLegend
Configures appearance of legend. setDiagram
setDiagramSettings
setLowerSize
setLowerValue
setUpperSize
setUpperValue
sizeMapUnits
Returns size of the diagram for a feature in map units. upperSize
upperValue
writeXml
Attributes
-
classificationAttributeExpression
(self) → str¶
-
classificationAttributeIsExpression
(self) → bool¶
-
classificationField
(self) → str¶ Returns the field name used for interpolating the diagram size.
See also
New in version 3.0.
-
clone
(self) → QgsLinearlyInterpolatedDiagramRenderer¶
-
convertSizeToMapUnits
()¶
-
dataDefinedSizeLegend
(self) → QgsDataDefinedSizeLegend¶ Returns configuration of appearance of legend. Will return null if no configuration has been set.
New in version 3.0.
-
diagramAttributes
(self) → List[str]¶
-
diagramSettings
(self) → List[QgsDiagramSettings]¶ Returns list with all diagram settings in the renderer
diagramSettings(self, feature: QgsFeature, c: QgsRenderContext, s: QgsDiagramSettings) -> bool
-
diagramSize
(self, a0: QgsFeature, c: QgsRenderContext) → QSizeF¶
-
dpiPaintDevice
()¶
-
legendItems
(self, nodeLayer: QgsLayerTreeLayer) → List[QgsLayerTreeModelLegendNode]¶
-
lowerSize
(self) → QSizeF¶
-
lowerValue
(self) → float¶
-
readXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶
-
referencedFields
(self, context: QgsExpressionContext = QgsExpressionContext()) → Set[str]¶
-
rendererName
(self) → str¶
-
setClassificationAttributeExpression
(self, expression: str)¶
-
setClassificationAttributeIsExpression
(self, isExpression: bool)¶
-
setClassificationField
(self, field: str)¶ Sets the field name used for interpolating the diagram size.
See also
New in version 3.0.
-
setDataDefinedSizeLegend
(self, settings: QgsDataDefinedSizeLegend)¶ Configures appearance of legend. Takes ownership of the passed settings objects.
New in version 3.0.
-
setDiagramSettings
(self, s: QgsDiagramSettings)¶
-
setLowerSize
(self, s: QSizeF)¶
-
setLowerValue
(self, val: float)¶
-
setUpperSize
(self, s: QSizeF)¶
-
setUpperValue
(self, val: float)¶
-
upperSize
(self) → QSizeF¶
-
upperValue
(self) → float¶
-
writeXml
(self, layerElem: QDomElement, doc: QDomDocument, context: QgsReadWriteContext)¶
-