QGIS API Documentation
3.20.0-Odense (decaadbb31)
src
core
symbology
qgslinesymbol.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslinesymbol.h
3
---------------------
4
begin : November 2009
5
copyright : (C) 2009 by Martin Dobias
6
email : wonder dot sk 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 QGSLINESYMBOL_H
17
#define QGSLINESYMBOL_H
18
19
#include "qgis_core.h"
20
#include "
qgis.h
"
21
#include "
qgssymbol.h
"
22
29
class
CORE_EXPORT
QgsLineSymbol
:
public
QgsSymbol
30
{
31
public
:
32
37
static
QgsLineSymbol
*createSimple(
const
QVariantMap &properties )
SIP_FACTORY
;
38
44
QgsLineSymbol
(
const
QgsSymbolLayerList
&layers
SIP_TRANSFER
=
QgsSymbolLayerList
() );
45
52
void
setWidth(
double
width );
53
59
void
setWidthUnit(
QgsUnitTypes::RenderUnit
unit );
60
61
72
double
width()
const
;
73
85
double
width(
const
QgsRenderContext
&context )
const
;
86
92
void
setDataDefinedWidth(
const
QgsProperty
&property );
93
101
QgsProperty
dataDefinedWidth()
const
;
102
115
void
renderPolyline(
const
QPolygonF &points,
const
QgsFeature
*f,
QgsRenderContext
&context,
int
layer = -1,
bool
selected =
false
);
116
117
QgsLineSymbol
*
clone
()
const
override
SIP_FACTORY
;
118
119
private
:
120
121
void
renderPolylineUsingLayer(
QgsLineSymbolLayer
*layer,
const
QPolygonF &points,
QgsSymbolRenderContext
&context );
122
123
};
124
125
126
#endif
// QGSLINESYMBOL_H
127
QgsFeature
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Definition:
qgsfeature.h:56
QgsLineSymbolLayer
Definition:
qgssymbollayer.h:942
QgsLineSymbol
A line symbol type, for rendering LineString and MultiLineString geometries.
Definition:
qgslinesymbol.h:30
QgsProperty
A store for object properties.
Definition:
qgsproperty.h:232
QgsRenderContext
Contains information about the context of a rendering operation.
Definition:
qgsrendercontext.h:58
QgsSymbolRenderContext
Definition:
qgssymbolrendercontext.h:36
QgsSymbol
Abstract base class for all rendered symbols.
Definition:
qgssymbol.h:38
QgsSymbol::clone
virtual QgsSymbol * clone() const =0
Returns a deep copy of this symbol.
QgsUnitTypes::RenderUnit
RenderUnit
Rendering size units.
Definition:
qgsunittypes.h:168
qgis.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
qgssymbol.h
QgsSymbolLayerList
QList< QgsSymbolLayer * > QgsSymbolLayerList
Definition:
qgssymbol.h:27
Generated on Sun Jun 20 2021 10:45:59 for QGIS API Documentation by
1.9.1