QgsNumericScaleBarRenderer class
A scale bar style that draws text in the form of '1:XXXXX'.
Contents
Base classes
- class QgsScaleBarRenderer
- Abstract base class for scale bar renderers.
Constructors, destructors, conversion operators
- QgsNumericScaleBarRenderer() defaulted
- Constructor for QgsNumericScaleBarRenderer.
Public functions
-
auto calculateBoxSize(const QgsScaleBarSettings& settings,
const QgsScaleBarRenderer::
ScaleBarContext& scaleContext) const -> QSizeF override - Calculates the required box size (in millimeters) for a scalebar using the specified settings and scaleContext.
-
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.
- auto name() const -> QString override
- Returns the unique name for this style.