QGIS API Documentation
2.0.1-Dufour
|
#include <qgssymbollayerv2.h>
Public Member Functions | |
virtual void | renderPoint (const QPointF &point, QgsSymbolV2RenderContext &context)=0 |
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 |
virtual void | writeSldMarker (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 |
virtual void | setOutputUnit (QgsSymbolV2::OutputUnit unit) |
virtual QgsSymbolV2::OutputUnit | outputUnit () const |
Public Member Functions inherited from QgsSymbolLayerV2 | |
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 QString | ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const |
virtual QgsStringMap | properties () const =0 |
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 () |
Protected Member Functions | |
QgsMarkerSymbolLayerV2 (bool locked=false) | |
void | markerOffset (QgsSymbolV2RenderContext &context, double &offsetX, double &offsetY) |
Protected Member Functions inherited from QgsSymbolLayerV2 | |
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. |
Static Protected Member Functions | |
static QPointF | _rotatedOffset (const QPointF &offset, double angle) |
Protected Attributes | |
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 | |
Static Protected Attributes inherited from QgsSymbolLayerV2 | |
static const bool | selectionIsOpaque = true |
static const bool | selectFillBorder = false |
static const bool | selectFillStyle = false |
Definition at line 121 of file qgssymbollayerv2.h.
|
protected |
Definition at line 150 of file qgssymbollayerv2.cpp.
|
staticprotected |
Definition at line 195 of file qgssymbollayerv2.cpp.
References DEG2RAD.
Referenced by QgsEllipseSymbolLayerV2::renderPoint(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), and QgsFontMarkerSymbolLayerV2::renderPoint().
|
inline |
Definition at line 129 of file qgssymbollayerv2.h.
Referenced by QgsMarkerSymbolV2::angle(), QgsVectorFieldSymbolLayer::convertPolarToCartesian(), QgsSimpleMarkerSymbolLayerV2::create(), QgsSvgMarkerSymbolLayerV2::create(), QgsFontMarkerSymbolLayerV2::create(), QgsEllipseSymbolLayerV2::createFromSld(), QgsSimpleMarkerSymbolLayerV2::createFromSld(), QgsSvgMarkerSymbolLayerV2::createFromSld(), QgsFontMarkerSymbolLayerV2::createFromSld(), QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsSvgMarkerSymbolLayerV2::QgsSvgMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsMarkerSymbolV2::setAngle(), QgsEllipseSymbolLayerV2::writeSldMarker(), QgsSimpleMarkerSymbolLayerV2::writeSldMarker(), QgsSvgMarkerSymbolLayerV2::writeSldMarker(), and QgsFontMarkerSymbolLayerV2::writeSldMarker().
|
virtual |
Implements QgsSymbolLayerV2.
Reimplemented in QgsVectorFieldSymbolLayer.
Definition at line 165 of file qgssymbollayerv2.cpp.
References renderPoint(), QgsSymbolLayerV2::startRender(), and QgsSymbolLayerV2::stopRender().
|
protected |
Definition at line 178 of file qgssymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::decodePoint(), QgsExpression::evaluate(), QgsSymbolLayerV2::expression(), QgsSymbolV2RenderContext::feature(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), mOffset, mOffsetUnit, offset(), and QgsSymbolV2RenderContext::renderContext().
Referenced by QgsEllipseSymbolLayerV2::renderPoint(), and QgsSimpleMarkerSymbolLayerV2::renderPoint().
|
inline |
Definition at line 138 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::createFromSld(), QgsSvgMarkerSymbolLayerV2::createFromSld(), QgsFontMarkerSymbolLayerV2::createFromSld(), markerOffset(), and QgsSvgMarkerSymbolLayerV2::renderPoint().
|
inline |
Definition at line 146 of file qgssymbollayerv2.h.
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsEllipseSymbolLayerV2.
Definition at line 202 of file qgssymbollayerv2.cpp.
References QgsSymbolV2::Mixed, mOffsetUnit, and mSizeUnit.
|
pure virtual |
Implemented in QgsFontMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsEllipseSymbolLayerV2.
Referenced by drawPreviewIcon(), and QgsMarkerSymbolV2::renderPoint().
|
inline |
Definition at line 135 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::create(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), and QgsMarkerSymbolV2::scaleMethod().
|
inline |
Definition at line 128 of file qgssymbollayerv2.h.
References MathUtils::angle().
Referenced by QgsEllipseSymbolLayerV2::create(), QgsEllipseSymbolLayerV2::createFromSld(), QgsSimpleMarkerSymbolLayerV2::createFromSld(), QgsSvgMarkerSymbolLayerV2::createFromSld(), QgsFontMarkerSymbolLayerV2::createFromSld(), and QgsMarkerSymbolV2::setAngle().
|
inline |
Definition at line 137 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::clone(), QgsSvgMarkerSymbolLayerV2::clone(), QgsFontMarkerSymbolLayerV2::clone(), QgsEllipseSymbolLayerV2::create(), QgsSimpleMarkerSymbolLayerV2::create(), QgsSvgMarkerSymbolLayerV2::create(), QgsFontMarkerSymbolLayerV2::create(), QgsSimpleMarkerSymbolLayerV2::createFromSld(), QgsSvgMarkerSymbolLayerV2::createFromSld(), and QgsFontMarkerSymbolLayerV2::createFromSld().
|
inline |
Definition at line 145 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::clone(), QgsSvgMarkerSymbolLayerV2::clone(), QgsFontMarkerSymbolLayerV2::clone(), QgsEllipseSymbolLayerV2::create(), QgsSimpleMarkerSymbolLayerV2::create(), QgsSvgMarkerSymbolLayerV2::create(), and QgsFontMarkerSymbolLayerV2::create().
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsEllipseSymbolLayerV2.
Definition at line 172 of file qgssymbollayerv2.cpp.
References mOffsetUnit, and mSizeUnit.
|
inline |
Definition at line 134 of file qgssymbollayerv2.h.
Referenced by QgsMarkerSymbolV2::setScaleMethod().
|
inline |
Definition at line 131 of file qgssymbollayerv2.h.
References size.
Referenced by QgsMarkerSymbolV2::setSize().
|
inline |
Definition at line 148 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::clone(), QgsSvgMarkerSymbolLayerV2::clone(), QgsFontMarkerSymbolLayerV2::clone(), QgsSimpleMarkerSymbolLayerV2::create(), QgsSvgMarkerSymbolLayerV2::create(), and QgsFontMarkerSymbolLayerV2::create().
|
inline |
Definition at line 132 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::create(), QgsSvgMarkerSymbolLayerV2::create(), QgsEllipseSymbolLayerV2::createFromSld(), QgsSimpleMarkerSymbolLayerV2::createFromSld(), QgsSvgMarkerSymbolLayerV2::createFromSld(), QgsFontMarkerSymbolLayerV2::createFromSld(), QgsVectorFieldSymbolLayer::drawPreviewIcon(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsSvgMarkerSymbolLayerV2::QgsSvgMarkerSymbolLayerV2(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsMarkerSymbolV2::setSize(), and QgsMarkerSymbolV2::size().
|
inline |
Definition at line 149 of file qgssymbollayerv2.h.
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Reimplemented in QgsVectorFieldSymbolLayer, and QgsEllipseSymbolLayerV2.
Definition at line 273 of file qgssymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::createGeometryElement(), and writeSldMarker().
|
inlinevirtual |
Reimplemented in QgsFontMarkerSymbolLayerV2, QgsSvgMarkerSymbolLayerV2, QgsSimpleMarkerSymbolLayerV2, and QgsEllipseSymbolLayerV2.
Definition at line 142 of file qgssymbollayerv2.h.
References QgsSymbolLayerV2::layerType().
Referenced by toSld(), QgsMarkerLineSymbolLayerV2::toSld(), and QgsPointPatternFillSymbolLayer::toSld().
|
protected |
Definition at line 159 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::clone(), QgsSvgMarkerSymbolLayerV2::clone(), QgsFontMarkerSymbolLayerV2::clone(), QgsEllipseSymbolLayerV2::properties(), QgsSimpleMarkerSymbolLayerV2::properties(), QgsSvgMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::properties(), QgsEllipseSymbolLayerV2::QgsEllipseSymbolLayerV2(), QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsSvgMarkerSymbolLayerV2::QgsSvgMarkerSymbolLayerV2(), QgsEllipseSymbolLayerV2::renderPoint(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsFontMarkerSymbolLayerV2::renderPoint(), QgsSimpleMarkerSymbolLayerV2::startRender(), QgsEllipseSymbolLayerV2::writeSldMarker(), QgsSimpleMarkerSymbolLayerV2::writeSldMarker(), QgsSvgMarkerSymbolLayerV2::writeSldMarker(), and QgsFontMarkerSymbolLayerV2::writeSldMarker().
|
protected |
Definition at line 162 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::clone(), QgsSvgMarkerSymbolLayerV2::clone(), QgsFontMarkerSymbolLayerV2::clone(), markerOffset(), QgsEllipseSymbolLayerV2::properties(), QgsSimpleMarkerSymbolLayerV2::properties(), QgsSvgMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::properties(), QgsEllipseSymbolLayerV2::QgsEllipseSymbolLayerV2(), QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsSvgMarkerSymbolLayerV2::QgsSvgMarkerSymbolLayerV2(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsFontMarkerSymbolLayerV2::renderPoint(), QgsSimpleMarkerSymbolLayerV2::writeSldMarker(), QgsSvgMarkerSymbolLayerV2::writeSldMarker(), and QgsFontMarkerSymbolLayerV2::writeSldMarker().
|
protected |
Definition at line 163 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::clone(), QgsSvgMarkerSymbolLayerV2::clone(), QgsFontMarkerSymbolLayerV2::clone(), markerOffset(), outputUnit(), QgsSvgMarkerSymbolLayerV2::outputUnit(), QgsEllipseSymbolLayerV2::properties(), QgsSimpleMarkerSymbolLayerV2::properties(), QgsSvgMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsFontMarkerSymbolLayerV2::renderPoint(), setOutputUnit(), and QgsSvgMarkerSymbolLayerV2::setOutputUnit().
|
protected |
Definition at line 164 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::clone(), QgsSimpleMarkerSymbolLayerV2::properties(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), and QgsSvgMarkerSymbolLayerV2::renderPoint().
|
protected |
Definition at line 160 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::clone(), QgsSvgMarkerSymbolLayerV2::clone(), QgsFontMarkerSymbolLayerV2::clone(), QgsSimpleMarkerSymbolLayerV2::ogrFeatureStyle(), QgsSimpleMarkerSymbolLayerV2::prepareCache(), QgsEllipseSymbolLayerV2::preparePath(), QgsSimpleMarkerSymbolLayerV2::properties(), QgsSvgMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsSvgMarkerSymbolLayerV2::QgsSvgMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), QgsFontMarkerSymbolLayerV2::renderPoint(), QgsSimpleMarkerSymbolLayerV2::startRender(), QgsSvgMarkerSymbolLayerV2::startRender(), QgsFontMarkerSymbolLayerV2::startRender(), QgsSimpleMarkerSymbolLayerV2::writeSldMarker(), QgsSvgMarkerSymbolLayerV2::writeSldMarker(), and QgsFontMarkerSymbolLayerV2::writeSldMarker().
|
protected |
Definition at line 161 of file qgssymbollayerv2.h.
Referenced by QgsSimpleMarkerSymbolLayerV2::clone(), QgsSvgMarkerSymbolLayerV2::clone(), QgsFontMarkerSymbolLayerV2::clone(), outputUnit(), QgsSvgMarkerSymbolLayerV2::outputUnit(), QgsSimpleMarkerSymbolLayerV2::prepareCache(), QgsSimpleMarkerSymbolLayerV2::properties(), QgsSvgMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::properties(), QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2(), QgsSimpleMarkerSymbolLayerV2::renderPoint(), QgsSvgMarkerSymbolLayerV2::renderPoint(), setOutputUnit(), QgsSvgMarkerSymbolLayerV2::setOutputUnit(), QgsSimpleMarkerSymbolLayerV2::startRender(), and QgsFontMarkerSymbolLayerV2::startRender().