|
QGIS API Documentation
master-6164ace
|
#include <qgslinesymbollayerv2.h>
Inheritance diagram for QgsLineDecorationSymbolLayerV2:
Collaboration diagram for QgsLineDecorationSymbolLayerV2:Public Member Functions | |
| QgsLineDecorationSymbolLayerV2 (QColor color=DEFAULT_LINEDECORATION_COLOR, double width=DEFAULT_LINEDECORATION_WIDTH) | |
| ~QgsLineDecorationSymbolLayerV2 () | |
| QgsSymbolLayerV2 * | clone () const |
| QString | layerType () const |
| QgsSymbolV2::OutputUnit | outputUnit () const |
| QgsStringMap | properties () const |
| void | renderPolyline (const QPolygonF &points, QgsSymbolV2RenderContext &context) |
| void | setOutputUnit (QgsSymbolV2::OutputUnit unit) |
| void | startRender (QgsSymbolV2RenderContext &context) |
| void | stopRender (QgsSymbolV2RenderContext &context) |
| void | toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const |
Static Public Member Functions | |
| static QgsSymbolLayerV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
Protected Attributes | |
| QPen | mPen |
| QPen | mSelPen |
Definition at line 207 of file qgslinesymbollayerv2.h.
| QgsLineDecorationSymbolLayerV2::QgsLineDecorationSymbolLayerV2 | ( | QColor | color = DEFAULT_LINEDECORATION_COLOR, |
| double | width = DEFAULT_LINEDECORATION_WIDTH |
||
| ) |
Definition at line 1050 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), QgsSymbolLayerV2::mColor, QgsLineSymbolLayerV2::mWidth, and QgsLineSymbolLayerV2::width().
Definition at line 1056 of file qgslinesymbollayerv2.cpp.
| QgsSymbolLayerV2 * QgsLineDecorationSymbolLayerV2::clone | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 1152 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::mColor, QgsLineSymbolLayerV2::mWidth, QgsLineSymbolLayerV2::mWidthUnit, QgsLineDecorationSymbolLayerV2(), and QgsLineSymbolLayerV2::setWidthUnit().
| QgsSymbolLayerV2 * QgsLineDecorationSymbolLayerV2::create | ( | const QgsStringMap & | properties = QgsStringMap() | ) | [static] |
Definition at line 1060 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodeOutputUnit(), DEFAULT_LINEDECORATION_COLOR, DEFAULT_LINEDECORATION_WIDTH, QgsLineDecorationSymbolLayerV2(), QgsLineSymbolLayerV2::setWidthUnit(), and QgsLineSymbolLayerV2::width().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
| QString QgsLineDecorationSymbolLayerV2::layerType | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 1079 of file qgslinesymbollayerv2.cpp.
| QgsSymbolV2::OutputUnit QgsLineDecorationSymbolLayerV2::outputUnit | ( | ) | const [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 1195 of file qgslinesymbollayerv2.cpp.
References QgsLineSymbolLayerV2::mWidthUnit.
| QgsStringMap QgsLineDecorationSymbolLayerV2::properties | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 1143 of file qgslinesymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2Utils::encodeOutputUnit(), QgsSymbolLayerV2::mColor, QgsLineSymbolLayerV2::mWidth, and QgsLineSymbolLayerV2::mWidthUnit.
| void QgsLineDecorationSymbolLayerV2::renderPolyline | ( | const QPolygonF & | points, |
| QgsSymbolV2RenderContext & | context | ||
| ) | [virtual] |
Implements QgsLineSymbolLayerV2.
Definition at line 1104 of file qgslinesymbollayerv2.cpp.
References MathUtils::angle(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), M_PI, mPen, mSelPen, QgsLineSymbolLayerV2::mWidth, QgsLineSymbolLayerV2::mWidthUnit, QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolV2RenderContext::selected(), and size.
| void QgsLineDecorationSymbolLayerV2::setOutputUnit | ( | QgsSymbolV2::OutputUnit | unit | ) | [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 1190 of file qgslinesymbollayerv2.cpp.
References QgsLineSymbolLayerV2::mWidthUnit.
| void QgsLineDecorationSymbolLayerV2::startRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 1084 of file qgslinesymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), QgsSymbolLayerV2::mColor, mPen, mSelPen, QgsLineSymbolLayerV2::mWidth, QgsLineSymbolLayerV2::mWidthUnit, QgsSymbolV2RenderContext::outputLineWidth(), QgsSymbolV2RenderContext::renderContext(), QgsRenderContext::selectionColor(), QgsSymbolLayerV2::selectionIsOpaque, and QgsLineSymbolLayerV2::width().
| void QgsLineDecorationSymbolLayerV2::stopRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 1099 of file qgslinesymbollayerv2.cpp.
| void QgsLineDecorationSymbolLayerV2::toSld | ( | QDomDocument & | doc, |
| QDomElement & | element, | ||
| QgsStringMap | props | ||
| ) | const [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 1159 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 239 of file qgslinesymbollayerv2.h.
Referenced by renderPolyline(), and startRender().
QPen QgsLineDecorationSymbolLayerV2::mSelPen [protected] |
Definition at line 240 of file qgslinesymbollayerv2.h.
Referenced by renderPolyline(), and startRender().