|
Quantum GIS API Documentation
master-ce49b66
|
#include <qgsfillsymbollayerv2.h>
Inheritance diagram for QgsSimpleFillSymbolLayerV2:
Collaboration diagram for QgsSimpleFillSymbolLayerV2: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 31 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2::color(), and QgsSymbolLayerV2::mColor.
Referenced by clone(), create(), and createFromSld().
| void QgsSimpleFillSymbolLayerV2::applyDataDefinedSymbology | ( | QgsSymbolV2RenderContext & | context, |
| QBrush & | brush, | ||
| QPen & | pen, | ||
| QPen & | selPen | ||
| ) | [private] |
Definition at line 54 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::decodeColor(), QgsExpression::evaluate(), QgsSymbolLayerV2::expression(), QgsSymbolV2RenderContext::feature(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), mBorderWidthUnit, and QgsSymbolV2RenderContext::renderContext().
Referenced by renderPolygon().
| QColor QgsSimpleFillSymbolLayerV2::borderColor | ( | void | ) | const [inline] |
Definition at line 65 of file qgsfillsymbollayerv2.h.
Referenced by create(), createFromSld(), QgsSimpleFillSymbolLayerV2Widget::setSymbolLayer(), and startRender().
| Qt::PenStyle QgsSimpleFillSymbolLayerV2::borderStyle | ( | void | ) | const [inline] |
Definition at line 68 of file qgsfillsymbollayerv2.h.
Referenced by create(), createFromSld(), and QgsSimpleFillSymbolLayerV2Widget::setSymbolLayer().
| double QgsSimpleFillSymbolLayerV2::borderWidth | ( | void | ) | const [inline] |
Definition at line 71 of file qgsfillsymbollayerv2.h.
Referenced by create(), createFromSld(), and QgsSimpleFillSymbolLayerV2Widget::setSymbolLayer().
| QgsSymbolV2::OutputUnit QgsSimpleFillSymbolLayerV2::borderWidthUnit | ( | ) | const [inline] |
Definition at line 78 of file qgsfillsymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2Widget::setSymbolLayer().
| Qt::BrushStyle QgsSimpleFillSymbolLayerV2::brushStyle | ( | ) | const [inline] |
Definition at line 62 of file qgsfillsymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2Widget::setSymbolLayer().
| QgsSymbolLayerV2 * QgsSimpleFillSymbolLayerV2::clone | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 208 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2::copyDataDefinedProperties(), mBorderColor, mBorderStyle, mBorderWidth, mBorderWidthUnit, mBrushStyle, QgsSymbolLayerV2::mColor, mOffset, mOffsetUnit, QgsSimpleFillSymbolLayerV2(), setBorderWidthUnit(), setOffset(), and setOffsetUnit().
| QgsSymbolLayerV2 * QgsSimpleFillSymbolLayerV2::create | ( | const QgsStringMap & | properties = QgsStringMap() | ) | [static] |
Definition at line 77 of file qgsfillsymbollayerv2.cpp.
References borderColor(), borderStyle(), borderWidth(), QgsSymbolLayerV2::color(), QgsSymbolLayerV2Utils::decodeBrushStyle(), QgsSymbolLayerV2Utils::decodeColor(), QgsSymbolLayerV2Utils::decodeOutputUnit(), QgsSymbolLayerV2Utils::decodePenStyle(), QgsSymbolLayerV2Utils::decodePoint(), DEFAULT_SIMPLEFILL_BORDERCOLOR, DEFAULT_SIMPLEFILL_BORDERSTYLE, DEFAULT_SIMPLEFILL_BORDERWIDTH, DEFAULT_SIMPLEFILL_COLOR, DEFAULT_SIMPLEFILL_STYLE, offset(), QgsSimpleFillSymbolLayerV2(), setBorderWidthUnit(), QgsSymbolLayerV2::setDataDefinedProperty(), setOffset(), and setOffsetUnit().
Referenced by QgsFillSymbolV2::createSimple(), QgsSymbolLayerV2Registry::defaultSymbolLayer(), and QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
| QgsSymbolLayerV2 * QgsSimpleFillSymbolLayerV2::createFromSld | ( | QDomElement & | element | ) | [static] |
Definition at line 262 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 122 of file qgsfillsymbollayerv2.cpp.
| QPointF QgsSimpleFillSymbolLayerV2::offset | ( | ) | [inline] |
Definition at line 75 of file qgsfillsymbollayerv2.h.
Referenced by create(), createFromSld(), renderPolygon(), and QgsSimpleFillSymbolLayerV2Widget::setSymbolLayer().
| QgsSymbolV2::OutputUnit QgsSimpleFillSymbolLayerV2::offsetUnit | ( | ) | const [inline] |
Definition at line 81 of file qgsfillsymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2Widget::setSymbolLayer().
| QString QgsSimpleFillSymbolLayerV2::ogrFeatureStyle | ( | double | mmScaleFactor, |
| double | mapUnitScaleFactor | ||
| ) | const [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 251 of file qgsfillsymbollayerv2.cpp.
References mBorderColor, mBorderWidth, QgsSymbolLayerV2::mColor, QgsSymbolLayerV2Utils::ogrFeatureStyleBrush(), and QgsSymbolLayerV2Utils::ogrFeatureStylePen().
| QgsSymbolV2::OutputUnit QgsSimpleFillSymbolLayerV2::outputUnit | ( | ) | const [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 44 of file qgsfillsymbollayerv2.cpp.
References mBorderWidthUnit, QgsSymbolV2::Mixed, and mOffsetUnit.
| QgsStringMap QgsSimpleFillSymbolLayerV2::properties | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 193 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeBrushStyle(), QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2Utils::encodeOutputUnit(), QgsSymbolLayerV2Utils::encodePenStyle(), QgsSymbolLayerV2Utils::encodePoint(), mBorderColor, mBorderStyle, mBorderWidth, mBorderWidthUnit, mBrushStyle, QgsSymbolLayerV2::mColor, mOffset, mOffsetUnit, and QgsSymbolLayerV2::saveDataDefinedProperties().
| void QgsSimpleFillSymbolLayerV2::renderPolygon | ( | const QPolygonF & | points, |
| QList< QPolygonF > * | rings, | ||
| QgsSymbolV2RenderContext & | context | ||
| ) | [virtual] |
Implements QgsFillSymbolLayerV2.
Definition at line 163 of file qgsfillsymbollayerv2.cpp.
References QgsFillSymbolLayerV2::_renderPolygon(), applyDataDefinedSymbology(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), mBrush, mOffset, mOffsetUnit, mPen, mSelBrush, mSelPen, offset(), QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), and QgsSymbolV2RenderContext::selected().
| void QgsSimpleFillSymbolLayerV2::setBorderColor | ( | QColor | borderColor | ) | [inline] |
Definition at line 66 of file qgsfillsymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2Widget::setBorderColor().
| void QgsSimpleFillSymbolLayerV2::setBorderStyle | ( | Qt::PenStyle | borderStyle | ) | [inline] |
Definition at line 69 of file qgsfillsymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2Widget::borderStyleChanged().
| void QgsSimpleFillSymbolLayerV2::setBorderWidth | ( | double | borderWidth | ) | [inline] |
Definition at line 72 of file qgsfillsymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2Widget::borderWidthChanged().
| void QgsSimpleFillSymbolLayerV2::setBorderWidthUnit | ( | QgsSymbolV2::OutputUnit | unit | ) | [inline] |
Definition at line 77 of file qgsfillsymbollayerv2.h.
Referenced by clone(), create(), and QgsSimpleFillSymbolLayerV2Widget::on_mBorderWidthUnitComboBox_currentIndexChanged().
| void QgsSimpleFillSymbolLayerV2::setBrushStyle | ( | Qt::BrushStyle | style | ) | [inline] |
Definition at line 63 of file qgsfillsymbollayerv2.h.
Referenced by QgsSimpleFillSymbolLayerV2Widget::setBrushStyle().
| void QgsSimpleFillSymbolLayerV2::setOffset | ( | QPointF | offset | ) | [inline] |
Definition at line 74 of file qgsfillsymbollayerv2.h.
Referenced by clone(), create(), createFromSld(), and QgsSimpleFillSymbolLayerV2Widget::offsetChanged().
| void QgsSimpleFillSymbolLayerV2::setOffsetUnit | ( | QgsSymbolV2::OutputUnit | unit | ) | [inline] |
Definition at line 80 of file qgsfillsymbollayerv2.h.
Referenced by clone(), create(), and QgsSimpleFillSymbolLayerV2Widget::on_mOffsetUnitComboBox_currentIndexChanged().
| void QgsSimpleFillSymbolLayerV2::setOutputUnit | ( | QgsSymbolV2::OutputUnit | unit | ) | [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 38 of file qgsfillsymbollayerv2.cpp.
References mBorderWidthUnit, and mOffsetUnit.
| void QgsSimpleFillSymbolLayerV2::startRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 127 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), borderColor(), QgsSymbolV2RenderContext::layer(), QgsSymbolLayerV2Utils::lineWidthScaleFactor(), mBorderColor, mBorderStyle, mBorderWidth, mBorderWidthUnit, mBrush, mBrushStyle, QgsSymbolLayerV2::mColor, mPen, mSelBrush, mSelPen, QgsSymbolLayerV2::prepareExpressions(), QgsRenderContext::rasterScaleFactor(), rasterScaleFactor, QgsSymbolV2RenderContext::renderContext(), QgsSymbolLayerV2::selectFillStyle, QgsRenderContext::selectionColor(), and QgsSymbolLayerV2::selectionIsOpaque.
| void QgsSimpleFillSymbolLayerV2::stopRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 158 of file qgsfillsymbollayerv2.cpp.
| void QgsSimpleFillSymbolLayerV2::toSld | ( | QDomDocument & | doc, |
| QDomElement & | element, | ||
| QgsStringMap | props | ||
| ) | const [virtual] |
Reimplemented from QgsSymbolLayerV2.
Definition at line 218 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 90 of file qgsfillsymbollayerv2.h.
Referenced by clone(), ogrFeatureStyle(), properties(), startRender(), and toSld().
Qt::PenStyle QgsSimpleFillSymbolLayerV2::mBorderStyle [protected] |
Definition at line 91 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
double QgsSimpleFillSymbolLayerV2::mBorderWidth [protected] |
Definition at line 92 of file qgsfillsymbollayerv2.h.
Referenced by clone(), ogrFeatureStyle(), properties(), startRender(), and toSld().
Definition at line 93 of file qgsfillsymbollayerv2.h.
Referenced by applyDataDefinedSymbology(), clone(), outputUnit(), properties(), setOutputUnit(), and startRender().
QBrush QgsSimpleFillSymbolLayerV2::mBrush [protected] |
Definition at line 87 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().
Qt::BrushStyle QgsSimpleFillSymbolLayerV2::mBrushStyle [protected] |
Definition at line 89 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), startRender(), and toSld().
QPointF QgsSimpleFillSymbolLayerV2::mOffset [protected] |
Definition at line 97 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), renderPolygon(), and toSld().
Definition at line 98 of file qgsfillsymbollayerv2.h.
Referenced by clone(), outputUnit(), properties(), renderPolygon(), and setOutputUnit().
QPen QgsSimpleFillSymbolLayerV2::mPen [protected] |
Definition at line 94 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().
QBrush QgsSimpleFillSymbolLayerV2::mSelBrush [protected] |
Definition at line 88 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().
QPen QgsSimpleFillSymbolLayerV2::mSelPen [protected] |
Definition at line 95 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().