QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
QgsSymbolLayerV2 Class Referenceabstract

#include <qgssymbollayerv2.h>

Inheritance diagram for QgsSymbolLayerV2:
Inheritance graph
[legend]

Public Member Functions

virtual ~QgsSymbolLayerV2 ()
 
virtual QgsSymbolLayerV2clone () const =0
 Shall be reimplemented by subclasses to create a deep copy of the instance. More...
 
virtual QColor color () const
 The fill color. More...
 
virtual Q_DECL_DEPRECATED const QgsExpressiondataDefinedProperty (const QString &property) const
 Returns a data defined expression for a property, if set. More...
 
virtual Q_DECL_DEPRECATED QString dataDefinedPropertyString (const QString &property) const
 Returns a data defined expression for a property, if set. More...
 
virtual void drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size)=0
 
virtual double dxfAngle (QgsSymbolV2RenderContext &context) const
 get angle More...
 
virtual QColor dxfBrushColor (QgsSymbolV2RenderContext &context) const
 get brush/fill color More...
 
virtual Qt::BrushStyle dxfBrushStyle () const
 get brush/fill style More...
 
virtual QColor dxfColor (QgsSymbolV2RenderContext &context) const
 get color More...
 
virtual QVector< qreal > dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) const
 get dash pattern More...
 
virtual double dxfOffset (const QgsDxfExport &e, QgsSymbolV2RenderContext &context) const
 get offset More...
 
virtual Qt::PenStyle dxfPenStyle () const
 get pen style More...
 
virtual double dxfWidth (const QgsDxfExport &e, QgsSymbolV2RenderContext &context) const
 get line width More...
 
virtual double estimateMaxBleed () const
 Returns the estimated maximum distance which the layer style will bleed outside the drawn shape. More...
 
virtual Q_DECL_DEPRECATED QVariant evaluateDataDefinedProperty (const QString &property, const QgsFeature *feature, const QVariant &defaultVal=QVariant(), bool *ok=nullptr) const
 Evaluates the matching data defined property and returns the calculated value. More...
 
virtual QVariant evaluateDataDefinedProperty (const QString &property, const QgsSymbolV2RenderContext &context, const QVariant &defaultVal=QVariant(), bool *ok=nullptr) const
 Evaluates the matching data defined property and returns the calculated value. More...
 
virtual QColor fillColor () const
 Get fill color. More...
 
virtual QgsDataDefinedgetDataDefinedProperty (const QString &property) const
 Returns the data defined property corresponding to the specified property key. More...
 
virtual bool hasDataDefinedProperties () const
 Checks whether the layer has any associated data defined properties. More...
 
virtual bool hasDataDefinedProperty (const QString &property) const
 Checks whether the layer has a matching data defined property and if that property is currently actived. More...
 
virtual bool isCompatibleWithSymbol (QgsSymbolV2 *symbol) const
 Returns if the layer can be used below the specified symbol. More...
 
bool isLocked () const
 
virtual QString layerType () const =0
 Returns a string that represents this layer type. More...
 
virtual QgsMapUnitScale mapUnitScale () const
 
virtual QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
 
virtual QColor outlineColor () const
 Get outline color. More...
 
virtual QgsSymbolV2::OutputUnit outputUnit () const
 
QgsPaintEffectpaintEffect () const
 Returns the current paint effect for the layer. More...
 
virtual QgsStringMap properties () const =0
 Should be reimplemented by subclasses to return a string map that contains the configuration information for the symbol layer. More...
 
virtual void removeDataDefinedProperties ()
 Removes all data defined properties from the layer and deletes associated objects. More...
 
virtual void removeDataDefinedProperty (const QString &property)
 Removes a data defined property from the layer. More...
 
int renderingPass () const
 
virtual void setColor (const QColor &color)
 The fill color. More...
 
virtual Q_DECL_DEPRECATED void setDataDefinedProperty (const QString &property, const QString &expressionString)
 Sets a data defined expression for a property. More...
 
virtual void setDataDefinedProperty (const QString &property, QgsDataDefined *dataDefined)
 Sets a data defined property for the layer. More...
 
virtual void setFillColor (const QColor &color)
 Set fill color. More...
 
void setLocked (bool locked)
 
virtual void setMapUnitScale (const QgsMapUnitScale &scale)
 
virtual void setOutlineColor (const QColor &color)
 Set outline color. More...
 
virtual void setOutputUnit (QgsSymbolV2::OutputUnit unit)
 
void setPaintEffect (QgsPaintEffect *effect)
 Sets the current paint effect for the layer. More...
 
void setRenderingPass (int renderingPass)
 
virtual bool setSubSymbol (QgsSymbolV2 *symbol)
 set layer's subsymbol. takes ownership of the passed symbol More...
 
virtual void startRender (QgsSymbolV2RenderContext &context)=0
 
virtual void stopRender (QgsSymbolV2RenderContext &context)=0
 
virtual QgsSymbolV2subSymbol ()
 
virtual void toSld (QDomDocument &doc, QDomElement &element, const QgsStringMap &props) const
 Writes the SLD element following the SLD v1.1 specs. More...
 
