QGIS API Documentation
2.0.1-Dufour
|
#include <qgsmarkersymbollayerv2.h>
Static Public Member Functions | |
static QgsSymbolLayerV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
static QgsSymbolLayerV2 * | createFromSld (QDomElement &element) |
Protected Member Functions | |
void | drawMarker (QPainter *p, QgsSymbolV2RenderContext &context) |
bool | prepareShape (QString name=QString()) |
bool | preparePath (QString name=QString()) |
bool | prepareCache (QgsSymbolV2RenderContext &context) |
Prepares cache image. | |
Protected Member Functions inherited from QgsMarkerSymbolLayerV2 | |
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. |
Protected Attributes | |
QColor | mBorderColor |
double | mOutlineWidth |
QgsSymbolV2::OutputUnit | mOutlineWidthUnit |
QPen | mPen |
QBrush | mBrush |
QPolygonF | mPolygon |
QPainterPath | mPath |
QString | mName |
QImage | mCache |
QPen | mSelPen |
QBrush | mSelBrush |
QImage | mSelCache |
bool | mUsingCache |
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 |
Static Protected Attributes | |
static const int | mMaximumCacheWidth = 3000 |
Additional Inherited Members | |
Static Protected Member Functions inherited from QgsMarkerSymbolLayerV2 | |
static QPointF | _rotatedOffset (const QPointF &offset, double angle) |
Definition at line 34 of file qgsmarkersymbollayerv2.h.
QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2 | ( | QString | name = DEFAULT_SIMPLEMARKER_NAME , |
QColor | color = DEFAULT_SIMPLEMARKER_COLOR , |
||
QColor | borderColor = DEFAULT_SIMPLEMARKER_BORDERCOLOR , |
||
double | size = DEFAULT_SIMPLEMARKER_SIZE , |
||
double | angle = DEFAULT_SIMPLEMARKER_ANGLE , |
||
QgsSymbolV2::ScaleMethod | scaleMethod = DEFAULT_SCALE_METHOD |
||
) |
Definition at line 35 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), borderColor(), QgsSymbolLayerV2::color(), QgsMarkerSymbolLayerV2::mAngle, mBorderColor, QgsSymbolLayerV2::mColor, QgsSymbolV2::MM, mName, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mOffsetUnit, QgsMarkerSymbolLayerV2::mScaleMethod, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, name(), QgsMarkerSymbolLayerV2::scaleMethod(), and QgsMarkerSymbolLayerV2::size().
Referenced by clone(), create(), and createFromSld().
|
inline |
Definition at line 70 of file qgsmarkersymbollayerv2.h.
Referenced by create(), createFromSld(), and QgsSimpleMarkerSymbolLayerV2().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 555 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolLayerV2::copyDataDefinedProperties(), QgsMarkerSymbolLayerV2::mAngle, mBorderColor, QgsSymbolLayerV2::mColor, mName, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mOffsetUnit, mOutlineWidth, mOutlineWidthUnit, QgsMarkerSymbolLayerV2::mScaleMethod, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, QgsSimpleMarkerSymbolLayerV2(), QgsMarkerSymbolLayerV2::setOffset(), QgsMarkerSymbolLayerV2::setOffsetUnit(), setOutlineWidth(), setOutlineWidthUnit(), and QgsMarkerSymbolLayerV2::setSizeUnit().
|
static |
Definition at line 49 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), borderColor(), QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodeOutputUnit(), QgsSymbolLayerV2Utils::decodePoint(), QgsSymbolLayerV2Utils::decodeScaleMethod(), DEFAULT_SCALE_METHOD, DEFAULT_SIMPLEMARKER_ANGLE, DEFAULT_SIMPLEMARKER_BORDERCOLOR, DEFAULT_SIMPLEMARKER_COLOR, DEFAULT_SIMPLEMARKER_NAME, DEFAULT_SIMPLEMARKER_SIZE, name(), QgsSimpleMarkerSymbolLayerV2(), QgsMarkerSymbolLayerV2::scaleMethod(), QgsSymbolLayerV2::setDataDefinedProperty(), QgsMarkerSymbolLayerV2::setOffset(), QgsMarkerSymbolLayerV2::setOffsetUnit(), setOutlineWidth(), setOutlineWidthUnit(), QgsMarkerSymbolLayerV2::setSizeUnit(), and QgsMarkerSymbolLayerV2::size().
Referenced by QgsMarkerSymbolV2::createSimple(), QgsSymbolLayerV2Registry::defaultSymbolLayer(), and QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
static |
Definition at line 655 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), borderColor(), QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::displacementFromSldElement(), name(), QgsMarkerSymbolLayerV2::offset(), QgsDebugMsg, QgsSimpleMarkerSymbolLayerV2(), QgsSymbolLayerV2Utils::rotationFromSldElement(), QgsMarkerSymbolLayerV2::setAngle(), QgsMarkerSymbolLayerV2::setOffset(), QgsMarkerSymbolLayerV2::size(), and QgsSymbolLayerV2Utils::wellKnownMarkerFromSld().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
protected |
Definition at line 689 of file qgsmarkersymbollayerv2.cpp.
References mPath, and mPolygon.
Referenced by prepareCache().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 121 of file qgsmarkersymbollayerv2.cpp.
|
inline |
Definition at line 67 of file qgsmarkersymbollayerv2.h.
Referenced by create(), createFromSld(), QgsSimpleMarkerSymbolLayerV2(), and renderPoint().
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Definition at line 593 of file qgsmarkersymbollayerv2.cpp.
References mBorderColor, QgsSymbolLayerV2::mColor, mName, and QgsMarkerSymbolLayerV2::mSize.
|
inline |
Definition at line 73 of file qgsmarkersymbollayerv2.h.
Referenced by renderPoint().
|
inline |
Definition at line 76 of file qgsmarkersymbollayerv2.h.
|
protected |
Prepares cache image.
Definition at line 218 of file qgsmarkersymbollayerv2.cpp.
References drawMarker(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), mBrush, mCache, mMaximumCacheWidth, mPen, mSelBrush, mSelCache, mSelPen, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, QgsSymbolV2RenderContext::renderContext(), and QgsRenderContext::selectionColor().
Referenced by startRender().
|
protected |
Definition at line 377 of file qgsmarkersymbollayerv2.cpp.
Referenced by renderPoint(), and startRender().
|
protected |
Definition at line 283 of file qgsmarkersymbollayerv2.cpp.
References DEG2RAD, mName, and mPolygon.
Referenced by renderPoint(), and startRender().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 535 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2Utils::encodeOutputUnit(), QgsSymbolLayerV2Utils::encodePoint(), QgsSymbolLayerV2Utils::encodeScaleMethod(), QgsMarkerSymbolLayerV2::mAngle, mBorderColor, QgsSymbolLayerV2::mColor, mName, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mOffsetUnit, mOutlineWidth, mOutlineWidthUnit, QgsMarkerSymbolLayerV2::mScaleMethod, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, and QgsSymbolLayerV2::saveDataDefinedProperties().
|
virtual |
Implements QgsMarkerSymbolLayerV2.
Definition at line 424 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::_rotatedOffset(), QgsMarkerSymbolLayerV2::angle(), QgsSymbolV2::DataDefinedRotation, QgsSymbolV2::DataDefinedSizeScale, QgsSymbolLayerV2Utils::decodeColor(), QgsExpression::evaluate(), QgsSymbolLayerV2::expression(), QgsSymbolV2RenderContext::feature(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), QgsMarkerSymbolLayerV2::mAngle, QgsMarkerSymbolLayerV2::markerOffset(), mBrush, mCache, mOutlineWidthUnit, mPath, mPen, mPolygon, QgsMarkerSymbolLayerV2::mScaleMethod, mSelBrush, mSelCache, mSelPen, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, mUsingCache, name(), outlineWidth(), QgsRenderContext::painter(), preparePath(), prepareShape(), QgsRenderContext::rasterScaleFactor(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolV2RenderContext::renderHints(), QgsSymbolV2::ScaleArea, QgsSymbolV2::ScaleDiameter, and QgsSymbolV2RenderContext::selected().
|
inline |
Definition at line 71 of file qgsmarkersymbollayerv2.h.
References QgsSymbolLayerV2::color().
|
inline |
Definition at line 68 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 74 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 77 of file qgsmarkersymbollayerv2.h.
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 126 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), QgsSymbolLayerV2::dataDefinedProperty(), QgsSymbolV2::DataDefinedRotation, QgsSymbolV2::DataDefinedSizeScale, QgsRenderContext::forceVectorOutput(), QgsSymbolV2RenderContext::layer(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), QgsMarkerSymbolLayerV2::mAngle, mBorderColor, mBrush, mCache, QgsSymbolLayerV2::mColor, mName, mOutlineWidth, mOutlineWidthUnit, mPath, mPen, mPolygon, mSelBrush, mSelCache, mSelPen, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, mUsingCache, prepareCache(), QgsSymbolLayerV2::prepareExpressions(), preparePath(), prepareShape(), QgsDebugMsg, QgsRenderContext::rasterScaleFactor(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolV2RenderContext::renderHints(), and QgsRenderContext::selectionColor().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 278 of file qgsmarkersymbollayerv2.cpp.
|
virtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 567 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2Utils::createDisplacementElement(), QgsSymbolLayerV2Utils::createRotationElement(), QgsMarkerSymbolLayerV2::mAngle, mBorderColor, QgsSymbolLayerV2::mColor, mName, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mSize, and QgsSymbolLayerV2Utils::wellKnownMarkerToSld().
|
protected |
Definition at line 90 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), ogrFeatureStyle(), properties(), QgsSimpleMarkerSymbolLayerV2(), startRender(), and writeSldMarker().
|
protected |
Definition at line 94 of file qgsmarkersymbollayerv2.h.
Referenced by prepareCache(), renderPoint(), and startRender().
|
protected |
Definition at line 98 of file qgsmarkersymbollayerv2.h.
Referenced by prepareCache(), renderPoint(), and startRender().
|
staticprotected |
Definition at line 105 of file qgsmarkersymbollayerv2.h.
Referenced by prepareCache().
|
protected |
Definition at line 97 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), ogrFeatureStyle(), preparePath(), prepareShape(), properties(), QgsSimpleMarkerSymbolLayerV2(), startRender(), and writeSldMarker().
|
protected |
Definition at line 91 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), and startRender().
|
protected |
Definition at line 92 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), renderPoint(), and startRender().
|
protected |
Definition at line 96 of file qgsmarkersymbollayerv2.h.
Referenced by drawMarker(), preparePath(), renderPoint(), and startRender().
|
protected |
Definition at line 93 of file qgsmarkersymbollayerv2.h.
Referenced by prepareCache(), renderPoint(), and startRender().
|
protected |
Definition at line 95 of file qgsmarkersymbollayerv2.h.
Referenced by drawMarker(), prepareShape(), renderPoint(), and startRender().
|
protected |
Definition at line 100 of file qgsmarkersymbollayerv2.h.
Referenced by prepareCache(), renderPoint(), and startRender().
|
protected |
Definition at line 101 of file qgsmarkersymbollayerv2.h.
Referenced by prepareCache(), renderPoint(), and startRender().
|
protected |
Definition at line 99 of file qgsmarkersymbollayerv2.h.
Referenced by prepareCache(), renderPoint(), and startRender().
|
protected |
Definition at line 102 of file qgsmarkersymbollayerv2.h.
Referenced by renderPoint(), and startRender().