QGIS API Documentation
2.8.2-Wien
|
#include <qgssymbollayerv2.h>
Public Member Functions | |
virtual | ~QgsSymbolLayerV2 () |
virtual QgsSymbolLayerV2 * | clone () const =0 |
virtual QColor | color () const |
virtual const QgsExpression * | dataDefinedProperty (const QString &property) const |
virtual QString | dataDefinedPropertyString (const QString &property) const |
virtual void | drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size)=0 |
virtual QColor | dxfBrushColor (const QgsSymbolV2RenderContext &context) const |
virtual Qt::BrushStyle | dxfBrushStyle () const |
virtual QColor | dxfColor (const QgsSymbolV2RenderContext &context) const |
virtual QVector< qreal > | dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) const |
virtual double | dxfOffset (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const |
virtual Qt::PenStyle | dxfPenStyle () const |
virtual double | dxfWidth (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const |
virtual double | estimateMaxBleed () const |
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape. | |
virtual QColor | fillColor () const |
Get fill color. | |
bool | hasDataDefinedProperties () const |
bool | isLocked () const |
virtual QString | layerType () const =0 |
virtual QgsMapUnitScale | mapUnitScale () const |
virtual QString | ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const |
virtual QColor | outlineColor () const |
Get outline color. | |
virtual QgsSymbolV2::OutputUnit | outputUnit () const |
virtual QgsStringMap | properties () const =0 |
virtual void | removeDataDefinedProperties () |
virtual void | removeDataDefinedProperty (const QString &property) |
int | renderingPass () const |
virtual void | setColor (const QColor &color) |
virtual void | setDataDefinedProperty (const QString &property, const QString &expressionString) |
virtual void | setFillColor (const QColor &color) |
Set fill color. | |
void | setLocked (bool locked) |
virtual void | setMapUnitScale (const QgsMapUnitScale &scale) |
virtual void | setOutlineColor (const QColor &color) |
Set outline color. | |
virtual void | setOutputUnit (QgsSymbolV2::OutputUnit unit) |
void | setRenderingPass (int renderingPass) |
virtual bool | setSubSymbol (QgsSymbolV2 *symbol) |
virtual void | startRender (QgsSymbolV2RenderContext &context)=0 |
virtual void | stopRender (QgsSymbolV2RenderContext &context)=0 |
virtual QgsSymbolV2 * | subSymbol () |
virtual void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
QgsSymbolV2::SymbolType | type () const |
virtual QSet< QString > | usedAttributes () const |
virtual bool | writeDxf (QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, const QgsSymbolV2RenderContext *context, const QgsFeature *f, const QPointF &shift=QPointF(0.0, 0.0)) const |
Protected Member Functions | |
QgsSymbolLayerV2 (QgsSymbolV2::SymbolType type, bool locked=false) | |
void | copyDataDefinedProperties (QgsSymbolLayerV2 *destLayer) const |
Copies data defined properties of this layer to another symbol layer. | |
virtual QgsExpression * | expression (const QString &property) const |
virtual void | prepareExpressions (const QgsFields *fields, double scale=-1.0) |
void | saveDataDefinedProperties (QgsStringMap &stringMap) const |
Saves data defined properties to string map. |
Protected Attributes | |
QColor | mColor |
QMap< QString, QgsExpression * > | mDataDefinedProperties |
bool | mLocked |
int | mRenderingPass |
QgsSymbolV2::SymbolType | mType |
Static Protected Attributes | |
static const bool | selectFillBorder = false |
static const bool | selectFillStyle = false |
static const bool | selectionIsOpaque = true |
Definition at line 45 of file qgssymbollayerv2.h.
|
inlinevirtual |
Definition at line 65 of file qgssymbollayerv2.h.
|
inlineprotected |
Definition at line 136 of file qgssymbollayerv2.h.
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsRasterFillSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsFontMarkerSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleLineSymbolLayerV2, and QgsEllipseSymbolLayerV2.
|
inlinevirtual |
Reimplemented in QgsLinePatternFillSymbolLayer.
Definition at line 50 of file qgssymbollayerv2.h.
|
protected |
Copies data defined properties of this layer to another symbol layer.
Definition at line 195 of file qgssymbollayerv2.cpp.
|
virtual |
Definition at line 29 of file qgssymbollayerv2.cpp.
|
virtual |
Definition at line 49 of file qgssymbollayerv2.cpp.
|
pure virtual |
Implemented in QgsFillSymbolLayerV2, QgsLineSymbolLayerV2, QgsMarkerSymbolLayerV2, and QgsVectorFieldSymbolLayer.
|
virtual |
Reimplemented in QgsSimpleFillSymbolLayerV2.
Definition at line 128 of file qgssymbollayerv2.cpp.
|
virtual |
Reimplemented in QgsSimpleFillSymbolLayerV2.
Definition at line 134 of file qgssymbollayerv2.cpp.
|
virtual |
Reimplemented in QgsImageFillSymbolLayer, QgsSimpleFillSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.
Definition at line 111 of file qgssymbollayerv2.cpp.
|
virtual |
Reimplemented in QgsSimpleLineSymbolLayerV2.
Definition at line 117 of file qgssymbollayerv2.cpp.
|
virtual |
Reimplemented in QgsSimpleLineSymbolLayerV2.
Definition at line 104 of file qgssymbollayerv2.cpp.
|
virtual |
Reimplemented in QgsImageFillSymbolLayer, QgsSimpleFillSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.
Definition at line 123 of file qgssymbollayerv2.cpp.
|
virtual |
Reimplemented in QgsImageFillSymbolLayer, QgsLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.
Definition at line 97 of file qgssymbollayerv2.cpp.
|
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, QgsShapeburstFillSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.
Definition at line 96 of file qgssymbollayerv2.h.
|
protectedvirtual |
Definition at line 39 of file qgssymbollayerv2.cpp.
|
inlinevirtual |
Get fill color.
Supported by marker and fill layers.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 63 of file qgssymbollayerv2.h.
|
inline |
Definition at line 116 of file qgssymbollayerv2.h.
|
inline |
Definition at line 90 of file qgssymbollayerv2.h.
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsRasterFillSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsFontMarkerSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleLineSymbolLayerV2, and QgsEllipseSymbolLayerV2.
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsImageFillSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsLineSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsEllipseSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsSimpleLineSymbolLayerV2.
Definition at line 102 of file qgssymbollayerv2.h.
|
inlinevirtual |
Reimplemented in QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.
Definition at line 77 of file qgssymbollayerv2.h.
|
inlinevirtual |
Get outline color.
Supported by marker and fill layers.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 57 of file qgssymbollayerv2.h.
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsImageFillSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsLineSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsEllipseSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsSimpleLineSymbolLayerV2.
Definition at line 99 of file qgssymbollayerv2.h.
|
protectedvirtual |
Definition at line 139 of file qgssymbollayerv2.cpp.
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsRasterFillSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsFontMarkerSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleLineSymbolLayerV2, and QgsEllipseSymbolLayerV2.
|
virtual |
Definition at line 71 of file qgssymbollayerv2.cpp.
|
virtual |
Definition at line 61 of file qgssymbollayerv2.cpp.
|
inline |
Definition at line 106 of file qgssymbollayerv2.h.
|
protected |
Saves data defined properties to string map.
Definition at line 183 of file qgssymbollayerv2.cpp.
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsLinePatternFillSymbolLayer, and QgsMarkerLineSymbolLayerV2.
Definition at line 51 of file qgssymbollayerv2.h.
|
virtual |
Definition at line 55 of file qgssymbollayerv2.cpp.
|
inlinevirtual |
Set fill color.
Supported by marker and fill layers.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 60 of file qgssymbollayerv2.h.
|
inline |
Definition at line 89 of file qgssymbollayerv2.h.
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsImageFillSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsLineSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsEllipseSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsSimpleLineSymbolLayerV2.
Definition at line 101 of file qgssymbollayerv2.h.
|
inlinevirtual |
Set outline color.
Supported by marker and fill layers.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 54 of file qgssymbollayerv2.h.
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsImageFillSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsLineSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsEllipseSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsSimpleLineSymbolLayerV2.
Definition at line 98 of file qgssymbollayerv2.h.
|
inline |
Definition at line 105 of file qgssymbollayerv2.h.
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsRasterFillSymbolLayer, QgsImageFillSymbolLayer, QgsMarkerLineSymbolLayerV2, and QgsVectorFieldSymbolLayer.
Definition at line 85 of file qgssymbollayerv2.h.
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsRasterFillSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsFontMarkerSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleLineSymbolLayerV2, and QgsEllipseSymbolLayerV2.
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsRasterFillSymbolLayer, QgsShapeburstFillSymbolLayerV2, QgsFontMarkerSymbolLayerV2, QgsGradientFillSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleFillSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsSimpleLineSymbolLayerV2, and QgsEllipseSymbolLayerV2.
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsRasterFillSymbolLayer, QgsImageFillSymbolLayer, QgsMarkerLineSymbolLayerV2, and QgsVectorFieldSymbolLayer.
Definition at line 83 of file qgssymbollayerv2.h.
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsMarkerSymbolLayerV2, QgsMarkerLineSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleFillSymbolLayerV2, QgsSimpleLineSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 74 of file qgssymbollayerv2.h.
|
inline |
Definition at line 87 of file qgssymbollayerv2.h.
|
virtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, and QgsVectorFieldSymbolLayer.
Definition at line 160 of file qgssymbollayerv2.cpp.
|
virtual |
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 81 of file qgssymbollayerv2.cpp.
|
protected |
Definition at line 141 of file qgssymbollayerv2.h.
|
protected |
Definition at line 144 of file qgssymbollayerv2.h.
|
protected |
Definition at line 140 of file qgssymbollayerv2.h.
|
protected |
Definition at line 142 of file qgssymbollayerv2.h.
|
protected |
Definition at line 139 of file qgssymbollayerv2.h.
|
staticprotected |
Definition at line 148 of file qgssymbollayerv2.h.
|
staticprotected |
Definition at line 149 of file qgssymbollayerv2.h.
|
staticprotected |
Definition at line 147 of file qgssymbollayerv2.h.