QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
scalebar
qgsdoubleboxscalebarrenderer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsdoubleboxscalebarrenderer.h
3
------------------------------
4
begin : June 2008
5
copyright : (C) 2008 by Marco Hugentobler
6
email : marco.hugentobler@karto.baug.ethz.ch
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 QGSDOUBLEBOXSCALEBARRENDERER_H
18
#define QGSDOUBLEBOXSCALEBARRENDERER_H
19
20
#include "qgis_core.h"
21
#include "
qgsscalebarrenderer.h
"
22
#include <QString>
23
30
class
CORE_EXPORT
QgsDoubleBoxScaleBarRenderer
:
public
QgsScaleBarRenderer
31
{
32
public
:
33
37
QgsDoubleBoxScaleBarRenderer
() =
default
;
38
39
QString
id
()
const override
;
40
QString
visibleName
()
const override
;
41
Flags
flags
()
const override
;
42
int
sortKey
()
const override
;
43
QgsDoubleBoxScaleBarRenderer
*
clone
() const override
SIP_FACTORY
;
44
45
void
draw(
QgsRenderContext
&context,
46
const
QgsScaleBarSettings
&settings,
47
const
QgsScaleBarRenderer
::
ScaleBarContext
&scaleContext ) const override;
48
49
};
50
51
#endif // QGSDOUBLEBOXSCALEBARRENDERER_H
QgsScaleBarRenderer::id
virtual QString id() const =0
Returns the unique ID for this renderer.
QgsScaleBarRenderer::ScaleBarContext
Contains parameters regarding scalebar calculations.
Definition:
qgsscalebarrenderer.h:71
QgsScaleBarRenderer::clone
virtual QgsScaleBarRenderer * clone() const =0
Returns a clone of the renderer.
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:58
qgsscalebarrenderer.h
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsDoubleBoxScaleBarRenderer
Double box with alternating colors.
Definition:
qgsdoubleboxscalebarrenderer.h:31
QgsScaleBarSettings
The QgsScaleBarSettings class stores the appearance and layout settings for scalebar drawing with Qgs...
Definition:
qgsscalebarsettings.h:41
QgsScaleBarRenderer
Abstract base class for scale bar renderers.
Definition:
qgsscalebarrenderer.h:39
QgsScaleBarRenderer::visibleName
virtual QString visibleName() const =0
Returns the user friendly, translated name for the renderer.
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:170
QgsDoubleBoxScaleBarRenderer::QgsDoubleBoxScaleBarRenderer
QgsDoubleBoxScaleBarRenderer()=default
Constructor for QgsDoubleBoxScaleBarRenderer.
QgsScaleBarRenderer::flags
virtual Flags flags() const
Returns the scalebar rendering flags, which dictates the renderer's behavior.
Definition:
qgsscalebarrenderer.cpp:165
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20