QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
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
b
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
x
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
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
symbology
qgsmapinfosymbolconverter.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmapinfosymbolconverter.h
3
--------------------------------------
4
Date : March 2021
5
Copyright : (C) 2021 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
16
#ifndef QGSMAPINFOSYMBOLCONVERTER_H
17
#define QGSMAPINFOSYMBOLCONVERTER_H
18
19
#include "qgis_core.h"
20
#include "
qgis_sip.h
"
21
#include "
qgsunittypes.h
"
22
#include <QStringList>
23
#include <QColor>
24
25
class
QgsLineSymbol
;
26
class
QgsFillSymbol
;
27
class
QgsMarkerSymbol
;
28
35
class
CORE_EXPORT
QgsMapInfoSymbolConversionContext
36
{
37
public
:
38
42
void
pushWarning(
const
QString &warning );
43
47
QStringList
warnings
()
const
{
return
mWarnings; }
48
52
void
clearWarnings
() { mWarnings.clear(); }
53
54
private
:
55
56
QStringList mWarnings;
57
58
};
59
66
class
CORE_EXPORT
QgsMapInfoSymbolConverter
67
{
68
public
:
69
75
static
QgsLineSymbol
*convertLineSymbol(
int
identifier,
QgsMapInfoSymbolConversionContext
&context,
const
QColor &foreColor,
double
size,
QgsUnitTypes::RenderUnit
sizeUnit,
bool
interleaved =
false
)
SIP_FACTORY
;
76
82
static
QgsFillSymbol
*convertFillSymbol(
int
identifier,
QgsMapInfoSymbolConversionContext
&context,
const
QColor &foreColor,
const
QColor &backColor = QColor() )
SIP_FACTORY
;
83
91
static
QgsMarkerSymbol
*convertMarkerSymbol(
int
identifier,
QgsMapInfoSymbolConversionContext
&context,
const
QColor &color,
double
size,
QgsUnitTypes::RenderUnit
sizeUnit )
SIP_FACTORY
;
92
93
};
94
95
#endif
// QGSMAPINFOSYMBOLCONVERTER_H
QgsFillSymbol
A fill symbol type, for rendering Polygon and MultiPolygon geometries.
Definition:
qgsfillsymbol.h:30
QgsLineSymbol
A line symbol type, for rendering LineString and MultiLineString geometries.
Definition:
qgslinesymbol.h:30
QgsMapInfoSymbolConversionContext
Context for a MapInfo symbol conversion operation.
Definition:
qgsmapinfosymbolconverter.h:36
QgsMapInfoSymbolConversionContext::warnings
QStringList warnings() const
Returns a list of warning messages generated during the conversion.
Definition:
qgsmapinfosymbolconverter.h:47
QgsMapInfoSymbolConversionContext::clearWarnings
void clearWarnings()
Clears the list of warning messages.
Definition:
qgsmapinfosymbolconverter.h:52
QgsMapInfoSymbolConverter
Handles conversion of MapInfo symbols to QGIS symbology.
Definition:
qgsmapinfosymbolconverter.h:67
QgsMarkerSymbol
A marker symbol type, for rendering Point and MultiPoint geometries.
Definition:
qgsmarkersymbol.h:31
QgsUnitTypes::RenderUnit
RenderUnit
Rendering size units.
Definition:
qgsunittypes.h:168
qgis_sip.h
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
qgsunittypes.h
Generated on Thu Feb 24 2022 10:41:09 for QGIS API Documentation by
1.9.1