QGIS API Documentation
2.0.1-Dufour
|
#include <qgssymbollayerv2.h>
Public Member Functions | |
virtual void | setColor (const QColor &color) |
virtual QColor | color () const |
virtual | ~QgsSymbolLayerV2 () |
virtual QString | layerType () const =0 |
virtual void | startRender (QgsSymbolV2RenderContext &context)=0 |
virtual void | stopRender (QgsSymbolV2RenderContext &context)=0 |
virtual QgsSymbolLayerV2 * | clone () const =0 |
virtual void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
virtual QString | ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const |
virtual QgsStringMap | properties () const =0 |
virtual void | drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size)=0 |
virtual QgsSymbolV2 * | subSymbol () |
virtual bool | setSubSymbol (QgsSymbolV2 *symbol) |
QgsSymbolV2::SymbolType | type () const |
void | setLocked (bool locked) |
bool | isLocked () const |
virtual void | setOutputUnit (QgsSymbolV2::OutputUnit unit) |
virtual QgsSymbolV2::OutputUnit | outputUnit () const |
void | setRenderingPass (int renderingPass) |
int | renderingPass () const |
virtual QSet< QString > | usedAttributes () const |
virtual const QgsExpression * | dataDefinedProperty (const QString &property) const |
virtual QString | dataDefinedPropertyString (const QString &property) const |
virtual void | setDataDefinedProperty (const QString &property, const QString &expressionString) |
virtual void | removeDataDefinedProperty (const QString &property) |
virtual void | removeDataDefinedProperties () |
Protected Member Functions | |
QgsSymbolLayerV2 (QgsSymbolV2::SymbolType type, bool locked=false) | |
virtual void | prepareExpressions (const QgsVectorLayer *vl) |
virtual QgsExpression * | expression (const QString &property) |
void | saveDataDefinedProperties (QgsStringMap &stringMap) const |
Saves data defined properties to string map. | |
void | copyDataDefinedProperties (QgsSymbolLayerV2 *destLayer) const |
Copies data defined properties of this layer to another symbol layer. |
Protected Attributes | |
QgsSymbolV2::SymbolType | mType |
bool | mLocked |
QColor | mColor |
int | mRenderingPass |
QMap< QString, QgsExpression * > | mDataDefinedProperties |
Static Protected Attributes | |
static const bool | selectionIsOpaque = true |
static const bool | selectFillBorder = false |
static const bool | selectFillStyle = false |
Definition at line 44 of file qgssymbollayerv2.h.
|
inlinevirtual |
Definition at line 52 of file qgssymbollayerv2.h.
|
inlineprotected |
Definition at line 96 of file qgssymbollayerv2.h.
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsFontMarkerSymbolLayerV2, QgsSVGFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Referenced by QgsSymbolV2::cloneLayers().
|
inlinevirtual |
Reimplemented in QgsLinePatternFillSymbolLayer.
Definition at line 50 of file qgssymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2::create(), QgsSimpleLineSymbolLayerV2::create(), QgsSimpleMarkerSymbolLayerV2::create(), QgsFontMarkerSymbolLayerV2::create(), QgsSimpleFillSymbolLayerV2::createFromSld(), QgsSimpleLineSymbolLayerV2::createFromSld(), QgsSimpleMarkerSymbolLayerV2::createFromSld(), QgsFontMarkerSymbolLayerV2::createFromSld(), QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2(), QgsSimpleFillSymbolLayerV2::QgsSimpleFillSymbolLayerV2(), QgsSimpleLineSymbolLayerV2::QgsSimpleLineSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::setBorderColor(), QgsMarkerLineSymbolLayerV2::setColor(), and QgsCentroidFillSymbolLayerV2::setColor().
|
protected |
Copies data defined properties of this layer to another symbol layer.
Definition at line 132 of file qgssymbollayerv2.cpp.
References mDataDefinedProperties, removeDataDefinedProperties(), and setDataDefinedProperty().
Referenced by QgsSimpleFillSymbolLayerV2::clone(), QgsSimpleLineSymbolLayerV2::clone(), QgsSimpleMarkerSymbolLayerV2::clone(), QgsSvgMarkerSymbolLayerV2::clone(), QgsMarkerLineSymbolLayerV2::clone(), QgsSVGFillSymbolLayer::clone(), QgsLinePatternFillSymbolLayer::clone(), and QgsPointPatternFillSymbolLayer::clone().
|
virtual |
Definition at line 27 of file qgssymbollayerv2.cpp.
References mDataDefinedProperties.
Referenced by dataDefinedPropertyString(), QgsEllipseSymbolLayerV2::hasDataDefinedProperty(), QgsSimpleMarkerSymbolLayerV2::startRender(), and QgsEllipseSymbolLayerV2::writeSldMarker().
|
virtual |
Definition at line 47 of file qgssymbollayerv2.cpp.
References dataDefinedProperty(), and QgsExpression::expression().
|
pure virtual |
Implemented in QgsFillSymbolLayerV2, QgsLineSymbolLayerV2, QgsMarkerSymbolLayerV2, and QgsVectorFieldSymbolLayer.
Referenced by QgsSymbolLayerV2Utils::symbolLayerPreviewIcon().
|
protectedvirtual |
Definition at line 37 of file qgssymbollayerv2.cpp.
References mDataDefinedProperties.
Referenced by QgsSVGFillSymbolLayer::applyDataDefinedSettings(), QgsLinePatternFillSymbolLayer::applyDataDefinedSettings(), QgsPointPatternFillSymbolLayer::applyDataDefinedSettings(), QgsSimpleFillSymbolLayerV2::applyDataDefinedSymbology(), QgsSimpleLineSymbolLayerV2::applyDataDefinedSymbology(), QgsMarkerSymbolLayerV2::markerOffset(), QgsEllipseSymbolLayerV2::preparePath(), QgsEllipseSymbolLayerV2::renderPoint(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsMarkerLineSymbolLayerV2::renderPolyline(), and QgsMarkerLineSymbolLayerV2::renderPolylineInterval().
|
inline |
Definition at line 77 of file qgssymbollayerv2.h.
Referenced by QgsSymbolLayerV2Utils::saveSymbol().
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsFontMarkerSymbolLayerV2, QgsSVGFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleMarkerSymbolLayerV2, QgsSimpleLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Referenced by QgsSymbolLayerV2Utils::createSymbolLayerV2ListFromSld(), QgsSymbolLayerV2Utils::saveSymbol(), QgsMarkerLineSymbolLayerV2::toSld(), QgsPointPatternFillSymbolLayer::toSld(), and QgsMarkerSymbolLayerV2::writeSldMarker().
|
inlinevirtual |
Reimplemented in QgsSimpleMarkerSymbolLayerV2, QgsSimpleLineSymbolLayerV2, and QgsSimpleFillSymbolLayerV2.
Definition at line 64 of file qgssymbollayerv2.h.
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsSVGFillSymbolLayer, QgsSvgMarkerSymbolLayerV2, QgsMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleFillSymbolLayerV2, QgsEllipseSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.
Definition at line 80 of file qgssymbollayerv2.h.
References QgsSymbolV2::Mixed.
|
protectedvirtual |
Definition at line 79 of file qgssymbollayerv2.cpp.
References mDataDefinedProperties, and QgsVectorLayer::pendingFields().
Referenced by QgsEllipseSymbolLayerV2::startRender(), QgsSimpleFillSymbolLayerV2::startRender(), QgsSimpleLineSymbolLayerV2::startRender(), QgsSimpleMarkerSymbolLayerV2::startRender(), QgsSvgMarkerSymbolLayerV2::startRender(), QgsMarkerLineSymbolLayerV2::startRender(), QgsSVGFillSymbolLayer::startRender(), QgsLinePatternFillSymbolLayer::startRender(), and QgsPointPatternFillSymbolLayer::startRender().
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsFontMarkerSymbolLayerV2, QgsSVGFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleMarkerSymbolLayerV2, QgsSimpleLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Referenced by QgsSymbolLayerV2Utils::saveSymbol().
|
virtual |
Definition at line 69 of file qgssymbollayerv2.cpp.
References mDataDefinedProperties.
Referenced by copyDataDefinedProperties().
|
virtual |
Definition at line 59 of file qgssymbollayerv2.cpp.
References mDataDefinedProperties.
Referenced by setDataDefinedProperty().
|
inline |
Definition at line 84 of file qgssymbollayerv2.h.
Referenced by QgsVectorLayer::drawRendererV2Levels(), QgsVectorFileWriter::exportFeaturesSymbolLevels(), QgsSymbolLayerV2Utils::saveSymbol(), and QgsRuleBasedRendererV2::stopRender().
|
protected |
Saves data defined properties to string map.
Definition at line 120 of file qgssymbollayerv2.cpp.
References mDataDefinedProperties.
Referenced by QgsEllipseSymbolLayerV2::properties(), QgsSimpleFillSymbolLayerV2::properties(), QgsSimpleLineSymbolLayerV2::properties(), QgsSimpleMarkerSymbolLayerV2::properties(), QgsSvgMarkerSymbolLayerV2::properties(), QgsMarkerLineSymbolLayerV2::properties(), QgsSVGFillSymbolLayer::properties(), QgsLinePatternFillSymbolLayer::properties(), and QgsPointPatternFillSymbolLayer::properties().
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsLinePatternFillSymbolLayer, and QgsMarkerLineSymbolLayerV2.
Definition at line 49 of file qgssymbollayerv2.h.
|
virtual |
Definition at line 53 of file qgssymbollayerv2.cpp.
References mDataDefinedProperties, and removeDataDefinedProperty().
Referenced by copyDataDefinedProperties(), QgsEllipseSymbolLayerV2::create(), QgsSimpleFillSymbolLayerV2::create(), QgsSimpleLineSymbolLayerV2::create(), QgsSimpleMarkerSymbolLayerV2::create(), QgsSvgMarkerSymbolLayerV2::create(), QgsMarkerLineSymbolLayerV2::create(), QgsSVGFillSymbolLayer::create(), QgsLinePatternFillSymbolLayer::create(), and QgsPointPatternFillSymbolLayer::create().
|
inline |
Definition at line 76 of file qgssymbollayerv2.h.
Referenced by QgsSymbolV2::cloneLayers(), and QgsSymbolLayerV2Utils::loadSymbolLayer().
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsSVGFillSymbolLayer, QgsSvgMarkerSymbolLayerV2, QgsMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleFillSymbolLayerV2, QgsEllipseSymbolLayerV2, and QgsSimpleLineSymbolLayerV2.
Definition at line 79 of file qgssymbollayerv2.h.
|
inline |
Definition at line 83 of file qgssymbollayerv2.h.
Referenced by QgsSymbolV2::cloneLayers(), and QgsSymbolLayerV2Utils::loadSymbolLayer().
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsImageFillSymbolLayer, and QgsVectorFieldSymbolLayer.
Definition at line 72 of file qgssymbollayerv2.h.
Referenced by QgsVectorFieldSymbolLayer::clone(), QgsSymbolLayerV2Utils::loadSymbol(), and QgsSymbolLayerV2Utils::loadSymbols().
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsFontMarkerSymbolLayerV2, QgsSVGFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleMarkerSymbolLayerV2, QgsSimpleLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Referenced by QgsSymbolV2::drawPreviewIcon(), QgsMarkerSymbolLayerV2::drawPreviewIcon(), QgsLineSymbolLayerV2::drawPreviewIcon(), and QgsFillSymbolLayerV2::drawPreviewIcon().
|
pure virtual |
Implemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsFontMarkerSymbolLayerV2, QgsSVGFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleMarkerSymbolLayerV2, QgsSimpleLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Referenced by QgsSymbolV2::drawPreviewIcon(), QgsMarkerSymbolLayerV2::drawPreviewIcon(), QgsLineSymbolLayerV2::drawPreviewIcon(), and QgsFillSymbolLayerV2::drawPreviewIcon().
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsImageFillSymbolLayer, and QgsVectorFieldSymbolLayer.
Definition at line 70 of file qgssymbollayerv2.h.
Referenced by QgsSymbolLayerV2Utils::saveSymbol().
|
inlinevirtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, QgsPointPatternFillSymbolLayer, QgsLinePatternFillSymbolLayer, QgsSVGFillSymbolLayer, QgsMarkerLineSymbolLayerV2, QgsMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, QgsSimpleLineSymbolLayerV2, QgsSimpleFillSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 61 of file qgssymbollayerv2.h.
|
inline |
Definition at line 74 of file qgssymbollayerv2.h.
Referenced by QgsSymbolV2::appendSymbolLayer(), QgsSymbolV2::changeSymbolLayer(), QgsSymbolV2::insertSymbolLayer(), and QgsVectorFieldSymbolLayer::setVectorFieldType().
|
virtual |
Reimplemented in QgsCentroidFillSymbolLayerV2, and QgsVectorFieldSymbolLayer.
Definition at line 97 of file qgssymbollayerv2.cpp.
References mDataDefinedProperties.
Referenced by QgsCentroidFillSymbolLayerV2::usedAttributes().
|
protected |
Definition at line 101 of file qgssymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2::clone(), QgsSimpleLineSymbolLayerV2::clone(), QgsSimpleMarkerSymbolLayerV2::clone(), QgsFontMarkerSymbolLayerV2::clone(), QgsLinePatternFillSymbolLayer::color(), QgsSimpleFillSymbolLayerV2::ogrFeatureStyle(), QgsSimpleMarkerSymbolLayerV2::ogrFeatureStyle(), QgsSimpleFillSymbolLayerV2::properties(), QgsSimpleLineSymbolLayerV2::properties(), QgsSimpleMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2(), QgsSimpleFillSymbolLayerV2::QgsSimpleFillSymbolLayerV2(), QgsSimpleLineSymbolLayerV2::QgsSimpleLineSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsFontMarkerSymbolLayerV2::renderPoint(), QgsMarkerLineSymbolLayerV2::setColor(), QgsCentroidFillSymbolLayerV2::setColor(), QgsMarkerLineSymbolLayerV2::setSubSymbol(), QgsCentroidFillSymbolLayerV2::setSubSymbol(), QgsSimpleFillSymbolLayerV2::startRender(), QgsSimpleLineSymbolLayerV2::startRender(), QgsSimpleMarkerSymbolLayerV2::startRender(), QgsSimpleFillSymbolLayerV2::toSld(), QgsSimpleLineSymbolLayerV2::toSld(), QgsSimpleMarkerSymbolLayerV2::writeSldMarker(), and QgsFontMarkerSymbolLayerV2::writeSldMarker().
|
protected |
Definition at line 104 of file qgssymbollayerv2.h.
Referenced by copyDataDefinedProperties(), dataDefinedProperty(), expression(), prepareExpressions(), removeDataDefinedProperties(), removeDataDefinedProperty(), saveDataDefinedProperties(), setDataDefinedProperty(), and usedAttributes().
|
protected |
Definition at line 100 of file qgssymbollayerv2.h.
|
protected |
Definition at line 102 of file qgssymbollayerv2.h.
|
protected |
Definition at line 99 of file qgssymbollayerv2.h.
|
staticprotected |
Definition at line 108 of file qgssymbollayerv2.h.
Referenced by QgsImageFillSymbolLayer::renderPolygon().
|
staticprotected |
Definition at line 109 of file qgssymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2::startRender().
|
staticprotected |
Definition at line 107 of file qgssymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2::startRender(), and QgsSimpleLineSymbolLayerV2::startRender().