Quantum GIS API Documentation
1.8
|
#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 |
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) |
bool | useCustomDashPattern () const |
void | setUseCustomDashPattern (bool b) |
QVector< qreal > | customDashVector () const |
void | setCustomDashVector (const QVector< qreal > &vector) |
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 |
bool | mUseCustomDashPattern |
QVector< qreal > | mCustomDashVector |
Vector with an even number of entries for the. |
Definition at line 31 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 28 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), QgsSymbolLayerV2::mColor, mCustomDashVector, QgsLineSymbolLayerV2::mWidth, and QgsLineSymbolLayerV2::width().
Referenced by clone(), create(), and createFromSld().
QgsSymbolLayerV2 * QgsSimpleLineSymbolLayerV2::clone | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 157 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::mColor, mCustomDashVector, mOffset, mPenCapStyle, mPenJoinStyle, mPenStyle, mUseCustomDashPattern, QgsLineSymbolLayerV2::mWidth, QgsSimpleLineSymbolLayerV2(), setCustomDashVector(), setOffset(), setPenCapStyle(), setPenJoinStyle(), and setUseCustomDashPattern().
QgsSymbolLayerV2 * QgsSimpleLineSymbolLayerV2::create | ( | const QgsStringMap & | properties = QgsStringMap() | ) | [static] |
Definition at line 37 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodePenCapStyle(), QgsSymbolLayerV2Utils::decodePenJoinStyle(), QgsSymbolLayerV2Utils::decodePenStyle(), QgsSymbolLayerV2Utils::decodeRealVector(), DEFAULT_SIMPLELINE_COLOR, DEFAULT_SIMPLELINE_PENSTYLE, DEFAULT_SIMPLELINE_WIDTH, penStyle(), QgsSimpleLineSymbolLayerV2(), setCustomDashVector(), setOffset(), setPenCapStyle(), setPenJoinStyle(), setUseCustomDashPattern(), and QgsLineSymbolLayerV2::width().
Referenced by QgsLineSymbolV2::createSimple(), QgsSymbolLayerV2Registry::defaultSymbolLayer(), and QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
QgsSymbolLayerV2 * QgsSimpleLineSymbolLayerV2::createFromSld | ( | QDomElement & | element | ) | [static] |
Definition at line 198 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().
QVector<qreal> QgsSimpleLineSymbolLayerV2::customDashVector | ( | ) | const [inline] |
Definition at line 76 of file qgslinesymbollayerv2.h.
Referenced by createFromSld().
QString QgsSimpleLineSymbolLayerV2::layerType | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 71 of file qgslinesymbollayerv2.cpp.
double QgsSimpleLineSymbolLayerV2::offset | ( | ) | const [inline] |
Definition at line 70 of file qgslinesymbollayerv2.h.
Referenced by createFromSld().
Qt::PenCapStyle QgsSimpleLineSymbolLayerV2::penCapStyle | ( | ) | const [inline] |
Definition at line 67 of file qgslinesymbollayerv2.h.
Referenced by createFromSld().
Qt::PenJoinStyle QgsSimpleLineSymbolLayerV2::penJoinStyle | ( | ) | const [inline] |
Definition at line 64 of file qgslinesymbollayerv2.h.
Referenced by createFromSld().
Qt::PenStyle QgsSimpleLineSymbolLayerV2::penStyle | ( | ) | const [inline] |
Definition at line 61 of file qgslinesymbollayerv2.h.
Referenced by create(), createFromSld(), QgsSymbologyV2Conversion::symbolV2toV1(), and toSld().
QgsStringMap QgsSimpleLineSymbolLayerV2::properties | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 143 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2Utils::encodePenCapStyle(), QgsSymbolLayerV2Utils::encodePenJoinStyle(), QgsSymbolLayerV2Utils::encodePenStyle(), QgsSymbolLayerV2Utils::encodeRealVector(), QgsSymbolLayerV2::mColor, mCustomDashVector, mOffset, mPenCapStyle, mPenJoinStyle, mPenStyle, mUseCustomDashPattern, and QgsLineSymbolLayerV2::mWidth.
void QgsSimpleLineSymbolLayerV2::renderPolyline | ( | const QPolygonF & | points, |
QgsSymbolV2RenderContext & | context | ||
) | [virtual] |
Implements QgsLineSymbolLayerV2.
Definition at line 116 of file qgslinesymbollayerv2.cpp.
References QgsSymbolV2::DataDefinedSizeScale, mOffset, mPen, mSelPen, QgsLineSymbolLayerV2::mWidth, offsetLine(), QgsSymbolV2RenderContext::outputLineWidth(), QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolV2RenderContext::renderHints(), and QgsSymbolV2RenderContext::selected().
void QgsSimpleLineSymbolLayerV2::setCustomDashVector | ( | const QVector< qreal > & | vector | ) | [inline] |
Definition at line 77 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
void QgsSimpleLineSymbolLayerV2::setOffset | ( | double | offset | ) | [inline] |
Definition at line 71 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
void QgsSimpleLineSymbolLayerV2::setPenCapStyle | ( | Qt::PenCapStyle | style | ) | [inline] |
Definition at line 68 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
void QgsSimpleLineSymbolLayerV2::setPenJoinStyle | ( | Qt::PenJoinStyle | style | ) | [inline] |
Definition at line 65 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
void QgsSimpleLineSymbolLayerV2::setPenStyle | ( | Qt::PenStyle | style | ) | [inline] |
Definition at line 62 of file qgslinesymbollayerv2.h.
void QgsSimpleLineSymbolLayerV2::setUseCustomDashPattern | ( | bool | b | ) | [inline] |
Definition at line 74 of file qgslinesymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
void QgsSimpleLineSymbolLayerV2::startRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 76 of file qgslinesymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), QgsSymbolLayerV2::mColor, mCustomDashVector, mPen, mPenCapStyle, mPenJoinStyle, mPenStyle, mSelPen, mUseCustomDashPattern, QgsLineSymbolLayerV2::mWidth, QgsSymbolV2RenderContext::outputLineWidth(), QgsSymbolV2RenderContext::selectionColor(), and QgsSymbolLayerV2::selectionIsOpaque.
void QgsSimpleLineSymbolLayerV2::stopRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 111 of file qgslinesymbollayerv2.cpp.
void QgsSimpleLineSymbolLayerV2::toSld | ( | QDomDocument & | doc, |
QDomElement & | element, | ||
QgsStringMap | props | ||
) | const [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 168 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::createGeometryElement(), QgsSymbolLayerV2Utils::lineToSld(), QgsSymbolLayerV2::mColor, mCustomDashVector, mOffset, mPenCapStyle, mPenJoinStyle, mPenStyle, mUseCustomDashPattern, QgsLineSymbolLayerV2::mWidth, and penStyle().
bool QgsSimpleLineSymbolLayerV2::useCustomDashPattern | ( | ) | const [inline] |
Definition at line 73 of file qgslinesymbollayerv2.h.
QVector<qreal> QgsSimpleLineSymbolLayerV2::mCustomDashVector [protected] |
Vector with an even number of entries for the.
Definition at line 89 of file qgslinesymbollayerv2.h.
Referenced by clone(), properties(), QgsSimpleLineSymbolLayerV2(), startRender(), and toSld().
double QgsSimpleLineSymbolLayerV2::mOffset [protected] |
Definition at line 85 of file qgslinesymbollayerv2.h.
Referenced by clone(), properties(), renderPolyline(), and toSld().
QPen QgsSimpleLineSymbolLayerV2::mPen [protected] |
Definition at line 83 of file qgslinesymbollayerv2.h.
Referenced by renderPolyline(), and startRender().
Qt::PenCapStyle QgsSimpleLineSymbolLayerV2::mPenCapStyle [protected] |
Definition at line 82 of file qgslinesymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
Qt::PenJoinStyle QgsSimpleLineSymbolLayerV2::mPenJoinStyle [protected] |
Definition at line 81 of file qgslinesymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
Qt::PenStyle QgsSimpleLineSymbolLayerV2::mPenStyle [protected] |
Definition at line 80 of file qgslinesymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
QPen QgsSimpleLineSymbolLayerV2::mSelPen [protected] |
Definition at line 84 of file qgslinesymbollayerv2.h.
Referenced by renderPolyline(), and startRender().
bool QgsSimpleLineSymbolLayerV2::mUseCustomDashPattern [protected] |
Definition at line 87 of file qgslinesymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().