Quantum GIS API Documentation
1.8
|
#include <qgsfillsymbollayerv2.h>
Definition at line 30 of file qgsfillsymbollayerv2.h.
QgsSimpleFillSymbolLayerV2::QgsSimpleFillSymbolLayerV2 | ( | QColor | color = DEFAULT_SIMPLEFILL_COLOR , |
Qt::BrushStyle | style = DEFAULT_SIMPLEFILL_STYLE , |
||
QColor | borderColor = DEFAULT_SIMPLEFILL_BORDERCOLOR , |
||
Qt::PenStyle | borderStyle = DEFAULT_SIMPLEFILL_BORDERSTYLE , |
||
double | borderWidth = DEFAULT_SIMPLEFILL_BORDERWIDTH |
||
) |
Definition at line 30 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), and QgsSymbolLayerV2::mColor.
Referenced by clone(), create(), and createFromSld().
QColor QgsSimpleFillSymbolLayerV2::borderColor | ( | void | ) | const [inline] |
Definition at line 63 of file qgsfillsymbollayerv2.h.
Referenced by create(), createFromSld(), and QgsSymbologyV2Conversion::symbolV2toV1().
Qt::PenStyle QgsSimpleFillSymbolLayerV2::borderStyle | ( | void | ) | const [inline] |
Definition at line 66 of file qgsfillsymbollayerv2.h.
Referenced by create(), createFromSld(), and QgsSymbologyV2Conversion::symbolV2toV1().
double QgsSimpleFillSymbolLayerV2::borderWidth | ( | void | ) | const [inline] |
Definition at line 69 of file qgsfillsymbollayerv2.h.
Referenced by create(), createFromSld(), and QgsSymbologyV2Conversion::symbolV2toV1().
Qt::BrushStyle QgsSimpleFillSymbolLayerV2::brushStyle | ( | ) | const [inline] |
Definition at line 60 of file qgsfillsymbollayerv2.h.
Referenced by QgsSymbologyV2Conversion::symbolV2toV1().
QgsSymbolLayerV2 * QgsSimpleFillSymbolLayerV2::clone | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 130 of file qgsfillsymbollayerv2.cpp.
References mBorderColor, mBorderStyle, mBorderWidth, mBrushStyle, QgsSymbolLayerV2::mColor, mOffset, QgsSimpleFillSymbolLayerV2(), and setOffset().
QgsSymbolLayerV2 * QgsSimpleFillSymbolLayerV2::create | ( | const QgsStringMap & | properties = QgsStringMap() | ) | [static] |
Definition at line 37 of file qgsfillsymbollayerv2.cpp.
References borderColor(), borderStyle(), borderWidth(), QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeBrushStyle(), QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodePenStyle(), QgsSymbolLayerV2Utils::decodePoint(), DEFAULT_SIMPLEFILL_BORDERCOLOR, DEFAULT_SIMPLEFILL_BORDERSTYLE, DEFAULT_SIMPLEFILL_BORDERWIDTH, DEFAULT_SIMPLEFILL_COLOR, DEFAULT_SIMPLEFILL_STYLE, offset(), QgsSimpleFillSymbolLayerV2(), and setOffset().
Referenced by QgsFillSymbolV2::createSimple(), QgsSymbolLayerV2Registry::defaultSymbolLayer(), and QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
QgsSymbolLayerV2 * QgsSimpleFillSymbolLayerV2::createFromSld | ( | QDomElement & | element | ) | [static] |
Definition at line 170 of file qgsfillsymbollayerv2.cpp.
References borderColor(), borderStyle(), borderWidth(), QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::displacementFromSldElement(), QgsSymbolLayerV2Utils::fillFromSld(), QgsSymbolLayerV2Utils::lineFromSld(), offset(), QgsDebugMsg, QgsSimpleFillSymbolLayerV2(), and setOffset().
Referenced by QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
QString QgsSimpleFillSymbolLayerV2::layerType | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 65 of file qgsfillsymbollayerv2.cpp.
QPointF QgsSimpleFillSymbolLayerV2::offset | ( | ) | [inline] |
Definition at line 73 of file qgsfillsymbollayerv2.h.
Referenced by create(), and createFromSld().
QgsStringMap QgsSimpleFillSymbolLayerV2::properties | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 118 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeBrushStyle(), QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2Utils::encodePenStyle(), QgsSymbolLayerV2Utils::encodePoint(), mBorderColor, mBorderStyle, mBorderWidth, mBrushStyle, QgsSymbolLayerV2::mColor, and mOffset.
void QgsSimpleFillSymbolLayerV2::renderPolygon | ( | const QPolygonF & | points, |
QList< QPolygonF > * | rings, | ||
QgsSymbolV2RenderContext & | context | ||
) | [virtual] |
Implements QgsFillSymbolLayerV2.
Definition at line 98 of file qgsfillsymbollayerv2.cpp.
References QgsFillSymbolLayerV2::_renderPolygon(), mBrush, mOffset, mPen, mSelBrush, QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), and QgsSymbolV2RenderContext::selected().
void QgsSimpleFillSymbolLayerV2::setBorderColor | ( | QColor | borderColor | ) | [inline] |
Definition at line 64 of file qgsfillsymbollayerv2.h.
void QgsSimpleFillSymbolLayerV2::setBorderStyle | ( | Qt::PenStyle | borderStyle | ) | [inline] |
Definition at line 67 of file qgsfillsymbollayerv2.h.
void QgsSimpleFillSymbolLayerV2::setBorderWidth | ( | double | borderWidth | ) | [inline] |
Definition at line 70 of file qgsfillsymbollayerv2.h.
void QgsSimpleFillSymbolLayerV2::setBrushStyle | ( | Qt::BrushStyle | style | ) | [inline] |
Definition at line 61 of file qgsfillsymbollayerv2.h.
void QgsSimpleFillSymbolLayerV2::setOffset | ( | QPointF | offset | ) | [inline] |
Definition at line 72 of file qgsfillsymbollayerv2.h.
Referenced by clone(), create(), and createFromSld().
void QgsSimpleFillSymbolLayerV2::startRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 70 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), mBorderColor, mBorderStyle, mBorderWidth, mBrush, mBrushStyle, QgsSymbolLayerV2::mColor, mPen, mSelBrush, QgsSymbolV2RenderContext::outputLineWidth(), QgsRenderContext::rasterScaleFactor(), rasterScaleFactor, QgsSymbolV2RenderContext::renderContext(), QgsSymbolLayerV2::selectFillStyle, and QgsSymbolV2RenderContext::selectionColor().
void QgsSimpleFillSymbolLayerV2::stopRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 93 of file qgsfillsymbollayerv2.cpp.
void QgsSimpleFillSymbolLayerV2::toSld | ( | QDomDocument & | doc, |
QDomElement & | element, | ||
QgsStringMap | props | ||
) | const [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 137 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::createDisplacementElement(), QgsSymbolLayerV2Utils::createGeometryElement(), QgsSymbolLayerV2Utils::fillToSld(), QgsSymbolLayerV2Utils::lineToSld(), mBorderColor, mBorderStyle, mBorderWidth, mBrushStyle, QgsSymbolLayerV2::mColor, and mOffset.
QColor QgsSimpleFillSymbolLayerV2::mBorderColor [protected] |
Definition at line 79 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
Qt::PenStyle QgsSimpleFillSymbolLayerV2::mBorderStyle [protected] |
Definition at line 80 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
double QgsSimpleFillSymbolLayerV2::mBorderWidth [protected] |
Definition at line 81 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
QBrush QgsSimpleFillSymbolLayerV2::mBrush [protected] |
Definition at line 76 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().
Qt::BrushStyle QgsSimpleFillSymbolLayerV2::mBrushStyle [protected] |
Definition at line 78 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
QPointF QgsSimpleFillSymbolLayerV2::mOffset [protected] |
Definition at line 84 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), renderPolygon(), and toSld().
QPen QgsSimpleFillSymbolLayerV2::mPen [protected] |
Definition at line 82 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().
QBrush QgsSimpleFillSymbolLayerV2::mSelBrush [protected] |
Definition at line 77 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().