QGIS API Documentation
2.2.0-Valmiera
|
#include <qgsmarkersymbollayerv2.h>
Public Member Functions | |
QgsFontMarkerSymbolLayerV2 (QString fontFamily=DEFAULT_FONTMARKER_FONT, QChar chr=DEFAULT_FONTMARKER_CHR, double pointSize=DEFAULT_FONTMARKER_SIZE, QColor color=DEFAULT_FONTMARKER_COLOR, double angle=DEFAULT_FONTMARKER_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 | fontFamily () const |
void | setFontFamily (QString family) |
QChar | character () const |
void | setCharacter (QChar ch) |
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 |
virtual void | setOutputUnit (QgsSymbolV2::OutputUnit unit) |
virtual QgsSymbolV2::OutputUnit | outputUnit () const |
void | setHorizontalAnchorPoint (HorizontalAnchorPoint h) |
HorizontalAnchorPoint | horizontalAnchorPoint () const |
void | setVerticalAnchorPoint (VerticalAnchorPoint v) |
VerticalAnchorPoint | verticalAnchorPoint () 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. | |
virtual QColor | outlineColor () const |
Get outline color. | |
virtual void | setFillColor (const QColor &color) |
Set fill color. | |
virtual QColor | fillColor () const |
Get fill color. | |
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 |
virtual double | estimateMaxBleed () const |
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape. | |
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 () |
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 double | dxfWidth (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const |
virtual QColor | dxfColor (const QgsSymbolV2RenderContext &context) const |
virtual QVector< qreal > | dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) const |
virtual Qt::PenStyle | dxfPenStyle () const |
Static Public Member Functions | |
static QgsSymbolLayerV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
static QgsSymbolLayerV2 * | createFromSld (QDomElement &element) |
Protected Attributes | |
QString | mFontFamily |
QChar | mChr |
QPointF | mChrOffset |
QFont | mFont |
double | mOrigSize |
Protected Attributes inherited from QgsMarkerSymbolLayerV2 | |
double | mAngle |
double | mSize |
QgsSymbolV2::OutputUnit | mSizeUnit |
QPointF | mOffset |
QgsSymbolV2::OutputUnit | mOffsetUnit |
QgsSymbolV2::ScaleMethod | mScaleMethod |
HorizontalAnchorPoint | mHorizontalAnchorPoint |
VerticalAnchorPoint | mVerticalAnchorPoint |
Protected Attributes inherited from QgsSymbolLayerV2 | |
QgsSymbolV2::SymbolType | mType |
bool | mLocked |
QColor | mColor |
int | mRenderingPass |
QMap< QString, QgsExpression * > | mDataDefinedProperties |
Additional Inherited Members | |
Public Types inherited from QgsMarkerSymbolLayerV2 | |
enum | HorizontalAnchorPoint { Left, HCenter, Right } |
enum | VerticalAnchorPoint { Top, VCenter, Bottom } |
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, QgsSymbolV2::OutputUnit widthUnit, QgsSymbolV2::OutputUnit heightUnit, double &offsetX, double &offsetY) const |
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 210 of file qgsmarkersymbollayerv2.h.
QgsFontMarkerSymbolLayerV2::QgsFontMarkerSymbolLayerV2 | ( | QString | fontFamily = DEFAULT_FONTMARKER_FONT , |
QChar | chr = DEFAULT_FONTMARKER_CHR , |
||
double | pointSize = DEFAULT_FONTMARKER_SIZE , |
||
QColor | color = DEFAULT_FONTMARKER_COLOR , |
||
double | angle = DEFAULT_FONTMARKER_ANGLE |
||
) |
Definition at line 1429 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2::color(), fontFamily(), QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, QgsSymbolV2::MM, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mOffsetUnit, QgsMarkerSymbolLayerV2::mSize, and QgsMarkerSymbolLayerV2::mSizeUnit.
Referenced by clone(), create(), and createFromSld().
|
inline |
Definition at line 245 of file qgsmarkersymbollayerv2.h.
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 1548 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, QgsMarkerSymbolLayerV2::mHorizontalAnchorPoint, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mOffsetUnit, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, QgsMarkerSymbolLayerV2::mVerticalAnchorPoint, QgsFontMarkerSymbolLayerV2(), QgsMarkerSymbolLayerV2::setHorizontalAnchorPoint(), QgsMarkerSymbolLayerV2::setOffset(), QgsMarkerSymbolLayerV2::setOffsetUnit(), QgsMarkerSymbolLayerV2::setSizeUnit(), and QgsMarkerSymbolLayerV2::setVerticalAnchorPoint().
|
static |
Definition at line 1441 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodeOutputUnit(), QgsSymbolLayerV2Utils::decodePoint(), DEFAULT_FONTMARKER_ANGLE, DEFAULT_FONTMARKER_CHR, DEFAULT_FONTMARKER_COLOR, DEFAULT_FONTMARKER_FONT, DEFAULT_FONTMARKER_SIZE, fontFamily(), QgsFontMarkerSymbolLayerV2(), QgsMarkerSymbolLayerV2::setHorizontalAnchorPoint(), QgsMarkerSymbolLayerV2::setOffset(), QgsMarkerSymbolLayerV2::setOffsetUnit(), QgsMarkerSymbolLayerV2::setSizeUnit(), and QgsMarkerSymbolLayerV2::setVerticalAnchorPoint().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
static |
Definition at line 1587 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::displacementFromSldElement(), QgsSymbolLayerV2Utils::externalMarkerFromSld(), fontFamily(), QgsMarkerSymbolLayerV2::offset(), QgsDebugMsg, QgsFontMarkerSymbolLayerV2(), QgsSymbolLayerV2Utils::rotationFromSldElement(), QgsMarkerSymbolLayerV2::setAngle(), QgsMarkerSymbolLayerV2::setOffset(), and QgsMarkerSymbolLayerV2::size().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
inline |
Definition at line 242 of file qgsmarkersymbollayerv2.h.
Referenced by create(), createFromSld(), and QgsFontMarkerSymbolLayerV2().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 1478 of file qgsmarkersymbollayerv2.cpp.
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 1532 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2Utils::encodeOutputUnit(), QgsSymbolLayerV2Utils::encodePoint(), QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, QgsMarkerSymbolLayerV2::mHorizontalAnchorPoint, QgsMarkerSymbolLayerV2::mOffset, QgsMarkerSymbolLayerV2::mOffsetUnit, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, and QgsMarkerSymbolLayerV2::mVerticalAnchorPoint.
|
virtual |
Implements QgsMarkerSymbolLayerV2.
Definition at line 1498 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::_rotatedOffset(), QgsSymbolV2RenderContext::alpha(), QgsSymbolV2::DataDefinedSizeScale, QgsMarkerSymbolLayerV2::mAngle, QgsMarkerSymbolLayerV2::markerOffset(), mChr, mChrOffset, QgsSymbolLayerV2::mColor, mFont, mOrigSize, QgsMarkerSymbolLayerV2::mSize, QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolV2RenderContext::renderHints(), QgsSymbolV2RenderContext::selected(), and QgsRenderContext::selectionColor().
|
inline |
Definition at line 246 of file qgsmarkersymbollayerv2.h.
|
inline |
Definition at line 243 of file qgsmarkersymbollayerv2.h.
|
virtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 1483 of file qgsmarkersymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::lineWidthScaleFactor(), mChr, mChrOffset, mFont, mFontFamily, mOrigSize, QgsMarkerSymbolLayerV2::mSize, QgsMarkerSymbolLayerV2::mSizeUnit, and QgsSymbolV2RenderContext::renderContext().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 1493 of file qgsmarkersymbollayerv2.cpp.
|
virtual |
Reimplemented from QgsMarkerSymbolLayerV2.
Definition at line 1559 of file qgsmarkersymbollayerv2.cpp.
References QgsMarkerSymbolLayerV2::angle(), QgsSymbolLayerV2Utils::createDisplacementElement(), QgsSymbolLayerV2Utils::createRotationElement(), QgsSymbolLayerV2Utils::externalMarkerToSld(), QgsMarkerSymbolLayerV2::mAngle, mChr, QgsSymbolLayerV2::mColor, mFontFamily, QgsMarkerSymbolLayerV2::mOffset, and QgsMarkerSymbolLayerV2::mSize.
|
protected |
Definition at line 251 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), QgsFontMarkerSymbolLayerV2(), renderPoint(), startRender(), and writeSldMarker().
|
protected |
Definition at line 253 of file qgsmarkersymbollayerv2.h.
Referenced by renderPoint(), and startRender().
|
protected |
Definition at line 254 of file qgsmarkersymbollayerv2.h.
Referenced by renderPoint(), and startRender().
|
protected |
Definition at line 250 of file qgsmarkersymbollayerv2.h.
Referenced by clone(), properties(), QgsFontMarkerSymbolLayerV2(), startRender(), and writeSldMarker().
|
protected |
Definition at line 255 of file qgsmarkersymbollayerv2.h.
Referenced by renderPoint(), and startRender().