QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
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
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
gui
symbology
qgssymbolwidgetcontext.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssymbolwidgetcontext.h
3
------------------------
4
begin : September 2016
5
copyright : (C) 2016 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
#ifndef QGSSYMBOLWIDGETCONTEXT_H
16
#define QGSSYMBOLWIDGETCONTEXT_H
17
18
#include <memory>
19
20
#include "
qgsexpressioncontext.h
"
21
#include "
qgssymbol.h
"
22
#include "qgis_gui.h"
23
24
25
class
QgsMapCanvas
;
26
class
QgsMessageBar
;
27
36
class
GUI_EXPORT
QgsSymbolWidgetContext
// clazy:exclude=rule-of-three
37
{
38
public
:
39
43
QgsSymbolWidgetContext
() =
default
;
44
49
QgsSymbolWidgetContext
(
const
QgsSymbolWidgetContext
&other );
50
51
QgsSymbolWidgetContext
&operator=(
const
QgsSymbolWidgetContext
&other );
52
59
void
setMapCanvas(
QgsMapCanvas
*canvas );
60
65
QgsMapCanvas
*mapCanvas()
const
;
66
73
void
setMessageBar(
QgsMessageBar
*bar );
74
80
QgsMessageBar
*messageBar()
const
;
81
90
void
setExpressionContext(
QgsExpressionContext
*context );
91
98
QgsExpressionContext
*expressionContext()
const
;
99
105
void
setAdditionalExpressionContextScopes(
const
QList< QgsExpressionContextScope > &scopes );
106
111
QList< QgsExpressionContextScope > additionalExpressionContextScopes()
const
;
112
118
QList<QgsExpressionContextScope *> globalProjectAtlasMapLayerScopes(
const
QgsMapLayer
*layer )
const
SIP_FACTORY
;
119
127
QgsSymbol::SymbolType
symbolType()
const
;
128
136
void
setSymbolType(
QgsSymbol::SymbolType
type );
137
138
private
:
139
140
QgsMapCanvas
*mMapCanvas =
nullptr
;
141
QgsMessageBar
*mMessageBar =
nullptr
;
142
std::unique_ptr< QgsExpressionContext > mExpressionContext;
143
QList< QgsExpressionContextScope > mAdditionalScopes;
144
QgsSymbol::SymbolType
mSymbolType =
QgsSymbol::Hybrid
;
145
146
};
147
148
#endif
// QGSSYMBOLWIDGETCONTEXT_H
QgsExpressionContext
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Definition:
qgsexpressioncontext.h:370
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition:
qgsmapcanvas.h:86
QgsMapLayer
Base class for all map layer types.
Definition:
qgsmaplayer.h:85
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition:
qgsmessagebar.h:61
QgsSymbolWidgetContext
Contains settings which reflect the context in which a symbol (or renderer) widget is shown,...
Definition:
qgssymbolwidgetcontext.h:37
QgsSymbolWidgetContext::QgsSymbolWidgetContext
QgsSymbolWidgetContext()=default
Constructor for QgsSymbolWidgetContext.
QgsSymbol::SymbolType
SymbolType
Type of the symbol.
Definition:
qgssymbol.h:87
QgsSymbol::Hybrid
@ Hybrid
Hybrid symbol.
Definition:
qgssymbol.h:91
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
qgsexpressioncontext.h
qgssymbol.h
Generated on Sun Mar 21 2021 09:16:51 for QGIS API Documentation by
1.9.1