QgsSymbolV2::SymbolType type () const
 
virtual QSet< QStringusedAttributes () const
 Returns the set of attributes referenced by the layer. More...
 
virtual bool writeDxf (QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolV2RenderContext &context, QPointF shift=QPointF(0.0, 0.0)) const
 write as DXF More...
 

Protected Member Functions

 QgsSymbolLayerV2 (QgsSymbolV2::SymbolType type, bool locked=false)
 
void copyDataDefinedProperties (QgsSymbolLayerV2 *destLayer) const
 Copies all data defined properties of this layer to another symbol layer. More...
 
void copyPaintEffect (QgsSymbolLayerV2 *destLayer) const
 Copies paint effect of this layer to another symbol layer. More...
 
virtual Q_DECL_DEPRECATED QgsExpressionexpression (const QString &property) const
 Returns the data defined expression associated with a property. More...
 
virtual Q_DECL_DEPRECATED void prepareExpressions (const QgsFields *fields, double scale=-1.0)
 Prepares all data defined property expressions for evaluation. More...
 
virtual void prepareExpressions (const QgsSymbolV2RenderContext &context)
 Prepares all data defined property expressions for evaluation. More...
 
void restoreDataDefinedProperties (const QgsStringMap &stringMap)
 Restores all data defined properties from string map. More...
 
void saveDataDefinedProperties (QgsStringMap &stringMap) const
 Saves all data defined properties to a string map. More...
 

Protected Attributes

QColor mColor
 
QMap< QString, QgsDataDefined *> mDataDefinedProperties
 
QgsFields mFields
 
bool mLocked
 
QgsPaintEffectmPaintEffect
 
int mRenderingPass
 
QgsSymbolV2::SymbolType mType
 

Static Protected Attributes

static const QString EXPR_ALPHA
 
static const QString EXPR_ANGLE
 
static const QString EXPR_BLUR_RADIUS
 
static const QString EXPR_BORDER_COLOR
 
static const QString EXPR_BORDER_STYLE
 
static const QString EXPR_CAPSTYLE
 
static const QString EXPR_CHAR
 
static const QString EXPR_COLOR
 
static const QString EXPR_COLOR2
 
static const QString EXPR_COLOR_BORDER
 
static const QString EXPR_COORDINATE_MODE
 
static const QString EXPR_CUSTOMDASH
 
static const QString EXPR_DISPLACEMENT_X
 
static const QString EXPR_DISPLACEMENT_Y
 
static const QString EXPR_DISTANCE
 
static const QString EXPR_DISTANCE_X
 
static const QString EXPR_DISTANCE_Y
 
static const QString EXPR_FILE
 
static const QString EXPR_FILL
 
static const QString EXPR_FILL_COLOR
 
static const QString EXPR_FILL_STYLE
 
static const QString EXPR_GRADIENT_TYPE
 
static const QString EXPR_HEIGHT
 
static const QString EXPR_HORIZONTAL_ANCHOR_POINT
 
static const QString EXPR_IGNORE_RINGS
 
static const QString EXPR_INTERVAL
 
static const QString EXPR_JOIN_STYLE
 
static const QString EXPR_JOINSTYLE
 
static const QString EXPR_LINE_STYLE
 
static const QString EXPR_LINEANGLE
 
static const QString EXPR_LINEWIDTH
 
static const QString EXPR_MAX_DISTANCE
 
static const QString EXPR_NAME
 
static const QString EXPR_OFFSET
 
static const QString EXPR_OFFSET_ALONG_LINE
 
static const QString EXPR_OUTLINE
 
static const QString EXPR_OUTLINE_COLOR
 
static const QString EXPR_OUTLINE_STYLE
 
static const QString EXPR_OUTLINE_WIDTH
 
static const QString EXPR_PLACEMENT
 
static const QString EXPR_REFERENCE1_ISCENTROID
 
static const QString EXPR_REFERENCE1_X
 
static const QString EXPR_REFERENCE1_Y
 
static const QString EXPR_REFERENCE2_ISCENTROID
 
static const QString EXPR_REFERENCE2_X
 
static const QString EXPR_REFERENCE2_Y
 
static const QString EXPR_ROTATION
 
static const QString EXPR_SIZE
 
static const QString EXPR_SPREAD
 
static const QString EXPR_SVG_FILE
 
static const QString EXPR_SVG_FILL_COLOR
 
static const QString EXPR_SVG_OUTLINE_COLOR
 
static const QString EXPR_SVG_OUTLINE_WIDTH
 
static const QString EXPR_SYMBOL_NAME
 
static const QString EXPR_USE_WHOLE_SHAPE
 
static const QString EXPR_VERTICAL_ANCHOR_POINT
 
static const QString EXPR_WIDTH
 
static const QString EXPR_WIDTH_BORDER
 
static const bool selectFillBorder = false
 
static const bool selectFillStyle = false
 
static const bool selectionIsOpaque = true
 

Detailed Description

Definition at line 50 of file qgssymbollayerv2.h.

Constructor & Destructor Documentation

