QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
scalebar
qgssteppedlinescalebarrenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssteppedlinescalebarrenderer.h
3
--------------------------------
4
begin : March 2020
5
copyright : (C) 2020 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
/***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSSTEPPEDLINESCALEBARRENDERER_H
18
#define QGSSTEPPEDLINESCALEBARRENDERER_H
19
20
#include "qgis_core.h"
21
#include "
qgsscalebarrenderer.h
"
22
23
#include <QString>
24
31
class
CORE_EXPORT
QgsSteppedLineScaleBarRenderer
:
public
QgsScaleBarRenderer
32
{
33
public
:
34
QgsSteppedLineScaleBarRenderer
() =
default
;
35
36
QString
id
()
const override
;
37
QString
visibleName
()
const override
;
38
int
sortKey
()
const override
;
39
Flags
flags
()
const override
;
40
QgsSteppedLineScaleBarRenderer
*
clone
() const override
SIP_FACTORY
;
41
42
void
draw
(
QgsRenderContext
&context, const
QgsScaleBarSettings
&settings, const
QgsScaleBarRenderer
::
ScaleBarContext
&scaleContext ) const override;
43
};
44
45
#endif
// QGSSTEPPEDLINESCALEBARRENDERER_H
QgsRenderContext
Contains information about the context of a rendering operation.
Definition
qgsrendercontext.h:63
QgsScaleBarRenderer::flags
virtual Flags flags() const
Returns the scalebar rendering flags, which dictates the renderer's behavior.
Definition
qgsscalebarrenderer.cpp:332
QgsScaleBarRenderer::Flags
QFlags< Flag > Flags
Definition
qgsscalebarrenderer.h:63
QgsScaleBarRenderer::sortKey
virtual int sortKey() const
Returns a sorting key value, where renderers with a lower sort key will be shown earlier in lists.
Definition
qgsscalebarrenderer.cpp:337
QgsScaleBarRenderer::visibleName
virtual QString visibleName() const =0
Returns the user friendly, translated name for the renderer.
QgsScaleBarRenderer::QgsScaleBarRenderer
QgsScaleBarRenderer()=default
QgsScaleBarRenderer::clone
virtual QgsScaleBarRenderer * clone() const =0
Returns a clone of the renderer.
QgsScaleBarRenderer::id
virtual QString id() const =0
Returns the unique ID for this renderer.
QgsScaleBarSettings
Stores the appearance and layout settings for scalebar drawing with QgsScaleBarRenderer.
Definition
qgsscalebarsettings.h:40
QgsSteppedLineScaleBarRenderer::draw
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.
Definition
qgssteppedlinescalebarrenderer.cpp:63
QgsSteppedLineScaleBarRenderer::QgsSteppedLineScaleBarRenderer
QgsSteppedLineScaleBarRenderer()=default
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgsscalebarrenderer.h
QgsScaleBarRenderer::ScaleBarContext
Contains parameters regarding scalebar calculations.
Definition
qgsscalebarrenderer.h:70
Generated on
for QGIS API Documentation by
1.17.0