|
| QgsDataDefinedSizeLegend () |
| Constructor for QgsDataDefinedSizeLegend. More...
|
|
| QgsDataDefinedSizeLegend (const QgsDataDefinedSizeLegend &other) |
| Copy constructor. More...
|
|
| ~QgsDataDefinedSizeLegend () |
|
QList< QgsDataDefinedSizeLegend::SizeClass > | classes () const |
| Returns list of classes: each class is a pair of symbol size (in units used by the symbol) and label. More...
|
|
QImage | collapsedLegendImage (QgsRenderContext &context, const QColor &backgroundColor=Qt::transparent, double paddingMM=1) const |
| Returns output image that would be shown in the legend. Returns invalid image if legend is not configured as collapsed. More...
|
|
void | drawCollapsedLegend (QgsRenderContext &context, QSizeF *outputSize SIP_OUT=nullptr, double *labelXOffset SIP_OUT=nullptr) const |
| Draw the legend if using LegendOneNodeForAll and optionally output size of the legend and x offset of labels (in painter units). More...
|
|
QFont | font () const |
| Returns font used for rendering of labels - only valid for collapsed legend. More...
|
|
QgsLegendSymbolList | legendSymbolList () const |
| Generates legend symbol items according to the configuration. More...
|
|
LegendType | legendType () const |
| Returns how the legend should be rendered. More...
|
|
QgsLineSymbol * | lineSymbol () const |
| Returns the line symbol that will be used to draw callout lines in legend. More...
|
|
QgsDataDefinedSizeLegend & | operator= (const QgsDataDefinedSizeLegend &other) |
|
void | setClasses (const QList< QgsDataDefinedSizeLegend::SizeClass > &classes) |
| Sets list of classes: each class is a pair of symbol size (in units used by the symbol) and label. More...
|
|
void | setFont (const QFont &font) |
| Sets font used for rendering of labels - only valid for collapsed legend. More...
|
|
void | setLegendType (LegendType type) |
| Sets how the legend should be rendered. More...
|
|
void | setLineSymbol (QgsLineSymbol *symbol SIP_TRANSFER) |
| Sets the line symbol that will be used to draw callout lines in legend. More...
|
|
void | setSizeScaleTransformer (QgsSizeScaleTransformer *transformer SIP_TRANSFER) |
| Sets transformer for scaling of symbol sizes. Takes ownership of the object. Accepts nullptr to set no transformer. More...
|
|
void | setSymbol (QgsMarkerSymbol *symbol SIP_TRANSFER) |
| Sets marker symbol that will be used to draw markers in legend. More...
|
|
void | setTextAlignment (Qt::AlignmentFlag flag) |
| Sets horizontal text alignment for rendering of labels - only valid for collapsed legend. More...
|
|
void | setTextColor (const QColor &color) |
| Sets text color for rendering of labels - only valid for collapsed legend. More...
|
|
void | setTitle (const QString &title) |
| Sets title label for data-defined size legend. More...
|
|
void | setVerticalAlignment (VerticalAlignment vAlign) |
| Sets vertical alignment of symbols - only valid for collapsed legend. More...
|
|
QgsSizeScaleTransformer * | sizeScaleTransformer () const |
| Returns transformer for scaling of symbol sizes. Returns nullptr if no transformer is defined. More...
|
|
QgsMarkerSymbol * | symbol () const |
| Returns marker symbol that will be used to draw markers in legend. More...
|
|
Qt::AlignmentFlag | textAlignment () const |
| Returns horizontal text alignment for rendering of labels - only valid for collapsed legend. More...
|
|
QColor | textColor () const |
| Returns text color for rendering of labels - only valid for collapsed legend. More...
|
|
QString | title () const |
| Returns title label for data-defined size legend. More...
|
|
void | updateFromSymbolAndProperty (const QgsMarkerSymbol *symbol, const QgsProperty &ddSize) |
| Updates the list of classes, source symbol and title label from given symbol and property. More...
|
|
VerticalAlignment | verticalAlignment () const |
| Returns vertical alignment of symbols - only valid for collapsed legend. More...
|
|
void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const |
| Writes configuration to the given XML element. More...
|
|