◆ ~QgsSymbolLayerV2()

QgsSymbolLayerV2::~QgsSymbolLayerV2 ( )
virtual

Definition at line 394 of file qgssymbollayerv2.cpp.

◆ QgsSymbolLayerV2()

QgsSymbolLayerV2::QgsSymbolLayerV2 ( QgsSymbolV2::SymbolType  type,
bool  locked = false 
)
protected

Definition at line 328 of file qgssymbollayerv2.cpp.

Member Function Documentation

◆ clone()

virtual QgsSymbolLayerV2* QgsSymbolLayerV2::clone ( ) const
pure virtual

◆ color()

virtual QColor QgsSymbolLayerV2::color ( ) const
inlinevirtual

◆ copyDataDefinedProperties()

void QgsSymbolLayerV2::copyDataDefinedProperties ( QgsSymbolLayerV2 destLayer) const
protected

Copies all data defined properties of this layer to another symbol layer.

Parameters
destLayerdestination layer

Definition at line 464 of file qgssymbollayerv2.cpp.

◆ copyPaintEffect()

void QgsSymbolLayerV2::copyPaintEffect ( QgsSymbolLayerV2 destLayer) const
protected

Copies paint effect of this layer to another symbol layer.

Parameters
destLayerdestination layer
Note
added in QGIS 2.9

Definition at line 481 of file qgssymbollayerv2.cpp.

◆ dataDefinedProperty()

const QgsExpression * QgsSymbolLayerV2::dataDefinedProperty ( const QString property) const
virtual

Returns a data defined expression for a property, if set.

Deprecated:
use getDataDefinedProperty instead

Definition at line 93 of file qgssymbollayerv2.cpp.

◆ dataDefinedPropertyString()

QString QgsSymbolLayerV2::dataDefinedPropertyString ( const QString property) const
virtual

Returns a data defined expression for a property, if set.

Deprecated:
use getDataDefinedProperty instead

Definition at line 119 of file qgssymbollayerv2.cpp.

◆ drawPreviewIcon()

virtual void QgsSymbolLayerV2::drawPreviewIcon ( QgsSymbolV2RenderContext context,
QSize  size 
)
pure virtual

◆ dxfAngle()

double QgsSymbolLayerV2::dxfAngle ( QgsSymbolV2RenderContext context) const
virtual

get angle

Reimplemented in QgsSimpleFillSymbolLayerV2.

Definition at line 289 of file qgssymbollayerv2.cpp.

◆ dxfBrushColor()

QColor QgsSymbolLayerV2::dxfBrushColor ( QgsSymbolV2RenderContext context) const
virtual

get brush/fill color

Reimplemented in QgsSimpleFillSymbolLayerV2.

Definition at line 306 of file qgssymbollayerv2.cpp.

◆ dxfBrushStyle()

Qt::BrushStyle QgsSymbolLayerV2::dxfBrushStyle ( ) const
virtual

get brush/fill style

Reimplemented in QgsSimpleFillSymbolLayerV2.

Definition at line 312 of file qgssymbollayerv2.cpp.

◆ dxfColor()

QColor QgsSymbolLayerV2::dxfColor ( QgsSymbolV2RenderContext context) const
virtual

get color

Reimplemented in QgsImageFillSymbolLayer, QgsSimpleFillSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.

Definition at line 283 of file qgssymbollayerv2.cpp.

◆ dxfCustomDashPattern()

QVector< qreal > QgsSymbolLayerV2::dxfCustomDashPattern ( QgsSymbolV2::OutputUnit unit) const
virtual

get dash pattern

Reimplemented in QgsSimpleLineSymbolLayerV2.

Definition at line 295 of file qgssymbollayerv2.cpp.

◆ dxfOffset()

double QgsSymbolLayerV2::dxfOffset ( const QgsDxfExport e,
QgsSymbolV2RenderContext context 
) const
virtual

get offset

Reimplemented in QgsSimpleLineSymbolLayerV2.

Definition at line 276 of file qgssymbollayerv2.cpp.

◆ dxfPenStyle()

Qt::PenStyle QgsSymbolLayerV2::dxfPenStyle ( ) const
virtual

get pen style

Reimplemented in QgsImageFillSymbolLayer, QgsSimpleFillSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.

Definition at line 301 of file qgssymbollayerv2.cpp.

◆ dxfWidth()

double QgsSymbolLayerV2::dxfWidth ( const QgsDxfExport e,
QgsSymbolV2RenderContext context 
) const
virtual

◆ estimateMaxBleed()

virtual double QgsSymbolLayerV2::estimateMaxBleed ( ) const
inlinevirtual

Returns the estimated maximum distance which the layer style will bleed outside the drawn shape.

Eg, polygons drawn with an outline will draw half the width of the outline outside of the polygon. This amount is estimated, since it may be affected by data defined symbology rules.

Reimplemented in QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsRasterFillSymbolLayer, QgsImageFillSymbolLayer, QgsFilledMarkerSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.

Definition at line 126 of file qgssymbollayerv2.h.

◆ evaluateDataDefinedProperty() [1/2]

