QGIS API Documentation
3.24.2-Tisler (13c1a02865)
src
core
scalebar
qgssingleboxscalebarrenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssingleboxscalebarrenderer.h
3
------------------------------
4
begin : June 2008
5
copyright : (C) 2008 by Marco Hugentobler
6
email :
[email protected]
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 QGSSINGLEBOXSCALEBARRENDERER_H
18
#define QGSSINGLEBOXSCALEBARRENDERER_H
19
20
#include "qgis_core.h"
21
#include "
qgsscalebarrenderer.h
"
22
#include <QString>
23
31
class
CORE_EXPORT
QgsSingleBoxScaleBarRenderer
:
public
QgsScaleBarRenderer
32
{
33
public
:
34
38
QgsSingleBoxScaleBarRenderer
() =
default
;
39
40
QString
id
()
const override
;
41
QString
visibleName
()
const override
;
42
int
sortKey
()
const override
;
43
Flags
flags
()
const override
;
44
QgsSingleBoxScaleBarRenderer
*
clone
() const override
SIP_FACTORY
;
45
46
void
draw(
QgsRenderContext
&context,
47
const
QgsScaleBarSettings
&settings,
48
const
QgsScaleBarRenderer
::
ScaleBarContext
&scaleContext ) const override;
49
50
};
51
52
#endif
// QGSSINGLEBOXSCALEBARRENDERER_H
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:59
QgsScaleBarRenderer
Abstract base class for scale bar renderers.
Definition:
qgsscalebarrenderer.h:39
QgsScaleBarRenderer::flags
virtual Flags flags() const
Returns the scalebar rendering flags, which dictates the renderer's behavior.
Definition:
qgsscalebarrenderer.cpp:158
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:163
QgsScaleBarRenderer::clone
virtual QgsScaleBarRenderer * clone() const =0
Returns a clone of the renderer.
QgsScaleBarRenderer::visibleName
virtual QString visibleName() const =0
Returns the user friendly, translated name for the renderer.
QgsScaleBarRenderer::id
virtual QString id() const =0
Returns the unique ID for this renderer.
QgsScaleBarSettings
The QgsScaleBarSettings class stores the appearance and layout settings for scalebar drawing with Qgs...
Definition:
qgsscalebarsettings.h:41
QgsSingleBoxScaleBarRenderer
Scalebar style that draws a single box with alternating color for the segments.
Definition:
qgssingleboxscalebarrenderer.h:32
QgsSingleBoxScaleBarRenderer::QgsSingleBoxScaleBarRenderer
QgsSingleBoxScaleBarRenderer()=default
Constructor for QgsSingleBoxScaleBarRenderer.
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
qgsscalebarrenderer.h
QgsScaleBarRenderer::ScaleBarContext
Contains parameters regarding scalebar calculations.
Definition:
qgsscalebarrenderer.h:71
Generated on Fri Apr 29 2022 19:08:16 for QGIS API Documentation by
1.9.1