#include <qgsfillsymbollayerv2.h>
Public Member Functions | |
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) | |
QString | layerType () const |
void | startRender (QgsSymbolV2RenderContext &context) |
void | stopRender (QgsSymbolV2RenderContext &context) |
void | renderPolygon (const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context) |
QgsStringMap | properties () const |
QgsSymbolLayerV2 * | clone () const |
Qt::BrushStyle | brushStyle () const |
void | setBrushStyle (Qt::BrushStyle style) |
QColor | borderColor () const |
void | setBorderColor (QColor borderColor) |
Qt::PenStyle | borderStyle () const |
void | setBorderStyle (Qt::PenStyle borderStyle) |
double | borderWidth () const |
void | setBorderWidth (double borderWidth) |
void | setOffset (QPointF offset) |
QPointF | offset () |
Static Public Member Functions | |
static QgsSymbolLayerV2 * | create (const QgsStringMap &properties=QgsStringMap()) |
Protected Attributes | |
QBrush | mBrush |
QBrush | mSelBrush |
Qt::BrushStyle | mBrushStyle |
QColor | mBorderColor |
Qt::PenStyle | mBorderStyle |
double | mBorderWidth |
QPen | mPen |
QPointF | mOffset |
Definition at line 16 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 | |||
) |
QgsSymbolLayerV2 * QgsSimpleFillSymbolLayerV2::create | ( | const QgsStringMap & | properties = QgsStringMap() |
) | [static] |
Definition at line 19 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 QgsSymbolLayerV2Registry::defaultSymbolLayer(), and QgsSymbolLayerV2Registry::QgsSymbolLayerV2Registry().
QString QgsSimpleFillSymbolLayerV2::layerType | ( | ) | const [virtual] |
void QgsSimpleFillSymbolLayerV2::startRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 52 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolV2RenderContext::alpha(), mBorderColor, mBorderStyle, mBorderWidth, mBrush, mBrushStyle, QgsSymbolLayerV2::mColor, mPen, mSelBrush, QgsSymbolV2RenderContext::outputLineWidth(), QgsRenderContext::rasterScaleFactor(), QgsSymbolV2RenderContext::renderContext(), QgsSymbolLayerV2::selectFillStyle, and QgsSymbolV2RenderContext::selectionColor().
void QgsSimpleFillSymbolLayerV2::stopRender | ( | QgsSymbolV2RenderContext & | context | ) | [virtual] |
void QgsSimpleFillSymbolLayerV2::renderPolygon | ( | const QPolygonF & | points, | |
QList< QPolygonF > * | rings, | |||
QgsSymbolV2RenderContext & | context | |||
) | [virtual] |
Implements QgsFillSymbolLayerV2.
Definition at line 78 of file qgsfillsymbollayerv2.cpp.
References QgsFillSymbolLayerV2::_renderPolygon(), mBrush, mOffset, mPen, mSelBrush, QgsRenderContext::painter(), QgsSymbolV2RenderContext::renderContext(), and QgsSymbolV2RenderContext::selected().
QgsStringMap QgsSimpleFillSymbolLayerV2::properties | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 98 of file qgsfillsymbollayerv2.cpp.
References QgsSymbolLayerV2Utils::encodeBrushStyle(), QgsSymbolLayerV2Utils::encodeColor(), QgsSymbolLayerV2Utils::encodePenStyle(), QgsSymbolLayerV2Utils::encodePoint(), mBorderColor, mBorderStyle, mBorderWidth, mBrushStyle, QgsSymbolLayerV2::mColor, and mOffset.
QgsSymbolLayerV2 * QgsSimpleFillSymbolLayerV2::clone | ( | ) | const [virtual] |
Implements QgsSymbolLayerV2.
Definition at line 110 of file qgsfillsymbollayerv2.cpp.
References mBorderColor, mBorderStyle, mBorderWidth, mBrushStyle, QgsSymbolLayerV2::mColor, mOffset, QgsSimpleFillSymbolLayerV2(), and setOffset().
Qt::BrushStyle QgsSimpleFillSymbolLayerV2::brushStyle | ( | ) | const [inline] |
Definition at line 43 of file qgsfillsymbollayerv2.h.
Referenced by QgsSymbologyV2Conversion::symbolV2toV1().
void QgsSimpleFillSymbolLayerV2::setBrushStyle | ( | Qt::BrushStyle | style | ) | [inline] |
Definition at line 44 of file qgsfillsymbollayerv2.h.
QColor QgsSimpleFillSymbolLayerV2::borderColor | ( | void | ) | const [inline] |
Definition at line 46 of file qgsfillsymbollayerv2.h.
Referenced by create(), and QgsSymbologyV2Conversion::symbolV2toV1().
void QgsSimpleFillSymbolLayerV2::setBorderColor | ( | QColor | borderColor | ) | [inline] |
Definition at line 47 of file qgsfillsymbollayerv2.h.
Qt::PenStyle QgsSimpleFillSymbolLayerV2::borderStyle | ( | void | ) | const [inline] |
Definition at line 49 of file qgsfillsymbollayerv2.h.
Referenced by create(), and QgsSymbologyV2Conversion::symbolV2toV1().
void QgsSimpleFillSymbolLayerV2::setBorderStyle | ( | Qt::PenStyle | borderStyle | ) | [inline] |
Definition at line 50 of file qgsfillsymbollayerv2.h.
double QgsSimpleFillSymbolLayerV2::borderWidth | ( | void | ) | const [inline] |
Definition at line 52 of file qgsfillsymbollayerv2.h.
Referenced by create(), and QgsSymbologyV2Conversion::symbolV2toV1().
void QgsSimpleFillSymbolLayerV2::setBorderWidth | ( | double | borderWidth | ) | [inline] |
Definition at line 53 of file qgsfillsymbollayerv2.h.
void QgsSimpleFillSymbolLayerV2::setOffset | ( | QPointF | offset | ) | [inline] |
QPointF QgsSimpleFillSymbolLayerV2::offset | ( | ) | [inline] |
QBrush QgsSimpleFillSymbolLayerV2::mBrush [protected] |
Definition at line 59 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().
QBrush QgsSimpleFillSymbolLayerV2::mSelBrush [protected] |
Definition at line 60 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().
Qt::BrushStyle QgsSimpleFillSymbolLayerV2::mBrushStyle [protected] |
Definition at line 61 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), and startRender().
QColor QgsSimpleFillSymbolLayerV2::mBorderColor [protected] |
Definition at line 62 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), and startRender().
Qt::PenStyle QgsSimpleFillSymbolLayerV2::mBorderStyle [protected] |
Definition at line 63 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), and startRender().
double QgsSimpleFillSymbolLayerV2::mBorderWidth [protected] |
Definition at line 64 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), and startRender().
QPen QgsSimpleFillSymbolLayerV2::mPen [protected] |
Definition at line 65 of file qgsfillsymbollayerv2.h.
Referenced by renderPolygon(), and startRender().
QPointF QgsSimpleFillSymbolLayerV2::mOffset [protected] |
Definition at line 67 of file qgsfillsymbollayerv2.h.
Referenced by clone(), properties(), and renderPolygon().