QVariant QgsSymbolLayerV2::evaluateDataDefinedProperty ( const QString property,
const QgsFeature feature,
const QVariant defaultVal = QVariant(),
bool *  ok = nullptr 
) const
virtual

Evaluates the matching data defined property and returns the calculated value.

Prior to evaluation the data defined property must be prepared by calling prepareExpressions.

Parameters
propertyproperty key
featurepointer to the feature to use during expression or field evaluation
defaultValdefault value to return if evaluation was not successful
okif specified, will be set to true if evaluation was successful
Returns
calculated value for data defined property, or default value if property does not exist or is deactived.
See also
hasDataDefinedProperty
getDataDefinedProperty
Note
added in QGIS 2.9
Deprecated:
use variant which takes QgsSymbolV2RenderContext instead

Definition at line 176 of file qgssymbollayerv2.cpp.

◆ evaluateDataDefinedProperty() [2/2]

QVariant QgsSymbolLayerV2::evaluateDataDefinedProperty ( const QString property,
const QgsSymbolV2RenderContext context,
const QVariant defaultVal = QVariant(),
bool *  ok = nullptr 
) const
virtual

Evaluates the matching data defined property and returns the calculated value.

Prior to evaluation the data defined property must be prepared by calling prepareExpressions.

Parameters
propertyproperty key
contextsymbol render context
defaultValdefault value to return if evaluation was not successful
okif specified, will be set to true if evaluation was successful
Returns
calculated value for data defined property, or default value if property does not exist or is deactived.
See also
hasDataDefinedProperty
getDataDefinedProperty
Note
added in QGIS 2.12

Definition at line 218 of file qgssymbollayerv2.cpp.

◆ expression()

QgsExpression * QgsSymbolLayerV2::expression ( const QString property) const
protectedvirtual

Returns the data defined expression associated with a property.

Deprecated:
use getDataDefinedProperty or evaluateDataDefinedProperty instead

Definition at line 113 of file qgssymbollayerv2.cpp.

◆ fillColor()

virtual QColor QgsSymbolLayerV2::fillColor ( ) const
inlinevirtual

Get fill color.

Supported by marker and fill layers.

Note
added in 2.1

Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.

Definition at line 79 of file qgssymbollayerv2.h.

◆ getDataDefinedProperty()

QgsDataDefined * QgsSymbolLayerV2::getDataDefinedProperty ( const QString property) const
virtual

Returns the data defined property corresponding to the specified property key.

Parameters
propertyproperty key
Returns
matching data defined property if it exists
Note
added in QGIS 2.9
See also
setDataDefinedProperty
hasDataDefinedProperty
evaluateDataDefinedProperty

Definition at line 100 of file qgssymbollayerv2.cpp.

◆ hasDataDefinedProperties()

bool QgsSymbolLayerV2::hasDataDefinedProperties ( ) const
virtual

Checks whether the layer has any associated data defined properties.

Returns
true if layer has data defined properties
See also
hasDataDefinedProperty

Definition at line 152 of file qgssymbollayerv2.cpp.

◆ hasDataDefinedProperty()

bool QgsSymbolLayerV2::hasDataDefinedProperty ( const QString property) const
virtual

Checks whether the layer has a matching data defined property and if that property is currently actived.

Parameters
propertyproperty key
Returns
true if data defined property exists and is active
See also
hasDataDefinedProperties
evaluateDataDefinedProperty
getDataDefinedProperty
Note
added in QGIS 2.9

Definition at line 167 of file qgssymbollayerv2.cpp.

◆ isCompatibleWithSymbol()

bool QgsSymbolLayerV2::isCompatibleWithSymbol ( QgsSymbolV2 symbol) const
virtual

Returns if the layer can be used below the specified symbol.

Reimplemented in QgsGeometryGeneratorSymbolLayerV2.

Definition at line 400 of file qgssymbollayerv2.cpp.

◆ isLocked()

bool QgsSymbolLayerV2::isLocked ( ) const
inline

Definition at line 120 of file qgssymbollayerv2.h.

◆ layerType()

virtual QString QgsSymbolLayerV2::layerType ( ) const
pure virtual

◆ mapUnitScale()

virtual QgsMapUnitScale QgsSymbolLayerV2::mapUnitScale ( ) const
inlinevirtual

◆ ogrFeatureStyle()

virtual QString QgsSymbolLayerV2::ogrFeatureStyle ( double  mmScaleFactor,
double  mapUnitScaleFactor 
) const
inlinevirtual

◆ outlineColor()

virtual QColor QgsSymbolLayerV2::outlineColor ( ) const
inlinevirtual

Get outline color.

Supported by marker and fill layers.

Note
added in 2.1

Reimplemented in QgsFontMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.

Definition at line 71 of file qgssymbollayerv2.h.

◆ outputUnit()

virtual QgsSymbolV2::OutputUnit QgsSymbolLayerV2::outputUnit ( ) const
inlinevirtual

◆ paintEffect()

QgsPaintEffect * QgsSymbolLayerV2::paintEffect ( ) const

Returns the current paint effect for the layer.

