QGIS API Documentation
2.0.1-Dufour
|
#include <qgslinesymbollayerv2.h>
Public Member Functions | |
QgsSimpleLineSymbolLayerV2 (QColor color=DEFAULT_SIMPLELINE_COLOR, double width=DEFAULT_SIMPLELINE_WIDTH, Qt::PenStyle penStyle=DEFAULT_SIMPLELINE_PENSTYLE) | |
QString | layerType () const |
void | startRender (QgsSymbolV2RenderContext &context) |
void | stopRender (QgsSymbolV2RenderContext &context) |
void | renderPolyline (const QPolygonF &points, QgsSymbolV2RenderContext &context) |
QgsStringMap | properties () const |
QgsSymbolLayerV2 * | clone () const |
void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
QString | ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const |
void | setOutputUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | outputUnit () const |
Qt::PenStyle | penStyle () const |
void | setPenStyle (Qt::PenStyle style) |
Qt::PenJoinStyle | penJoinStyle () const |
void | setPenJoinStyle (Qt::PenJoinStyle style) |
Qt::PenCapStyle | penCapStyle () const |
void | setPenCapStyle (Qt::PenCapStyle style) |
double | offset () const |
void | setOffset (double offset) |
QgsSymbolV2::OutputUnit | offsetUnit () const |
void | setOffsetUnit (QgsSymbolV2::OutputUnit unit) |
bool | useCustomDashPattern () const |
void | setUseCustomDashPattern (bool b) |
QgsSymbolV2::OutputUnit | customDashPatternUnit () const |
void | setCustomDashPatternUnit (QgsSymbolV2::OutputUnit unit) |
QVector< qreal > | customDashVector () const |
void | setCustomDashVector (const QVector< qreal > &vector) |
Public Member Functions inherited from QgsLineSymbolLayerV2 | |
virtual void | renderPolygonOutline (const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context) |
virtual void | setWidth (double width) |
virtual double | width () const |
void | setWidthUnit (QgsSymbolV2::OutputUnit unit) |
QgsSymbolV2::OutputUnit | widthUnit () const |
void | drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size) |
Public Member Functions inherited from QgsSymbolLayerV2 | |
virtual void | setColor (const QColor &color) |
virtual QColor | color () const |
virtual | ~QgsSymbolLayerV2 () |
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 | |
Qt::PenStyle | mPenStyle |
Qt::PenJoinStyle | mPenJoinStyle |
Qt::PenCapStyle | mPenCapStyle |
QPen | mPen |
QPen | mSelPen |
double | mOffset |
QgsSymbolV2::OutputUnit | mOffsetUnit |
bool | mUseCustomDashPattern |
QgsSymbolV2::OutputUnit | mCustomDashPatternUnit |
QVector< qreal > | mCustomDashVector |
Vector with an even number of entries for the. | |
Protected Attributes inherited from QgsLineSymbolLayerV2 | |
double | mWidth |
QgsSymbolV2::OutputUnit | mWidthUnit |
Protected Attributes inherited from QgsSymbolLayerV2 | |
QgsSymbolV2::SymbolType | mType |
bool | mLocked |
QColor | mColor |
int | mRenderingPass |
QMap< QString, QgsExpression * > | mDataDefinedProperties |
Private Member Functions | |
void | applyDataDefinedSymbology (QgsSymbolV2RenderContext &context, QPen &pen, QPen &selPen, double &offset) |
Additional Inherited Members | |
Protected Member Functions inherited from QgsLineSymbolLayerV2 | |
QgsLineSymbolLayerV2 (bool locked=false) | |
Static Protected Attributes inherited from QgsSymbolLayerV2 | |
static const bool | selectionIsOpaque = true |
static const bool | selectFillBorder = false |
static const bool | selectFillStyle = false |
Definition at line 33 of file qgslinesymbollayerv2.h.
QgsSimpleLineSymbolLayerV2::QgsSimpleLineSymbolLayerV2 | ( | QColor | color = DEFAULT_SIMPLELINE_COLOR , |
double | width = DEFAULT_SIMPLELINE_WIDTH , |
||
Qt::PenStyle | penStyle = DEFAULT_SIMPLELINE_PENSTYLE |
||
) |
Definition at line 29 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), QgsSymbolLayerV2::mColor, mCustomDashVector, QgsLineSymbolLayerV2::mWidth, and QgsLineSymbolLayerV2::width().
Referenced by clone(), create(), and createFromSld().
|
private |
Definition at line 312 of file qgslinesymbollayerv2.cpp.
References QgsSymbolV2::DataDefinedSizeScale, QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodePenCapStyle(), QgsSymbolLayerV2Utils::decodePenJoinStyle(), QgsExpression::evaluate(), QgsSymbolLayerV2::expression(), QgsSymbolV2RenderContext::feature(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), mCustomDashPatternUnit, mOffset, mPen, QgsLineSymbolLayerV2::mWidth, QgsLineSymbolLayerV2::mWidthUnit, QgsSymbolV2RenderContext::renderContext(), and QgsSymbolV2RenderContext::renderHints().
Referenced by renderPolyline().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 212 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::copyDataDefinedProperties(), QgsSymbolLayerV2::mColor, mCustomDashPatternUnit, mCustomDashVector, mOffset, mOffsetUnit, mPenCapStyle, mPenJoinStyle, mPenStyle, mUseCustomDashPattern, QgsLineSymbolLayerV2::mWidth, QgsLineSymbolLayerV2::mWidthUnit, QgsSimpleLineSymbolLayerV2(), setCustomDashPatternUnit(), setCustomDashVector(), setOffset(), setOffsetUnit(), setPenCapStyle(), setPenJoinStyle(), setUseCustomDashPattern(), and QgsLineSymbolLayerV2::setWidthUnit().
|
static |
Definition at line 56 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodeOutputUnit(), QgsSymbolLayerV2Utils::decodePenCapStyle(), QgsSymbolLayerV2Utils::decodePenJoinStyle(), QgsSymbolLayerV2Utils::decodePenStyle(), QgsSymbolLayerV2Utils::decodeRealVector(), DEFAULT_SIMPLELINE_COLOR, DEFAULT_SIMPLELINE_PENSTYLE, DEFAULT_SIMPLELINE_WIDTH, penStyle(), QgsSimpleLineSymbolLayerV2(), setCustomDashPatternUnit(), setCustomDashVector(), QgsSymbolLayerV2::setDataDefinedProperty(), setOffset(), setOffsetUnit(), setPenCapStyle(), setPenJoinStyle(), setUseCustomDashPattern(), QgsLineSymbolLayerV2::setWidthUnit(), and QgsLineSymbolLayerV2::width().
Referenced by QgsLineSymbolV2::createSimple(), QgsSymbolLayerV2Registry::defaultSymbolLayer(), and QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
static |
Definition at line 272 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), customDashVector(), QgsSymbolLayerV2Utils::lineFromSld(), offset(), penCapStyle(), penJoinStyle(), penStyle(), QgsDebugMsg, QgsSimpleLineSymbolLayerV2(), setCustomDashVector(), setOffset(), setPenCapStyle(), setPenJoinStyle(), setUseCustomDashPattern(), and QgsLineSymbolLayerV2::width().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
|
inline |
Definition at line 86 of file qgslinesymbollayerv2.h.
|
inline |
Definition at line 89 of file qgslinesymbollayerv2.h.
Referenced by createFromSld().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 113 of file qgslinesymbollayerv2.cpp.
|
inline |
Definition at line 77 of file qgslinesymbollayerv2.h.
Referenced by createFromSld(), and renderPolyline().
|
inline |
Definition at line 80 of file qgslinesymbollayerv2.h.
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Definition at line 257 of file qgslinesymbollayerv2.cpp.
References mCustomDashVector, mOffset, mPen, mPenCapStyle, mPenJoinStyle, mUseCustomDashPattern, QgsLineSymbolLayerV2::mWidth, and QgsSymbolLayerV2Utils::ogrFeatureStylePen().
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Definition at line 45 of file qgslinesymbollayerv2.cpp.
References mCustomDashPatternUnit, QgsSymbolV2::Mixed, mOffsetUnit, and QgsLineSymbolLayerV2::mWidthUnit.
|
inline |
Definition at line 74 of file qgslinesymbollayerv2.h.
Referenced by createFromSld().
|
inline |
Definition at line 71 of file qgslinesymbollayerv2.h.
Referenced by createFromSld().
|
inline |
Definition at line 68 of file qgslinesymbollayerv2.h.
Referenced by create(), createFromSld(), and toSld().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 194 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2Utils::encodeOutputUnit(), QgsSymbolLayerV2Utils::encodePenCapStyle(), QgsSymbolLayerV2Utils::encodePenJoinStyle(), QgsSymbolLayerV2Utils::encodePenStyle(), QgsSymbolLayerV2Utils::encodeRealVector(), QgsSymbolLayerV2::mColor, mCustomDashPatternUnit, mCustomDashVector, mOffset, mOffsetUnit, mPenCapStyle, mPenJoinStyle, mPenStyle, mUseCustomDashPattern, QgsLineSymbolLayerV2::mWidth, QgsLineSymbolLayerV2::mWidthUnit, and QgsSymbolLayerV2::saveDataDefinedProperties().
|
virtual |
Implements QgsLineSymbolLayerV2.
Definition at line 170 of file qgslinesymbollayerv2.cpp.
References applyDataDefinedSymbology(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), mOffsetUnit, mPen, mSelPen, offset(), offsetLine(), QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), and QgsSymbolV2RenderContext::selected().
|
inline |
Definition at line 87 of file qgslinesymbollayerv2.h.
|
inline |
Definition at line 90 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
|
inline |
Definition at line 78 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
|
inline |
Definition at line 81 of file qgslinesymbollayerv2.h.
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Definition at line 38 of file qgslinesymbollayerv2.cpp.
References mCustomDashPatternUnit, mOffsetUnit, and QgsLineSymbolLayerV2::mWidthUnit.
|
inline |
Definition at line 75 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
|
inline |
Definition at line 72 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
|
inline |
Definition at line 69 of file qgslinesymbollayerv2.h.
|
inline |
Definition at line 84 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 118 of file qgslinesymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), QgsSymbolV2RenderContext::layer(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), QgsSymbolLayerV2::mColor, mCustomDashPatternUnit, mCustomDashVector, mPen, mPenCapStyle, mPenJoinStyle, mPenStyle, mSelPen, mUseCustomDashPattern, QgsLineSymbolLayerV2::mWidth, QgsLineSymbolLayerV2::mWidthUnit, QgsSymbolLayerV2::prepareExpressions(), QgsRenderContext::rasterScaleFactor(), QgsSymbolV2RenderContext::renderContext(), QgsRenderContext::selectionColor(), and QgsSymbolLayerV2::selectionIsOpaque.
|
virtual |
Implements QgsSymbolLayerV2.
Definition at line 165 of file qgslinesymbollayerv2.cpp.
|
virtual |
Reimplemented from QgsSymbolLayerV2.
Definition at line 227 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::createGeometryElement(), QgsSymbolLayerV2Utils::lineToSld(), QgsSymbolLayerV2::mColor, mCustomDashVector, mOffset, mPenCapStyle, mPenJoinStyle, mPenStyle, mUseCustomDashPattern, QgsLineSymbolLayerV2::mWidth, and penStyle().
|
inline |
Definition at line 83 of file qgslinesymbollayerv2.h.
|
protected |
Definition at line 103 of file qgslinesymbollayerv2.h.
Referenced by applyDataDefinedSymbology(), clone(), outputUnit(), properties(), setOutputUnit(), and startRender().
|
protected |
Vector with an even number of entries for the.
Definition at line 106 of file qgslinesymbollayerv2.h.
Referenced by clone(), ogrFeatureStyle(), properties(), QgsSimpleLineSymbolLayerV2(), startRender(), and toSld().
|
protected |
Definition at line 98 of file qgslinesymbollayerv2.h.
Referenced by applyDataDefinedSymbology(), clone(), ogrFeatureStyle(), properties(), and toSld().
|
protected |
Definition at line 99 of file qgslinesymbollayerv2.h.
Referenced by clone(), outputUnit(), properties(), renderPolyline(), and setOutputUnit().
|
protected |
Definition at line 96 of file qgslinesymbollayerv2.h.
Referenced by applyDataDefinedSymbology(), ogrFeatureStyle(), renderPolyline(), and startRender().
|
protected |
Definition at line 95 of file qgslinesymbollayerv2.h.
Referenced by clone(), ogrFeatureStyle(), properties(), startRender(), and toSld().
|
protected |
Definition at line 94 of file qgslinesymbollayerv2.h.
Referenced by clone(), ogrFeatureStyle(), properties(), startRender(), and toSld().
|
protected |
Definition at line 93 of file qgslinesymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
|
protected |
Definition at line 97 of file qgslinesymbollayerv2.h.
Referenced by renderPolyline(), and startRender().
|
protected |
Definition at line 102 of file qgslinesymbollayerv2.h.
Referenced by clone(), ogrFeatureStyle(), properties(), startRender(), and toSld().