17#ifndef QGSNUMERICSCALEBARRENDERER_H
18#define QGSNUMERICSCALEBARRENDERER_H
36 QString
id()
const override;
QgsNumericScaleBarRenderer()=default
void draw(QgsRenderContext &context, const QgsScaleBarSettings &settings, const QgsScaleBarRenderer::ScaleBarContext &scaleContext) const override
Draws the scalebar using the specified settings and scaleContext to a destination render context.
QSizeF calculateBoxSize(QgsRenderContext &context, const QgsScaleBarSettings &settings, const QgsScaleBarRenderer::ScaleBarContext &scaleContext) const override
Calculates the required box size (in millimeters) for a scalebar using the specified settings and sca...
Contains information about the context of a rendering operation.
virtual Flags flags() const
Returns the scalebar rendering flags, which dictates the renderer's behavior.
virtual int sortKey() const
Returns a sorting key value, where renderers with a lower sort key will be shown earlier in lists.
virtual QString visibleName() const =0
Returns the user friendly, translated name for the renderer.
QgsScaleBarRenderer()=default
virtual QgsScaleBarRenderer * clone() const =0
Returns a clone of the renderer.
virtual QString id() const =0
Returns the unique ID for this renderer.
Stores the appearance and layout settings for scalebar drawing with QgsScaleBarRenderer.
Contains parameters regarding scalebar calculations.