Returns
paint effect
Note
added in QGIS 2.9
See also
setPaintEffect

Definition at line 317 of file qgssymbollayerv2.cpp.

◆ prepareExpressions() [1/2]

void QgsSymbolLayerV2::prepareExpressions ( const QgsFields fields,
double  scale = -1.0 
)
protectedvirtual

Prepares all data defined property expressions for evaluation.

This should be called prior to evaluating data defined properties.

Parameters
fieldsassociated layer fields
scalemap scale
Deprecated:
use variant which takes QgsSymbolV2RenderContext instead

Definition at line 338 of file qgssymbollayerv2.cpp.

◆ prepareExpressions() [2/2]

void QgsSymbolLayerV2::prepareExpressions ( const QgsSymbolV2RenderContext context)
protectedvirtual

Prepares all data defined property expressions for evaluation.

This should be called prior to evaluating data defined properties.

Parameters
contextsymbol render context
Note
added in QGIS 2.12

Definition at line 370 of file qgssymbollayerv2.cpp.

◆ properties()

virtual QgsStringMap QgsSymbolLayerV2::properties ( ) const
pure virtual

◆ removeDataDefinedProperties()

void QgsSymbolLayerV2::removeDataDefinedProperties ( )
virtual

Removes all data defined properties from the layer and deletes associated objects.

See also
removeDataDefinedProperty
Note
added in QGIS 2.9

Definition at line 146 of file qgssymbollayerv2.cpp.

◆ removeDataDefinedProperty()

void QgsSymbolLayerV2::removeDataDefinedProperty ( const QString property)
virtual

Removes a data defined property from the layer.

Parameters
propertyunique property key. If an associated QgsDataDefined object exists, it will be deleted and removed from the layer.
Note
added in QGIS 2.9
See also
setDataDefinedProperty
removeDataDefinedProperties

Definition at line 136 of file qgssymbollayerv2.cpp.

◆ renderingPass()

int QgsSymbolLayerV2::renderingPass ( ) const
inline

Definition at line 136 of file qgssymbollayerv2.h.

◆ restoreDataDefinedProperties()

void QgsSymbolLayerV2::restoreDataDefinedProperties ( const QgsStringMap stringMap)
protected

Restores all data defined properties from string map.

Parameters
stringMapsource string map
Note
added in QGIS 2.9
See also
saveDataDefinedProperties

Definition at line 436 of file qgssymbollayerv2.cpp.

◆ saveDataDefinedProperties()

void QgsSymbolLayerV2::saveDataDefinedProperties ( QgsStringMap stringMap) const
protected

Saves all data defined properties to a string map.

Parameters
stringMapdestination string map
See also
restoreDataDefinedProperties

Definition at line 424 of file qgssymbollayerv2.cpp.

◆ setColor()

virtual void QgsSymbolLayerV2::setColor ( const QColor color)
inlinevirtual

◆ setDataDefinedProperty() [1/2]

void QgsSymbolLayerV2::setDataDefinedProperty ( const QString property,
const QString expressionString 
)
virtual

Sets a data defined expression for a property.

Deprecated:
use setDataDefinedProperty( const QString& property, QgsDataDefined* dataDefined ) instead

Definition at line 125 of file qgssymbollayerv2.cpp.

◆ setDataDefinedProperty() [2/2]

void QgsSymbolLayerV2::setDataDefinedProperty ( const QString property,
QgsDataDefined dataDefined 
)
virtual

Sets a data defined property for the layer.

Parameters
propertyunique property key. Any existing data defined with the same key will be deleted and overridden.
dataDefineddata defined object to associate with property key. Ownership is transferred to the layer.
Note
added in QGIS 2.9
See also
getDataDefinedProperty
removeDataDefinedProperty

Reimplemented in QgsMarkerLineSymbolLayerV2.

Definition at line 130 of file qgssymbollayerv2.cpp.

◆ setFillColor()

virtual void QgsSymbolLayerV2::setFillColor ( const QColor color)
inlinevirtual

Set fill color.

Supported by marker and fill layers.

Note
added in 2.1

Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.

Definition at line 75 of file qgssymbollayerv2.h.

◆ setLocked()

void QgsSymbolLayerV2::setLocked ( bool  locked)
inline

Definition at line 119 of file qgssymbollayerv2.h.

◆ setMapUnitScale()

virtual void QgsSymbolLayerV2::setMapUnitScale ( const QgsMapUnitScale scale)
inlinevirtual

◆ setOutlineColor()

virtual void QgsSymbolLayerV2::setOutlineColor ( const QColor color)
inlinevirtual

Set outline color.

Supported by marker and fill layers.

Note
added in 2.1

Reimplemented in QgsFontMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.

Definition at line 67 of file qgssymbollayerv2.h.

◆ setOutputUnit()

virtual void QgsSymbolLayerV2::setOutputUnit ( QgsSymbolV2::OutputUnit  unit)
inlinevirtual

◆ setPaintEffect()

void QgsSymbolLayerV2::setPaintEffect ( QgsPaintEffect effect)

Sets the current paint effect for the layer.

