QGIS API Documentation
2.4.0-Chugiak
|
#include <qgsfillsymbollayerv2.h>
Public Member Functions | |
QgsPointPatternFillSymbolLayer () | |
~QgsPointPatternFillSymbolLayer () | |
QString | layerType () const |
void | startRender (QgsSymbolV2RenderContext &context) |
void | stopRender (QgsSymbolV2RenderContext &context) |
QgsStringMap | properties () const |
QgsSymbolLayerV2 * | clone () const |
void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
double | estimateMaxBleed () const |
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape. More... | |
double | distanceX () const |
void | setDistanceX (double d) |
double | distanceY () const |
void | setDistanceY (double d) |
double | displacementX () const |
void | setDisplacementX (double d) |
double | displacementY () const |
void | setDisplacementY (double d) |
bool | setSubSymbol (QgsSymbolV2 *symbol) |
virtual QgsSymbolV2 * | subSymbol () |
void | setDistanceXUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | distanceXUnit () const |
void | setDistanceXMapUnitScale (const QgsMapUnitScale &scale) |
const QgsMapUnitScale & | distanceXMapUnitScale () const |
void | setDistanceYUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | distanceYUnit () const |
void | setDistanceYMapUnitScale (const QgsMapUnitScale &scale) |
const QgsMapUnitScale & | distanceYMapUnitScale () const |
void | setDisplacementXUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | displacementXUnit () const |
void | setDisplacementXMapUnitScale (const QgsMapUnitScale &scale) |
const QgsMapUnitScale & | displacementXMapUnitScale () const |
void | setDisplacementYUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | displacementYUnit () const |
void | setDisplacementYMapUnitScale (const QgsMapUnitScale &scale) |
const QgsMapUnitScale & | displacementYMapUnitScale () const |
void | setOutputUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | outputUnit () const |
void | setMapUnitScale (const QgsMapUnitScale &scale) |
QgsMapUnitScale | mapUnitScale () const |
virtual QSet< QString > | usedAttributes () const |
Public Member Functions inherited from QgsImageFillSymbolLayer | |
QgsImageFillSymbolLayer () | |
virtual | ~QgsImageFillSymbolLayer () |
void | renderPolygon (const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context) |
void | setOutlineWidthUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | outlineWidthUnit () const |
void | setOutlineWidthMapUnitScale (const QgsMapUnitScale &scale) |
const QgsMapUnitScale & | outlineWidthMapUnitScale () const |
virtual double | dxfWidth (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const |
virtual QColor | dxfColor (const QgsSymbolV2RenderContext &context) const |
virtual Qt::PenStyle | dxfPenStyle () const |
Public Member Functions inherited from QgsFillSymbolLayerV2 | |
void | drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size) |
void | setAngle (double angle) |
double | angle () const |
Public Member Functions inherited from QgsSymbolLayerV2 | |
virtual QColor | color () const |
virtual void | setColor (const QColor &color) |
virtual void | setOutlineColor (const QColor &color) |
Set outline color. More... | |
virtual QColor | outlineColor () const |
Get outline color. More... | |
virtual void | setFillColor (const QColor &color) |
Set fill color. More... | |
virtual QColor | fillColor () const |
Get fill color. More... | |
virtual | ~QgsSymbolLayerV2 () |
virtual QString | ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const |
QgsSymbolV2::SymbolType | type () const |
void | setLocked (bool locked) |
bool | isLocked () const |
void | setRenderingPass (int renderingPass) |
int | renderingPass () 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 () |
bool | hasDataDefinedProperties () 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 |
virtual QVector< qreal > | dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) const |
Static Public Member Functions | |
static QgsSymbolLayerV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
static QgsSymbolLayerV2 * | createFromSld (QDomElement &element) |
Protected Member Functions | |
void | applyDataDefinedSettings (const QgsSymbolV2RenderContext &context) |
Protected Member Functions inherited from QgsFillSymbolLayerV2 | |
QgsFillSymbolLayerV2 (bool locked=false) | |
void | _renderPolygon (QPainter *p, const QPolygonF &points, const QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context) |
Default method to render polygon. More... | |
Protected Member Functions inherited from QgsSymbolLayerV2 | |
QgsSymbolLayerV2 (QgsSymbolV2::SymbolType type, bool locked=false) | |
virtual void | prepareExpressions (const QgsFields *fields, double scale=-1.0) |
virtual QgsExpression * | expression (const QString &property) const |
void | saveDataDefinedProperties (QgsStringMap &stringMap) const |
Saves data defined properties to string map. More... | |
void | copyDataDefinedProperties (QgsSymbolLayerV2 *destLayer) const |
Copies data defined properties of this layer to another symbol layer. More... | |
Protected Attributes | |
QgsMarkerSymbolV2 * | mMarkerSymbol |
double | mDistanceX |
QgsSymbolV2::OutputUnit | mDistanceXUnit |
QgsMapUnitScale | mDistanceXMapUnitScale |
double | mDistanceY |
QgsSymbolV2::OutputUnit | mDistanceYUnit |
QgsMapUnitScale | mDistanceYMapUnitScale |
double | mDisplacementX |
QgsSymbolV2::OutputUnit | mDisplacementXUnit |
QgsMapUnitScale | mDisplacementXMapUnitScale |
double | mDisplacementY |
QgsSymbolV2::OutputUnit | mDisplacementYUnit |
QgsMapUnitScale | mDisplacementYMapUnitScale |
Protected Attributes inherited from QgsImageFillSymbolLayer | |
QBrush | mBrush |
double | mNextAngle |
double | mOutlineWidth |
Outline width. More... | |
QgsSymbolV2::OutputUnit | mOutlineWidthUnit |
QgsMapUnitScale | mOutlineWidthMapUnitScale |
QgsLineSymbolV2 * | mOutline |
Custom outline. More... | |
Protected Attributes inherited from QgsFillSymbolLayerV2 | |
double | mAngle |
Protected Attributes inherited from QgsSymbolLayerV2 | |
QgsSymbolV2::SymbolType | mType |
bool | mLocked |
QColor | mColor |
int | mRenderingPass |
QMap< QString, QgsExpression * > | mDataDefinedProperties |
Private Member Functions | |
void | applyPattern (const QgsSymbolV2RenderContext &context, QBrush &brush, double distanceX, double distanceY, double displacementX, double displacementY) |
Additional Inherited Members | |
Static Protected Attributes inherited from QgsSymbolLayerV2 | |
static const bool | selectionIsOpaque = true |
static const bool | selectFillBorder = false |
static const bool | selectFillStyle = false |
Definition at line 774 of file qgsfillsymbollayerv2.h.
QgsPointPatternFillSymbolLayer::QgsPointPatternFillSymbolLayer | ( | ) |
Definition at line 2782 of file qgsfillsymbollayerv2.cpp.
References mDisplacementX, mDisplacementY, mDistanceX, mDistanceY, QgsImageFillSymbolLayer::setSubSymbol(), and setSubSymbol().
Referenced by create().
QgsPointPatternFillSymbolLayer::~QgsPointPatternFillSymbolLayer | ( | ) |
Definition at line 2794 of file qgsfillsymbollayerv2.cpp.
|
protectedvirtual |
Reimplemented from QgsImageFillSymbolLayer.
Definition at line 3100 of file qgsfillsymbollayerv2.cpp.
References applyPattern(), displacementX(), displacementY(), distanceX(), distanceY(), QgsExpression::evaluate(), QgsSymbolLayerV2::expression(), QgsSymbolV2RenderContext::feature(), QgsImageFillSymbolLayer::mBrush, mDisplacementX, mDisplacementY, mDistanceX, and mDistanceY.
|
private |
Definition at line 2924 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), QgsSymbolV2RenderContext::feature(), QgsSymbolV2RenderContext::fields(), QgsRenderContext::mapToPixel(), QgsMapToPixel::mapUnitsPerPixel(), mDisplacementXMapUnitScale, mDisplacementXUnit, mDisplacementYMapUnitScale, mDisplacementYUnit, mDistanceXMapUnitScale, mDistanceXUnit, mDistanceYUnit, mMarkerSymbol, QgsSymbolLayerV2Utils::multiplyImageOpacity(), QgsSymbolLayerV2Utils::pixelSizeScaleFactor(), qgsDoubleNear(), QgsRenderContext::rasterScaleFactor(), QgsSymbolV2RenderContext::renderContext(), QgsRenderContext::rendererScale(), QgsMarkerSymbolV2::renderPoint(), QgsRenderContext::scaleFactor(), QgsRenderContext::setForceVectorOutput(), QgsRenderContext::setMapToPixel(), QgsRenderContext::setPainter(), QgsRenderContext::setRasterScaleFactor(), QgsRenderContext::setRendererScale(), QgsRenderContext::setScaleFactor(), QgsSymbolV2::startRender(), and QgsSymbolV2::stopRender().
Referenced by applyDataDefinedSettings(), and startRender().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 3031 of file qgsfillsymbollayerv2.cpp.
References QgsMarkerSymbolV2::clone(), create(), mMarkerSymbol, properties(), and setSubSymbol().
|
static |
Definition at line 2838 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::decodeMapUnitScale(), QgsSymbolLayerV2Utils::decodeOutputUnit(), QgsPointPatternFillSymbolLayer(), QgsSymbolLayerV2::setDataDefinedProperty(), setDisplacementX(), setDisplacementXMapUnitScale(), setDisplacementXUnit(), setDisplacementY(), setDisplacementYMapUnitScale(), setDisplacementYUnit(), setDistanceX(), setDistanceXMapUnitScale(), setDistanceXUnit(), setDistanceY(), setDistanceYMapUnitScale(), setDistanceYUnit(), QgsImageFillSymbolLayer::setOutlineWidthMapUnitScale(), and QgsImageFillSymbolLayer::setOutlineWidthUnit().
Referenced by clone(), and QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
static |
Definition at line 3078 of file qgsfillsymbollayerv2.cpp.
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
inline |
Definition at line 804 of file qgsfillsymbollayerv2.h.
Referenced by applyDataDefinedSettings().
|
inline |
Definition at line 829 of file qgsfillsymbollayerv2.h.
|
inline |
Definition at line 826 of file qgsfillsymbollayerv2.h.
|
inline |
Definition at line 807 of file qgsfillsymbollayerv2.h.
Referenced by applyDataDefinedSettings().
|
inline |
Definition at line 835 of file qgsfillsymbollayerv2.h.
|
inline |
Definition at line 832 of file qgsfillsymbollayerv2.h.
|
inline |
Definition at line 798 of file qgsfillsymbollayerv2.h.
Referenced by applyDataDefinedSettings().
|
inline |
Definition at line 817 of file qgsfillsymbollayerv2.h.
|
inline |
Definition at line 814 of file qgsfillsymbollayerv2.h.
|
inline |
Definition at line 801 of file qgsfillsymbollayerv2.h.
Referenced by applyDataDefinedSettings().
|
inline |
Definition at line 823 of file qgsfillsymbollayerv2.h.
|
inline |
Definition at line 820 of file qgsfillsymbollayerv2.h.
|
virtual |
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 from QgsImageFillSymbolLayer.
Definition at line 3138 of file qgsfillsymbollayerv2.cpp.
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 2919 of file qgsfillsymbollayerv2.cpp.
|
virtual |
Reimplemented from QgsImageFillSymbolLayer.
Definition at line 2826 of file qgsfillsymbollayerv2.cpp.
References QgsImageFillSymbolLayer::mapUnitScale(), mDisplacementXMapUnitScale, mDisplacementYMapUnitScale, mDistanceXMapUnitScale, and mDistanceYMapUnitScale.
|
virtual |
Reimplemented from QgsImageFillSymbolLayer.
Definition at line 2807 of file qgsfillsymbollayerv2.cpp.
References mDisplacementXUnit, mDisplacementYUnit, mDistanceXUnit, mDistanceYUnit, QgsSymbolV2::Mixed, and QgsImageFillSymbolLayer::outputUnit().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 3010 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeMapUnitScale(), QgsSymbolLayerV2Utils::encodeOutputUnit(), mDisplacementX, mDisplacementXMapUnitScale, mDisplacementXUnit, mDisplacementY, mDisplacementYMapUnitScale, mDisplacementYUnit, mDistanceX, mDistanceXMapUnitScale, mDistanceXUnit, mDistanceY, mDistanceYMapUnitScale, mDistanceYUnit, QgsImageFillSymbolLayer::mOutlineWidthMapUnitScale, QgsImageFillSymbolLayer::mOutlineWidthUnit, and QgsSymbolLayerV2::saveDataDefinedProperties().
Referenced by clone().
|
inline |
Definition at line 805 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 828 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 825 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 808 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 834 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 831 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 799 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 816 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 813 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 802 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 822 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
inline |
Definition at line 819 of file qgsfillsymbollayerv2.h.
Referenced by create().
|
virtual |
Reimplemented from QgsImageFillSymbolLayer.
Definition at line 2817 of file qgsfillsymbollayerv2.cpp.
References mDisplacementXMapUnitScale, mDisplacementYMapUnitScale, mDistanceXMapUnitScale, mDistanceYMapUnitScale, and QgsImageFillSymbolLayer::setMapUnitScale().
|
virtual |
Reimplemented from QgsImageFillSymbolLayer.
Definition at line 2798 of file qgsfillsymbollayerv2.cpp.
References mDisplacementXUnit, mDisplacementYUnit, mDistanceXUnit, mDistanceYUnit, and QgsImageFillSymbolLayer::setOutputUnit().
|
virtual |
Reimplemented from QgsImageFillSymbolLayer.
Definition at line 3084 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolV2::Marker, mMarkerSymbol, and QgsSymbolV2::type().
Referenced by clone(), and QgsPointPatternFillSymbolLayer().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 2991 of file qgsfillsymbollayerv2.cpp.
References applyPattern(), QgsSymbolV2RenderContext::fields(), QgsImageFillSymbolLayer::mBrush, mDisplacementX, mDisplacementY, mDistanceX, mDistanceY, QgsImageFillSymbolLayer::mOutline, QgsSymbolLayerV2::prepareExpressions(), QgsSymbolV2RenderContext::renderContext(), QgsRenderContext::rendererScale(), and QgsSymbolV2::startRender().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 3002 of file qgsfillsymbollayerv2.cpp.
References QgsImageFillSymbolLayer::mOutline, QgsSymbolV2RenderContext::renderContext(), and QgsSymbolV2::stopRender().
|
inlinevirtual |
Reimplemented from QgsImageFillSymbolLayer.
Definition at line 811 of file qgsfillsymbollayerv2.h.
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Definition at line 3041 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::createGeometryElement(), QgsSymbolLayerV2Utils::createVendorOptionElement(), QgsSymbolLayerV2Utils::encodePoint(), QgsSymbolLayerV2::layerType(), mDistanceX, mDistanceY, mMarkerSymbol, QgsSymbolV2::symbolLayer(), QgsSymbolV2::symbolLayerCount(), and QgsMarkerSymbolLayerV2::writeSldMarker().
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Definition at line 3143 of file qgsfillsymbollayerv2.cpp.
References mMarkerSymbol, QgsSymbolLayerV2::usedAttributes(), and QgsSymbolV2::usedAttributes().
|
protected |
Definition at line 853 of file qgsfillsymbollayerv2.h.
Referenced by applyDataDefinedSettings(), properties(), QgsPointPatternFillSymbolLayer(), and startRender().
|
protected |
Definition at line 855 of file qgsfillsymbollayerv2.h.
Referenced by applyPattern(), mapUnitScale(), properties(), and setMapUnitScale().
|
protected |
Definition at line 854 of file qgsfillsymbollayerv2.h.
Referenced by applyPattern(), outputUnit(), properties(), and setOutputUnit().
|
protected |
Definition at line 856 of file qgsfillsymbollayerv2.h.
Referenced by applyDataDefinedSettings(), properties(), QgsPointPatternFillSymbolLayer(), and startRender().
|
protected |
Definition at line 858 of file qgsfillsymbollayerv2.h.
Referenced by applyPattern(), mapUnitScale(), properties(), and setMapUnitScale().
|
protected |
Definition at line 857 of file qgsfillsymbollayerv2.h.
Referenced by applyPattern(), outputUnit(), properties(), and setOutputUnit().
|
protected |
Definition at line 847 of file qgsfillsymbollayerv2.h.
Referenced by applyDataDefinedSettings(), properties(), QgsPointPatternFillSymbolLayer(), startRender(), and toSld().
|
protected |
Definition at line 849 of file qgsfillsymbollayerv2.h.
Referenced by applyPattern(), mapUnitScale(), properties(), and setMapUnitScale().
|
protected |
Definition at line 848 of file qgsfillsymbollayerv2.h.
Referenced by applyPattern(), outputUnit(), properties(), and setOutputUnit().
|
protected |
Definition at line 850 of file qgsfillsymbollayerv2.h.
Referenced by applyDataDefinedSettings(), properties(), QgsPointPatternFillSymbolLayer(), startRender(), and toSld().
|
protected |
Definition at line 852 of file qgsfillsymbollayerv2.h.
Referenced by mapUnitScale(), properties(), and setMapUnitScale().
|
protected |
Definition at line 851 of file qgsfillsymbollayerv2.h.
Referenced by applyPattern(), outputUnit(), properties(), and setOutputUnit().
|
protected |
Definition at line 846 of file qgsfillsymbollayerv2.h.
Referenced by applyPattern(), clone(), setSubSymbol(), toSld(), and usedAttributes().