QGIS API Documentation
3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
src
core
symbology
qgsmarkersymbol.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmarkersymbol.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 QGSMARKERSYMBOL_H
17
#define QGSMARKERSYMBOL_H
18
19
#include "qgis_core.h"
20
#include "
qgssymbol.h
"
21
22
class
QgsMarkerSymbolLayer
;
23
30
class
CORE_EXPORT
QgsMarkerSymbol
:
public
QgsSymbol
31
{
32
public
:
33
38
static
QgsMarkerSymbol
*createSimple(
const
QVariantMap &properties )
SIP_FACTORY
;
39
45
QgsMarkerSymbol
(
const
QgsSymbolLayerList
&layers
SIP_TRANSFER
=
QgsSymbolLayerList
() );
46
53
void
setAngle(
double
symbolAngle )
const
;
54
61
double
angle()
const
;
62
67
void
setDataDefinedAngle(
const
QgsProperty
&property );
68
75
QgsProperty
dataDefinedAngle()
const
;
76
83
void
setLineAngle(
double
lineAngle )
const
;
84
93
void
setSize(
double
size )
const
;
94
107
double
size()
const
;
108
122
double
size(
const
QgsRenderContext
&context )
const
;
123
131
void
setSizeUnit(
Qgis::RenderUnit
unit )
const
;
132
140
Qgis::RenderUnit
sizeUnit()
const
;
141
149
void
setSizeMapUnitScale(
const
QgsMapUnitScale
&scale )
const
;
150
159
QgsMapUnitScale
sizeMapUnitScale()
const
;
160
165
void
setDataDefinedSize(
const
QgsProperty
&property )
const
;
166
173
QgsProperty
dataDefinedSize()
const
;
174
180
void
setScaleMethod(
Qgis::ScaleMethod
scaleMethod )
const
;
181
186
Qgis::ScaleMethod
scaleMethod()
const
;
187
200
void
renderPoint( QPointF point,
const
QgsFeature
*f,
QgsRenderContext
&context,
int
layer = -1,
bool
selected =
false
);
201
212
QRectF bounds( QPointF point,
QgsRenderContext
&context,
const
QgsFeature
&feature =
QgsFeature
() )
const
;
213
214
QgsMarkerSymbol
*
clone
()
const
override
SIP_FACTORY
;
215
216
private
:
217
218
void
renderPointUsingLayer(
QgsMarkerSymbolLayer
*layer, QPointF point,
QgsSymbolRenderContext
&context );
219
220
};
221
222
223
#endif
// QGSMARKERSYMBOL_H
Qgis::ScaleMethod
ScaleMethod
Scale methods.
Definition
qgis.h:588
Qgis::RenderUnit
RenderUnit
Rendering size units.
Definition
qgis.h:4892
QgsFeature
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Definition
qgsfeature.h:58
QgsMapUnitScale
Struct for storing maximum and minimum scales for measurements in map units.
Definition
qgsmapunitscale.h:37
QgsMarkerSymbolLayer
Abstract base class for marker symbol layers.
Definition
qgssymbollayer.h:765
QgsMarkerSymbol
A marker symbol type, for rendering Point and MultiPoint geometries.
Definition
qgsmarkersymbol.h:31
QgsProperty
A store for object properties.
Definition
qgsproperty.h:228
QgsRenderContext
Contains information about the context of a rendering operation.
Definition
qgsrendercontext.h:62
QgsSymbolRenderContext
Definition
qgssymbolrendercontext.h:34
QgsSymbol
Abstract base class for all rendered symbols.
Definition
qgssymbol.h:231
QgsSymbol::clone
virtual QgsSymbol * clone() const =0
Returns a deep copy of this symbol.
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:30
Generated on Sun Dec 15 2024 01:32:01 for QGIS API Documentation by
1.9.8