Parameters
effectpaint effect. Ownership is transferred to the layer.
Note
added in QGIS 2.9
See also
paintEffect

Definition at line 322 of file qgssymbollayerv2.cpp.

◆ setRenderingPass()

void QgsSymbolLayerV2::setRenderingPass ( int  renderingPass)
inline

Definition at line 135 of file qgssymbollayerv2.h.

◆ setSubSymbol()

virtual bool QgsSymbolLayerV2::setSubSymbol ( QgsSymbolV2 symbol)
inlinevirtual

◆ startRender()

virtual void QgsSymbolLayerV2::startRender ( QgsSymbolV2RenderContext context)
pure virtual

◆ stopRender()

virtual void QgsSymbolLayerV2::stopRender ( QgsSymbolV2RenderContext context)
pure virtual

◆ subSymbol()

virtual QgsSymbolV2* QgsSymbolLayerV2::subSymbol ( )
inlinevirtual

◆ toSld()

virtual void QgsSymbolLayerV2::toSld ( QDomDocument doc,
QDomElement element,
const QgsStringMap props 
) const
inlinevirtual

◆ type()

QgsSymbolV2::SymbolType QgsSymbolLayerV2::type ( ) const
inline

Definition at line 114 of file qgssymbollayerv2.h.

◆ usedAttributes()

QSet< QString > QgsSymbolLayerV2::usedAttributes ( ) const
virtual

Returns the set of attributes referenced by the layer.

This includes attributes required by any data defined properties associated with the layer.

Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsImageFillSymbolLayer, QgsFilledMarkerSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsGeometryGeneratorSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsArrowSymbolLayer.

Definition at line 408 of file qgssymbollayerv2.cpp.

◆ writeDxf()

bool QgsSymbolLayerV2::writeDxf ( QgsDxfExport e,
double  mmMapUnitScaleFactor,
const QString layerName,
QgsSymbolV2RenderContext context,
QPointF  shift = QPointF( 0.0, 0.0 ) 
) const
virtual

write as DXF

Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, and QgsEllipseSymbolLayerV2.

Definition at line 259 of file qgssymbollayerv2.cpp.

Member Data Documentation

◆ EXPR_ALPHA

const QString QgsSymbolLayerV2::EXPR_ALPHA
staticprotected

Definition at line 392 of file qgssymbollayerv2.h.

◆ EXPR_ANGLE

const QString QgsSymbolLayerV2::EXPR_ANGLE
staticprotected

Definition at line 345 of file qgssymbollayerv2.h.

◆ EXPR_BLUR_RADIUS

const QString QgsSymbolLayerV2::EXPR_BLUR_RADIUS
staticprotected

Definition at line 377 of file qgssymbollayerv2.h.

◆ EXPR_BORDER_COLOR

const QString QgsSymbolLayerV2::EXPR_BORDER_COLOR
staticprotected

Definition at line 365 of file qgssymbollayerv2.h.

◆ EXPR_BORDER_STYLE

const QString QgsSymbolLayerV2::EXPR_BORDER_STYLE
staticprotected

Definition at line 363 of file qgssymbollayerv2.h.

◆ EXPR_CAPSTYLE

const QString QgsSymbolLayerV2::EXPR_CAPSTYLE
staticprotected

Definition at line 396 of file qgssymbollayerv2.h.

◆ EXPR_CHAR

const QString QgsSymbolLayerV2::EXPR_CHAR
staticprotected

Definition at line 354 of file qgssymbollayerv2.h.

◆ EXPR_COLOR

const QString QgsSymbolLayerV2::EXPR_COLOR
staticprotected

Definition at line 347 of file qgssymbollayerv2.h.

◆ EXPR_COLOR2

const QString QgsSymbolLayerV2::EXPR_COLOR2
staticprotected

Definition at line 366 of file qgssymbollayerv2.h.

◆ EXPR_COLOR_BORDER

const QString QgsSymbolLayerV2::EXPR_COLOR_BORDER
staticprotected

Definition at line 348 of file qgssymbollayerv2.h.

◆ EXPR_COORDINATE_MODE

const QString QgsSymbolLayerV2::EXPR_COORDINATE_MODE
staticprotected

Definition at line 369 of file qgssymbollayerv2.h.

◆ EXPR_CUSTOMDASH

const QString QgsSymbolLayerV2::EXPR_CUSTOMDASH
staticprotected

Definition at line 393 of file qgssymbollayerv2.h.

◆ EXPR_DISPLACEMENT_X

const QString QgsSymbolLayerV2::EXPR_DISPLACEMENT_X
staticprotected

Definition at line 389 of file qgssymbollayerv2.h.

◆ EXPR_DISPLACEMENT_Y

const QString QgsSymbolLayerV2::EXPR_DISPLACEMENT_Y
staticprotected

Definition at line 390 of file qgssymbollayerv2.h.

◆ EXPR_DISTANCE

const QString QgsSymbolLayerV2::EXPR_DISTANCE
staticprotected

Definition at line 378 of file qgssymbollayerv2.h.

◆ EXPR_DISTANCE_X

