QGIS API Documentation
2.8.2-Wien
|
#include <qgsmarkersymbollayerv2.h>
Public Member Functions | |
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) | |
QColor | borderColor () const |
QgsSymbolLayerV2 * | clone () const override |
QColor | fillColor () const override |
Get fill color. | |
QString | layerType () const override |
QgsMapUnitScale | mapUnitScale () const override |
QString | name () const |
QString | ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const override |
QColor | outlineColor () const override |
Get outline color. | |
Qt::PenStyle | outlineStyle () const |
double | outlineWidth () const |
const QgsMapUnitScale & | outlineWidthMapUnitScale () const |
QgsSymbolV2::OutputUnit | outlineWidthUnit () const |
QgsSymbolV2::OutputUnit | outputUnit () const override |
QgsStringMap | properties () const override |
void | renderPoint (const QPointF &point, QgsSymbolV2RenderContext &context) override |
void | setBorderColor (QColor color) |
void | setFillColor (const QColor &color) override |
Set fill color. | |
void | setMapUnitScale (const QgsMapUnitScale &scale) override |
void | setName (QString name) |
void | setOutlineColor (const QColor &color) override |
Set outline color. | |
void | setOutlineStyle (Qt::PenStyle outlineStyle) |
void | setOutlineWidth (double w) |
void | setOutlineWidthMapUnitScale (const QgsMapUnitScale &scale) |
void | setOutlineWidthUnit (QgsSymbolV2::OutputUnit u) |
void | setOutputUnit (QgsSymbolV2::OutputUnit unit) override |
void | startRender (QgsSymbolV2RenderContext &context) override |
void | stopRender (QgsSymbolV2RenderContext &context) override |
bool | writeDxf (QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, const QgsSymbolV2RenderContext *context, const QgsFeature *f, const QPointF &shift=QPointF(0.0, 0.0)) const override |
void | writeSldMarker (QDomDocument &doc, QDomElement &element, QgsStringMap props) const override |
Public Member Functions inherited from QgsMarkerSymbolLayerV2 | |
double | angle () const |
void | drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size) override |
HorizontalAnchorPoint | horizontalAnchorPoint () const |
QPointF | offset () |
const QgsMapUnitScale & | offsetMapUnitScale () const |
QgsSymbolV2::OutputUnit | offsetUnit () const |
QgsSymbolV2::ScaleMethod | scaleMethod () const |
void | setAngle (double angle) |
void | setHorizontalAnchorPoint (HorizontalAnchorPoint h) |
void | setOffset (QPointF offset) |
void | setOffsetMapUnitScale (const QgsMapUnitScale &scale) |
void | setOffsetUnit (QgsSymbolV2::OutputUnit unit) |
void | setScaleMethod (QgsSymbolV2::ScaleMethod scaleMethod) |
void | setSize (double size) |
void | setSizeMapUnitScale (const QgsMapUnitScale &scale) |
void | setSizeUnit (QgsSymbolV2::OutputUnit unit) |
void | setVerticalAnchorPoint (VerticalAnchorPoint v) |
double | size () const |
const QgsMapUnitScale & | sizeMapUnitScale () const |
QgsSymbolV2::OutputUnit | sizeUnit () const |
virtual void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const override |
VerticalAnchorPoint | verticalAnchorPoint () const |
Public Member Functions inherited from QgsSymbolLayerV2 | |
virtual | ~QgsSymbolLayerV2 () |
virtual QColor | color () const |
virtual const QgsExpression * | dataDefinedProperty (const QString &property) const |
virtual QString | dataDefinedPropertyString (const QString &property) const |
virtual QColor | dxfBrushColor (const QgsSymbolV2RenderContext &context) const |
virtual Qt::BrushStyle | dxfBrushStyle () const |
virtual QColor | dxfColor (const QgsSymbolV2RenderContext &context) const |
virtual QVector< qreal > | dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) const |
virtual double | dxfOffset (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const |
virtual Qt::PenStyle | dxfPenStyle () const |
virtual double | dxfWidth (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const |
virtual double | estimateMaxBleed () const |
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape. | |
bool | hasDataDefinedProperties () const |
bool | isLocked () const |
virtual void | removeDataDefinedProperties () |
virtual void | removeDataDefinedProperty (const QString &property) |
int | renderingPass () const |
virtual void | setColor (const QColor &color) |
virtual void | setDataDefinedProperty (const QString &property, const QString &expressionString) |
void | setLocked (bool locked) |
void | setRenderingPass (int renderingPass) |
virtual bool | setSubSymbol (QgsSymbolV2 *symbol) |
virtual QgsSymbolV2 * | subSymbol () |
QgsSymbolV2::SymbolType | type () const |
virtual QSet< QString > | usedAttributes () const |
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 | prepareCache (QgsSymbolV2RenderContext &context) |
Prepares cache image. | |
bool | preparePath (QString name=QString()) |
bool | prepareShape (QString name=QString()) |
Protected Member Functions inherited from QgsMarkerSymbolLayerV2 | |
QgsMarkerSymbolLayerV2 (bool locked=false) | |
void | markerOffset (const QgsSymbolV2RenderContext &context, double &offsetX, double &offsetY) const |
void | markerOffset (const QgsSymbolV2RenderContext &context, double width, double height, double &offsetX, double &offsetY) const |
void | markerOffset (const QgsSymbolV2RenderContext &context, double width, double height, QgsSymbolV2::OutputUnit widthUnit, QgsSymbolV2::OutputUnit heightUnit, double &offsetX, double &offsetY, const QgsMapUnitScale &widthMapUnitScale, const QgsMapUnitScale &heightMapUnitScale) const |
Protected Member Functions inherited from QgsSymbolLayerV2 | |
QgsSymbolLayerV2 (QgsSymbolV2::SymbolType type, bool locked=false) | |
void | copyDataDefinedProperties (QgsSymbolLayerV2 *destLayer) const |
Copies data defined properties of this layer to another symbol layer. | |
virtual QgsExpression * | expression (const QString &property) const |
virtual void | prepareExpressions (const QgsFields *fields, double scale=-1.0) |
void | saveDataDefinedProperties (QgsStringMap &stringMap) const |
Saves data defined properties to string map. |
Protected Attributes | |
QColor | mBorderColor |
QBrush | mBrush |
QImage | mCache |
QString | mName |
Qt::PenStyle | mOutlineStyle |
double | mOutlineWidth |
QgsMapUnitScale | mOutlineWidthMapUnitScale |
QgsSymbolV2::OutputUnit | mOutlineWidthUnit |
QPainterPath | mPath |
QPen | mPen |
QPolygonF | mPolygon |
QBrush | mSelBrush |
QImage | mSelCache |
QPen | mSelPen |
bool | mUsingCache |
Protected Attributes inherited from QgsMarkerSymbolLayerV2 | |
double | mAngle |
HorizontalAnchorPoint | mHorizontalAnchorPoint |
QPointF | mOffset |
QgsMapUnitScale | mOffsetMapUnitScale |
QgsSymbolV2::OutputUnit | mOffsetUnit |
QgsSymbolV2::ScaleMethod | mScaleMethod |
double | mSize |
QgsMapUnitScale | mSizeMapUnitScale |
QgsSymbolV2::OutputUnit | mSizeUnit |
VerticalAnchorPoint | mVerticalAnchorPoint |
Protected Attributes inherited from QgsSymbolLayerV2 | |
QColor | mColor |
QMap< QString, QgsExpression * > | mDataDefinedProperties |
bool | mLocked |
int | mRenderingPass |
QgsSymbolV2::SymbolType | mType |
Static Protected Attributes | |
static const QString | EXPR_SIZE |
static const int | mMaximumCacheWidth = 3000 |
Additional Inherited Members | |
Public Types inherited from QgsMarkerSymbolLayerV2 | |
enum | HorizontalAnchorPoint { Left, HCenter, Right } |
enum | VerticalAnchorPoint { Top, VCenter, Bottom } |
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 52 of file qgsmarkersymbollayerv2.cpp.
|
inline |
Definition at line 70 of file qgsmarkersymbollayerv2.h.
|
overridevirtual |
Implements QgsSymbolLayerV2.
Definition at line 672 of file qgsmarkersymbollayerv2.cpp.
|
static |
Definition at line 69 of file qgsmarkersymbollayerv2.cpp.
|
static |
Definition at line 778 of file qgsmarkersymbollayerv2.cpp.
|
protected |
Definition at line 814 of file qgsmarkersymbollayerv2.cpp.
|
inlineoverridevirtual |
Get fill color.
Reimplemented from QgsSymbolLayerV2.
Definition at line 85 of file qgsmarkersymbollayerv2.h.
|
overridevirtual |
Implements QgsSymbolLayerV2.
Definition at line 197 of file qgsmarkersymbollayerv2.cpp.
|
overridevirtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 1080 of file qgsmarkersymbollayerv2.cpp.
|
inline |
Definition at line 67 of file qgsmarkersymbollayerv2.h.
|
overridevirtual |
Reimplemented from QgsSymbolLayerV2.
Definition at line 716 of file qgsmarkersymbollayerv2.cpp.
|
inlineoverridevirtual |
Get outline color.
Reimplemented from QgsSymbolLayerV2.
Definition at line 78 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 73 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 90 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 97 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 94 of file qgsmarkersymbollayerv2.h.
|
overridevirtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 1065 of file qgsmarkersymbollayerv2.cpp.
|
protected |
Prepares cache image.
Definition at line 301 of file qgsmarkersymbollayerv2.cpp.
|
protected |
Definition at line 460 of file qgsmarkersymbollayerv2.cpp.
|
protected |
Definition at line 366 of file qgsmarkersymbollayerv2.cpp.
|
overridevirtual |
Implements QgsSymbolLayerV2.
Definition at line 645 of file qgsmarkersymbollayerv2.cpp.
|
overridevirtual |
Implements QgsMarkerSymbolLayerV2.
Definition at line 507 of file qgsmarkersymbollayerv2.cpp.
|
inline |
Definition at line 71 of file qgsmarkersymbollayerv2.h.
|
inlineoverridevirtual |
Set fill color.
Reimplemented from QgsSymbolLayerV2.
Definition at line 88 of file qgsmarkersymbollayerv2.h.
|
overridevirtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 1074 of file qgsmarkersymbollayerv2.cpp.
|
inline |
Definition at line 68 of file qgsmarkersymbollayerv2.h.
|
inlineoverridevirtual |
Set outline color.
Reimplemented from QgsSymbolLayerV2.
Definition at line 81 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 74 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 91 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 96 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 93 of file qgsmarkersymbollayerv2.h.
|
overridevirtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 1059 of file qgsmarkersymbollayerv2.cpp.
|
overridevirtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 202 of file qgsmarkersymbollayerv2.cpp.
|
overridevirtual |
Implements QgsSymbolLayerV2.
Definition at line 361 of file qgsmarkersymbollayerv2.cpp.
|
overridevirtual |
Reimplemented from QgsSymbolLayerV2.
Definition at line 828 of file qgsmarkersymbollayerv2.cpp.
|
overridevirtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 690 of file qgsmarkersymbollayerv2.cpp.
|
staticprotected |
Definition at line 136 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 117 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 123 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 127 of file qgsmarkersymbollayerv2.h.
|
staticprotected |
Definition at line 134 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 126 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 118 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 119 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 121 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 120 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 125 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 122 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 124 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 129 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 130 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 128 of file qgsmarkersymbollayerv2.h.
|
protected |
Definition at line 131 of file qgsmarkersymbollayerv2.h.