Quantum GIS API Documentation
1.8
|
#include <qgslinesymbollayerv2.h>
Public Member Functions | |
QgsLineDecorationSymbolLayerV2 (QColor color=DEFAULT_LINEDECORATION_COLOR, double width=DEFAULT_LINEDECORATION_WIDTH) | |
~QgsLineDecorationSymbolLayerV2 () | |
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 |
Static Public Member Functions | |
static QgsSymbolLayerV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
static QgsSymbolLayerV2 * | createFromSld (QDomElement &element) |
Protected Attributes | |
QPen | mPen |
QPen | mSelPen |
Definition at line 175 of file qgslinesymbollayerv2.h.
QgsLineDecorationSymbolLayerV2::QgsLineDecorationSymbolLayerV2 | ( | QColor | color = DEFAULT_LINEDECORATION_COLOR , |
double | width = DEFAULT_LINEDECORATION_WIDTH |
||
) |
Definition at line 825 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), QgsSymbolLayerV2::mColor, QgsLineSymbolLayerV2::mWidth, and QgsLineSymbolLayerV2::width().
Definition at line 831 of file qgslinesymbollayerv2.cpp.
QgsSymbolLayerV2 * QgsLineDecorationSymbolLayerV2::clone | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 918 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::mColor, QgsLineSymbolLayerV2::mWidth, and QgsLineDecorationSymbolLayerV2().
QgsSymbolLayerV2 * QgsLineDecorationSymbolLayerV2::create | ( | const QgsStringMap & | properties = QgsStringMap() | ) | [static] |
Definition at line 835 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeColor(), DEFAULT_LINEDECORATION_COLOR, DEFAULT_LINEDECORATION_WIDTH, QgsLineDecorationSymbolLayerV2(), and QgsLineSymbolLayerV2::width().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
static QgsSymbolLayerV2* QgsLineDecorationSymbolLayerV2::createFromSld | ( | QDomElement & | element | ) | [static] |
QString QgsLineDecorationSymbolLayerV2::layerType | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 848 of file qgslinesymbollayerv2.cpp.
QgsStringMap QgsLineDecorationSymbolLayerV2::properties | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 910 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2::mColor, and QgsLineSymbolLayerV2::mWidth.
void QgsLineDecorationSymbolLayerV2::renderPolyline | ( | const QPolygonF & | points, |
QgsSymbolV2RenderContext & | context | ||
) | [virtual] |
Implements QgsLineSymbolLayerV2.
Definition at line 871 of file qgslinesymbollayerv2.cpp.
References MathUtils::angle(), M_PI, mPen, mSelPen, QgsLineSymbolLayerV2::mWidth, QgsSymbolV2RenderContext::outputLineWidth(), QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolV2RenderContext::selected(), and size.
void QgsLineDecorationSymbolLayerV2::startRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 853 of file qgslinesymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), QgsSymbolLayerV2::mColor, mPen, mSelPen, QgsLineSymbolLayerV2::mWidth, QgsSymbolV2RenderContext::outputLineWidth(), QgsSymbolV2RenderContext::selectionColor(), and QgsSymbolLayerV2::selectionIsOpaque.
void QgsLineDecorationSymbolLayerV2::stopRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 866 of file qgslinesymbollayerv2.cpp.
void QgsLineDecorationSymbolLayerV2::toSld | ( | QDomDocument & | doc, |
QDomElement & | element, | ||
QgsStringMap | props | ||
) | const [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 923 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::createGeometryElement(), QgsSymbolLayerV2Utils::createRotationElement(), QgsSymbolLayerV2Utils::createVendorOptionElement(), QgsSymbolLayerV2::mColor, QgsLineSymbolLayerV2::mWidth, and QgsSymbolLayerV2Utils::wellKnownMarkerToSld().
QPen QgsLineDecorationSymbolLayerV2::mPen [protected] |
Definition at line 205 of file qgslinesymbollayerv2.h.
Referenced by renderPolyline(), and startRender().
QPen QgsLineDecorationSymbolLayerV2::mSelPen [protected] |
Definition at line 206 of file qgslinesymbollayerv2.h.
Referenced by renderPolyline(), and startRender().