const QString QgsSymbolLayerV2::EXPR_DISTANCE_X
staticprotected

Definition at line 387 of file qgssymbollayerv2.h.

◆ EXPR_DISTANCE_Y

const QString QgsSymbolLayerV2::EXPR_DISTANCE_Y
staticprotected

Definition at line 388 of file qgssymbollayerv2.h.

◆ EXPR_FILE

const QString QgsSymbolLayerV2::EXPR_FILE
staticprotected

Definition at line 391 of file qgssymbollayerv2.h.

◆ EXPR_FILL

const QString QgsSymbolLayerV2::EXPR_FILL
staticprotected

Definition at line 351 of file qgssymbollayerv2.h.

◆ EXPR_FILL_COLOR

const QString QgsSymbolLayerV2::EXPR_FILL_COLOR
staticprotected

Definition at line 355 of file qgssymbollayerv2.h.

◆ EXPR_FILL_STYLE

const QString QgsSymbolLayerV2::EXPR_FILL_STYLE
staticprotected

Definition at line 361 of file qgssymbollayerv2.h.

◆ EXPR_GRADIENT_TYPE

const QString QgsSymbolLayerV2::EXPR_GRADIENT_TYPE
staticprotected

Definition at line 368 of file qgssymbollayerv2.h.

◆ EXPR_HEIGHT

const QString QgsSymbolLayerV2::EXPR_HEIGHT
staticprotected

Definition at line 358 of file qgssymbollayerv2.h.

◆ EXPR_HORIZONTAL_ANCHOR_POINT

const QString QgsSymbolLayerV2::EXPR_HORIZONTAL_ANCHOR_POINT
staticprotected

Definition at line 400 of file qgssymbollayerv2.h.

◆ EXPR_IGNORE_RINGS

const QString QgsSymbolLayerV2::EXPR_IGNORE_RINGS
staticprotected

Definition at line 381 of file qgssymbollayerv2.h.

◆ EXPR_INTERVAL

const QString QgsSymbolLayerV2::EXPR_INTERVAL
staticprotected

Definition at line 398 of file qgssymbollayerv2.h.

◆ EXPR_JOIN_STYLE

const QString QgsSymbolLayerV2::EXPR_JOIN_STYLE
staticprotected

Definition at line 364 of file qgssymbollayerv2.h.

◆ EXPR_JOINSTYLE

const QString QgsSymbolLayerV2::EXPR_JOINSTYLE
staticprotected

Definition at line 395 of file qgssymbollayerv2.h.

◆ EXPR_LINE_STYLE

const QString QgsSymbolLayerV2::EXPR_LINE_STYLE
staticprotected

Definition at line 394 of file qgssymbollayerv2.h.

◆ EXPR_LINEANGLE

const QString QgsSymbolLayerV2::EXPR_LINEANGLE
staticprotected

Definition at line 367 of file qgssymbollayerv2.h.

◆ EXPR_LINEWIDTH

const QString QgsSymbolLayerV2::EXPR_LINEWIDTH
staticprotected

Definition at line 386 of file qgssymbollayerv2.h.

◆ EXPR_MAX_DISTANCE

const QString QgsSymbolLayerV2::EXPR_MAX_DISTANCE
staticprotected

Definition at line 380 of file qgssymbollayerv2.h.

◆ EXPR_NAME

const QString QgsSymbolLayerV2::EXPR_NAME
staticprotected

Definition at line 346 of file qgssymbollayerv2.h.

◆ EXPR_OFFSET

const QString QgsSymbolLayerV2::EXPR_OFFSET
staticprotected

Definition at line 353 of file qgssymbollayerv2.h.

◆ EXPR_OFFSET_ALONG_LINE

const QString QgsSymbolLayerV2::EXPR_OFFSET_ALONG_LINE
staticprotected

Definition at line 399 of file qgssymbollayerv2.h.

◆ EXPR_OUTLINE

const QString QgsSymbolLayerV2::EXPR_OUTLINE
staticprotected

Definition at line 352 of file qgssymbollayerv2.h.

◆ EXPR_OUTLINE_COLOR

const QString QgsSymbolLayerV2::EXPR_OUTLINE_COLOR
staticprotected

Definition at line 356 of file qgssymbollayerv2.h.

◆ EXPR_OUTLINE_STYLE

const QString QgsSymbolLayerV2::EXPR_OUTLINE_STYLE
staticprotected

Definition at line 350 of file qgssymbollayerv2.h.

◆ EXPR_OUTLINE_WIDTH

const QString QgsSymbolLayerV2::EXPR_OUTLINE_WIDTH
staticprotected

Definition at line 349 of file qgssymbollayerv2.h.

◆ EXPR_PLACEMENT

const QString QgsSymbolLayerV2::EXPR_PLACEMENT
staticprotected

Definition at line 397 of file qgssymbollayerv2.h.

◆ EXPR_REFERENCE1_ISCENTROID

const QString QgsSymbolLayerV2::EXPR_REFERENCE1_ISCENTROID
staticprotected

Definition at line 375 of file qgssymbollayerv2.h.

◆ EXPR_REFERENCE1_X

