QGIS API Documentation
2.0.1-Dufour
|
#include <qgsmarkersymbollayerv2.h>
Public Member Functions | |
QgsSvgMarkerSymbolLayerV2 (QString name=DEFAULT_SVGMARKER_NAME, double size=DEFAULT_SVGMARKER_SIZE, double angle=DEFAULT_SVGMARKER_ANGLE) | |
QString | layerType () const |
void | startRender (QgsSymbolV2RenderContext &context) |
void | stopRender (QgsSymbolV2RenderContext &context) |
void | renderPoint (const QPointF &point, QgsSymbolV2RenderContext &context) |
QgsStringMap | properties () const |
QgsSymbolLayerV2 * | clone () const |
void | writeSldMarker (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
QString | path () const |
void | setPath (QString path) |
QColor | fillColor () const |
void | setFillColor (const QColor &c) |
QColor | outlineColor () const |
void | setOutlineColor (const QColor &c) |
double | outlineWidth () const |
void | setOutlineWidth (double w) |
void | setOutlineWidthUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | outlineWidthUnit () const |
void | setOutputUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | outputUnit () const |
Public Member Functions inherited from QgsMarkerSymbolLayerV2 | |
void | drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size) |
void | setAngle (double angle) |
double | angle () const |
void | setSize (double size) |
double | size () const |
void | setScaleMethod (QgsSymbolV2::ScaleMethod scaleMethod) |
QgsSymbolV2::ScaleMethod | scaleMethod () const |
void | setOffset (QPointF offset) |
QPointF | offset () |
virtual void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
void | setOffsetUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | offsetUnit () const |
void | setSizeUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | sizeUnit () const |
Public Member Functions inherited from QgsSymbolLayerV2 | |
virtual void | setColor (const QColor &color) |
virtual QColor | color () const |
virtual | ~QgsSymbolLayerV2 () |
virtual QString | ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const |
virtual QgsSymbolV2 * | subSymbol () |
virtual bool | setSubSymbol (QgsSymbolV2 *symbol) |
QgsSymbolV2::SymbolType | type () const |
void | setLocked (bool locked) |
bool | isLocked () 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 () |
Static Public Member Functions | |
static QgsSymbolLayerV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
static QgsSymbolLayerV2 * | createFromSld (QDomElement &element) |
Protected Attributes | |
QString | mPath |
QColor | mFillColor |
QColor | mOutlineColor |
double | mOutlineWidth |
QgsSymbolV2::OutputUnit | mOutlineWidthUnit |
double | mOrigSize |
Protected Attributes inherited from QgsMarkerSymbolLayerV2 | |
double | mAngle |
double | mSize |
QgsSymbolV2::OutputUnit | mSizeUnit |
QPointF | mOffset |
QgsSymbolV2::OutputUnit | mOffsetUnit |
QgsSymbolV2::ScaleMethod | mScaleMethod |
Protected Attributes inherited from QgsSymbolLayerV2 | |
QgsSymbolV2::SymbolType | mType |
bool | mLocked |
QColor | mColor |
int | mRenderingPass |
QMap< QString, QgsExpression * > | mDataDefinedProperties |
Additional Inherited Members | |
Protected Member Functions inherited from QgsMarkerSymbolLayerV2 | |
QgsMarkerSymbolLayerV2 (bool locked=false) | |
void | markerOffset (QgsSymbolV2RenderContext &context, double &offsetX, double &offsetY) |
Static Protected Member Functions inherited from QgsMarkerSymbolLayerV2 | |
static QPointF | _rotatedOffset (const QPointF &offset, double angle) |
Static Protected Attributes inherited from QgsSymbolLayerV2 | |
static const bool | selectionIsOpaque = true |
static const bool | selectFillBorder = false |
static const bool | selectFillStyle = false |
Definition at line 114 of file qgsmarkersymbollayerv2.h.
QgsSvgMarkerSymbolLayerV2::QgsSvgMarkerSymbolLayerV2 | ( | QString | name = DEFAULT_SVGMARKER_NAME , |
double | size = DEFAULT_SVGMARKER_SIZE , |
||
double | angle = DEFAULT_SVGMARKER_ANGLE |
||
) |
Definition at line 706 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsMarkerSymbolLayerV2::mAngle, mFillColor, QgsSymbolV2::MM, QgsMarkerSymbolLayerV2::mOffset, mOutlineColor, mOutlineWidth, mOutlineWidthUnit, mPath, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::size(), and QgsSymbolLayerV2Utils::symbolNameToPath().
Referenced by clone(), create(), and createFromSld().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 1010 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolLayerV2::copyDataDefinedProperties(), QgsMarkerSymbolLayerV2::mAngle, mFillColor, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mOffsetUnit, mOutlineColor, mOutlineWidth, mOutlineWidthUnit, mPath, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, QgsSvgMarkerSymbolLayerV2(), setFillColor(), QgsMarkerSymbolLayerV2::setOffset(), QgsMarkerSymbolLayerV2::setOffsetUnit(), setOutlineColor(), setOutlineWidth(), setOutlineWidthUnit(), and QgsMarkerSymbolLayerV2::setSizeUnit().
|
static |
Definition at line 719 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSvgCache::containsParams(), QgsSymbolLayerV2Utils::decodeOutputUnit(), QgsSymbolLayerV2Utils::decodePoint(), DEFAULT_SVGMARKER_ANGLE, DEFAULT_SVGMARKER_NAME, DEFAULT_SVGMARKER_SIZE, fillColor(), QgsSvgCache::instance(), outlineColor(), outlineWidth(), QgsSvgMarkerSymbolLayerV2(), QgsSymbolLayerV2::setDataDefinedProperty(), setFillColor(), QgsMarkerSymbolLayerV2::setOffset(), QgsMarkerSymbolLayerV2::setOffsetUnit(), setOutlineColor(), setOutlineWidth(), setOutlineWidthUnit(), QgsMarkerSymbolLayerV2::setSizeUnit(), and QgsMarkerSymbolLayerV2::size().
Referenced by QgsPalLabeling::drawLabelBackground(), and QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
static |
Definition at line 1068 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2Utils::displacementFromSldElement(), QgsSymbolLayerV2Utils::externalGraphicFromSld(), fillColor(), QgsMarkerSymbolLayerV2::offset(), path(), QgsDebugMsg, QgsSvgMarkerSymbolLayerV2(), QgsSymbolLayerV2Utils::rotationFromSldElement(), QgsMarkerSymbolLayerV2::setAngle(), setFillColor(), QgsMarkerSymbolLayerV2::setOffset(), and QgsMarkerSymbolLayerV2::size().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
inline |
Definition at line 145 of file qgsmarkersymbollayerv2.h.
Referenced by create(), createFromSld(), renderPoint(), and setPath().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 824 of file qgsmarkersymbollayerv2.cpp.
|
inline |
Definition at line 148 of file qgsmarkersymbollayerv2.h.
Referenced by create(), renderPoint(), and setPath().
|
inline |
Definition at line 151 of file qgsmarkersymbollayerv2.h.
Referenced by create(), renderPoint(), and setPath().
|
inline |
Definition at line 155 of file qgsmarkersymbollayerv2.h.
|
virtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 1031 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolV2::Mixed, QgsMarkerSymbolLayerV2::mOffsetUnit, mOutlineWidthUnit, and QgsMarkerSymbolLayerV2::mSizeUnit.
|
inline |
Definition at line 142 of file qgsmarkersymbollayerv2.h.
Referenced by createFromSld(), renderPoint(), and setPath().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 993 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeOutputUnit(), QgsSymbolLayerV2Utils::encodePoint(), QgsMarkerSymbolLayerV2::mAngle, mFillColor, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mOffsetUnit, mOutlineColor, mOutlineWidth, mOutlineWidthUnit, mPath, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, QgsSymbolLayerV2::saveDataDefinedProperties(), and QgsSymbolLayerV2Utils::symbolPathToName().
|
virtual |
Implements QgsMarkerSymbolLayerV2.
Definition at line 841 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::_rotatedOffset(), QgsSymbolV2RenderContext::alpha(), QgsMarkerSymbolLayerV2::angle(), QgsSymbolV2::DataDefinedSizeScale, QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodePoint(), QgsExpression::evaluate(), QgsSymbolLayerV2::expression(), QgsSymbolV2RenderContext::feature(), fillColor(), QgsRenderContext::forceVectorOutput(), QgsSvgCache::instance(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), QgsMarkerSymbolLayerV2::mAngle, mFillColor, QgsSymbolV2::MM, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mOffsetUnit, mOutlineColor, mOutlineWidth, mPath, QgsMarkerSymbolLayerV2::mScaleMethod, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, QgsSymbolLayerV2Utils::multiplyImageOpacity(), QgsMarkerSymbolLayerV2::offset(), outlineColor(), outlineWidth(), QgsRenderContext::painter(), path(), qgsDoubleNear(), QgsRenderContext::rasterScaleFactor(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolV2RenderContext::renderHints(), QgsSymbolV2::ScaleArea, QgsSymbolV2::ScaleDiameter, QgsRenderContext::scaleFactor(), QgsSymbolV2RenderContext::selected(), QgsRenderContext::selectionColor(), QgsMarkerSymbolLayerV2::size(), QgsSvgCache::svgAsImage(), and QgsSvgCache::svgAsPicture().
Referenced by QgsPalLabeling::drawLabelBackground().
|
inline |
Definition at line 146 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), create(), createFromSld(), and setPath().
|
inline |
Definition at line 149 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 152 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 154 of file qgsmarkersymbollayerv2.h.
|
virtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 1024 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::mOffsetUnit, mOutlineWidthUnit, and QgsMarkerSymbolLayerV2::mSizeUnit.
void QgsSvgMarkerSymbolLayerV2::setPath | ( | QString | path | ) |
Definition at line 802 of file qgsmarkersymbollayerv2.cpp.
References QgsSvgCache::containsParams(), fillColor(), QgsSvgCache::instance(), mPath, outlineColor(), outlineWidth(), path(), setFillColor(), setOutlineColor(), and setOutlineWidth().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 829 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolV2RenderContext::layer(), mOrigSize, QgsMarkerSymbolLayerV2::mSize, and QgsSymbolLayerV2::prepareExpressions().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 836 of file qgsmarkersymbollayerv2.cpp.
|
virtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 1041 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2Utils::createDisplacementElement(), QgsSymbolLayerV2Utils::createRotationElement(), QgsSymbolLayerV2Utils::externalGraphicToSld(), QgsMarkerSymbolLayerV2::mAngle, mFillColor, QgsMarkerSymbolLayerV2::mOffset, mPath, and QgsMarkerSymbolLayerV2::mSize.
|
protected |
Definition at line 165 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), QgsSvgMarkerSymbolLayerV2(), renderPoint(), and writeSldMarker().
|
protected |
Definition at line 169 of file qgsmarkersymbollayerv2.h.
Referenced by startRender().
|
protected |
Definition at line 166 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), QgsSvgMarkerSymbolLayerV2(), and renderPoint().
|
protected |
Definition at line 167 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), QgsSvgMarkerSymbolLayerV2(), and renderPoint().
|
protected |
Definition at line 168 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), outputUnit(), properties(), QgsSvgMarkerSymbolLayerV2(), and setOutputUnit().
|
protected |
Definition at line 161 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), QgsSvgMarkerSymbolLayerV2(), renderPoint(), setPath(), and writeSldMarker().