QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
symbology
qgsfillsymbol.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsfillsymbol.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 QGSFILLSYMBOL_H
17
#define QGSFILLSYMBOL_H
18
19
#include "
qgis.h
"
20
#include "qgis_core.h"
21
#include "
qgssymbol.h
"
22
29
class
CORE_EXPORT
QgsFillSymbol
:
public
QgsSymbol
30
{
31
public
:
36
static
std::unique_ptr< QgsFillSymbol >
createSimple
(
const
QVariantMap &properties );
37
43
QgsFillSymbol
(
const
QgsSymbolLayerList
&layers
SIP_TRANSFER
=
QgsSymbolLayerList
() );
44
void
setAngle
(
double
angle )
const
;
45
61
void
renderPolygon
(
const
QPolygonF &points,
const
QVector<QPolygonF> *rings,
const
QgsFeature
*f,
QgsRenderContext
&context,
int
layer
= -1,
bool
selected =
false
);
62
63
QgsFillSymbol
*
clone
()
const
override
SIP_FACTORY
;
64
65
private
:
66
void
renderPolygonUsingLayer(
QgsSymbolLayer
*
layer
,
const
QPolygonF &points,
const
QVector<QPolygonF> *rings,
QgsSymbolRenderContext
&context )
const
;
68
QRectF polygonBounds(
const
QPolygonF &points,
const
QVector<QPolygonF> *rings )
const
;
70
QVector<QPolygonF> *translateRings(
const
QVector<QPolygonF> *rings,
double
dx,
double
dy )
const
;
71
};
72
73
#endif
// QGSFILLSYMBOL_H
QgsFeature
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Definition
qgsfeature.h:60
QgsFillSymbol::setAngle
void setAngle(double angle) const
Definition
qgsfillsymbol.cpp:152
QgsFillSymbol::createSimple
static std::unique_ptr< QgsFillSymbol > createSimple(const QVariantMap &properties)
Create a fill symbol with one symbol layer: SimpleFill with specified properties.
Definition
qgsfillsymbol.cpp:21
QgsFillSymbol::QgsFillSymbol
QgsFillSymbol(const QgsSymbolLayerList &layers=QgsSymbolLayerList())
Constructor for QgsFillSymbol, with the specified list of initial symbol layers.
Definition
qgsfillsymbol.cpp:33
QgsFillSymbol::renderPolygon
void renderPolygon(const QPolygonF &points, const QVector< QPolygonF > *rings, const QgsFeature *f, QgsRenderContext &context, int layer=-1, bool selected=false)
Renders the symbol using the given render context.
Definition
qgsfillsymbol.cpp:40
QgsRenderContext
Contains information about the context of a rendering operation.
Definition
qgsrendercontext.h:63
QgsSymbolLayer
Abstract base class for symbol layers.
Definition
qgssymbollayer.h:58
QgsSymbolRenderContext
Encapsulates the context in which a symbol is being rendered.
Definition
qgssymbolrendercontext.h:35
QgsSymbol::clone
virtual QgsSymbol * clone() const =0
Returns a deep copy of this symbol.
QgsSymbol::layer
Q_DECL_DEPRECATED const QgsVectorLayer * layer() const
Definition
qgssymbol.cpp:1527
QgsSymbol::QgsSymbol
QgsSymbol(Qgis::SymbolType type, const QgsSymbolLayerList &layers)
Constructor for a QgsSymbol of the specified type.
Definition
qgssymbol.cpp:161
qgis.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:35
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgssymbol.h
QgsSymbolLayerList
QList< QgsSymbolLayer * > QgsSymbolLayerList
Definition
qgssymbol.h:30
Generated on
for QGIS API Documentation by
1.17.0