const QString QgsSymbolLayerV2::EXPR_REFERENCE1_X
staticprotected

Definition at line 371 of file qgssymbollayerv2.h.

◆ EXPR_REFERENCE1_Y

const QString QgsSymbolLayerV2::EXPR_REFERENCE1_Y
staticprotected

Definition at line 372 of file qgssymbollayerv2.h.

◆ EXPR_REFERENCE2_ISCENTROID

const QString QgsSymbolLayerV2::EXPR_REFERENCE2_ISCENTROID
staticprotected

Definition at line 376 of file qgssymbollayerv2.h.

◆ EXPR_REFERENCE2_X

const QString QgsSymbolLayerV2::EXPR_REFERENCE2_X
staticprotected

Definition at line 373 of file qgssymbollayerv2.h.

◆ EXPR_REFERENCE2_Y

const QString QgsSymbolLayerV2::EXPR_REFERENCE2_Y
staticprotected

Definition at line 374 of file qgssymbollayerv2.h.

◆ EXPR_ROTATION

const QString QgsSymbolLayerV2::EXPR_ROTATION
staticprotected

Definition at line 360 of file qgssymbollayerv2.h.

◆ EXPR_SIZE

const QString QgsSymbolLayerV2::EXPR_SIZE
staticprotected

Definition at line 344 of file qgssymbollayerv2.h.

◆ EXPR_SPREAD

const QString QgsSymbolLayerV2::EXPR_SPREAD
staticprotected

Definition at line 370 of file qgssymbollayerv2.h.

◆ EXPR_SVG_FILE

const QString QgsSymbolLayerV2::EXPR_SVG_FILE
staticprotected

Definition at line 382 of file qgssymbollayerv2.h.

◆ EXPR_SVG_FILL_COLOR

const QString QgsSymbolLayerV2::EXPR_SVG_FILL_COLOR
staticprotected

Definition at line 383 of file qgssymbollayerv2.h.

◆ EXPR_SVG_OUTLINE_COLOR

const QString QgsSymbolLayerV2::EXPR_SVG_OUTLINE_COLOR
staticprotected

Definition at line 384 of file qgssymbollayerv2.h.

◆ EXPR_SVG_OUTLINE_WIDTH

const QString QgsSymbolLayerV2::EXPR_SVG_OUTLINE_WIDTH
staticprotected

Definition at line 385 of file qgssymbollayerv2.h.

◆ EXPR_SYMBOL_NAME

const QString QgsSymbolLayerV2::EXPR_SYMBOL_NAME
staticprotected

Definition at line 359 of file qgssymbollayerv2.h.

◆ EXPR_USE_WHOLE_SHAPE

const QString QgsSymbolLayerV2::EXPR_USE_WHOLE_SHAPE
staticprotected

Definition at line 379 of file qgssymbollayerv2.h.

◆ EXPR_VERTICAL_ANCHOR_POINT

const QString QgsSymbolLayerV2::EXPR_VERTICAL_ANCHOR_POINT
staticprotected

Definition at line 401 of file qgssymbollayerv2.h.

◆ EXPR_WIDTH

const QString QgsSymbolLayerV2::EXPR_WIDTH
staticprotected

Definition at line 357 of file qgssymbollayerv2.h.

◆ EXPR_WIDTH_BORDER

const QString QgsSymbolLayerV2::EXPR_WIDTH_BORDER
staticprotected

Definition at line 362 of file qgssymbollayerv2.h.

◆ mColor

QColor QgsSymbolLayerV2::mColor
protected

Definition at line 288 of file qgssymbollayerv2.h.

◆ mDataDefinedProperties

QMap< QString, QgsDataDefined* > QgsSymbolLayerV2::mDataDefinedProperties
protected

Definition at line 291 of file qgssymbollayerv2.h.

◆ mFields

QgsFields QgsSymbolLayerV2::mFields
protected

Definition at line 293 of file qgssymbollayerv2.h.

◆ mLocked

bool QgsSymbolLayerV2::mLocked
protected

Definition at line 287 of file qgssymbollayerv2.h.

◆ mPaintEffect

QgsPaintEffect* QgsSymbolLayerV2::mPaintEffect
protected

Definition at line 292 of file qgssymbollayerv2.h.

◆ mRenderingPass

int QgsSymbolLayerV2::mRenderingPass
protected

Definition at line 289 of file qgssymbollayerv2.h.

◆ mType

QgsSymbolV2::SymbolType QgsSymbolLayerV2::mType
protected

Definition at line 286 of file qgssymbollayerv2.h.

◆ selectFillBorder

const bool QgsSymbolLayerV2::selectFillBorder = false
staticprotected

Definition at line 297 of file qgssymbollayerv2.h.

◆ selectFillStyle

const bool QgsSymbolLayerV2::selectFillStyle = false
staticprotected

Definition at line 298 of file qgssymbollayerv2.h.

◆ selectionIsOpaque

const bool QgsSymbolLayerV2::selectionIsOpaque = true
staticprotected

Definition at line 296 of file qgssymbollayerv2.h.


The documentation for this class was generated from the following files: