QGIS API Documentation  master-59fd5e0
QgsSimpleFillSymbolLayerV2 Class Reference

#include <qgsfillsymbollayerv2.h>

+ Inheritance diagram for QgsSimpleFillSymbolLayerV2:
+ Collaboration diagram for QgsSimpleFillSymbolLayerV2:

List of all members.

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)
QColor borderColor () const
Qt::PenStyle borderStyle () const
double borderWidth () const
QgsSymbolV2::OutputUnit borderWidthUnit () const
Qt::BrushStyle brushStyle () const
QgsSymbolLayerV2clone () const
QString layerType () const
QPointF offset ()
QgsSymbolV2::OutputUnit offsetUnit () const
QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
QgsSymbolV2::OutputUnit outputUnit () const
QgsStringMap properties () const
void renderPolygon (const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context)
void setBorderColor (QColor borderColor)
void setBorderStyle (Qt::PenStyle borderStyle)
void setBorderWidth (double borderWidth)
void setBorderWidthUnit (QgsSymbolV2::OutputUnit unit)
void setBrushStyle (Qt::BrushStyle style)
void setOffset (QPointF offset)
void setOffsetUnit (QgsSymbolV2::OutputUnit unit)
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 QgsSymbolLayerV2create (const QgsStringMap &properties=QgsStringMap())
static QgsSymbolLayerV2createFromSld (QDomElement &element)

Protected Attributes

QColor mBorderColor
Qt::PenStyle mBorderStyle
double mBorderWidth
QgsSymbolV2::OutputUnit mBorderWidthUnit
QBrush mBrush
Qt::BrushStyle mBrushStyle
QPointF mOffset
QgsSymbolV2::OutputUnit mOffsetUnit
QPen mPen
QBrush mSelBrush
QPen mSelPen

Private Member Functions

void applyDataDefinedSymbology (QgsSymbolV2RenderContext &context, QBrush &brush, QPen &pen, QPen &selPen)

Detailed Description

Definition at line 30 of file qgsfillsymbollayerv2.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

Qt::PenStyle QgsSimpleFillSymbolLayerV2::borderStyle ( void  ) const [inline]
Qt::BrushStyle QgsSimpleFillSymbolLayerV2::brushStyle ( ) const [inline]
QString QgsSimpleFillSymbolLayerV2::layerType ( ) const [virtual]

Implements QgsSymbolLayerV2.

Definition at line 122 of file qgsfillsymbollayerv2.cpp.

QString QgsSimpleFillSymbolLayerV2::ogrFeatureStyle ( double  mmScaleFactor,
double  mapUnitScaleFactor 
) const [virtual]
void QgsSimpleFillSymbolLayerV2::setBorderColor ( QColor  borderColor) [inline]
void QgsSimpleFillSymbolLayerV2::setBorderStyle ( Qt::PenStyle  borderStyle) [inline]
void QgsSimpleFillSymbolLayerV2::setBorderWidth ( double  borderWidth) [inline]
void QgsSimpleFillSymbolLayerV2::setBrushStyle ( Qt::BrushStyle  style) [inline]

Reimplemented from QgsSymbolLayerV2.

Definition at line 38 of file qgsfillsymbollayerv2.cpp.

References mBorderWidthUnit, and mOffsetUnit.

Implements QgsSymbolLayerV2.

Definition at line 158 of file qgsfillsymbollayerv2.cpp.


Member Data Documentation

Qt::PenStyle QgsSimpleFillSymbolLayerV2::mBorderStyle [protected]

Definition at line 91 of file qgsfillsymbollayerv2.h.

Referenced by clone(), properties(), startRender(), and toSld().

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().

Definition at line 97 of file qgsfillsymbollayerv2.h.

Referenced by clone(), properties(), renderPolygon(), and toSld().

Definition at line 94 of file qgsfillsymbollayerv2.h.

Referenced by renderPolygon(), and startRender().

Definition at line 88 of file qgsfillsymbollayerv2.h.

Referenced by renderPolygon(), and startRender().

Definition at line 95 of file qgsfillsymbollayerv2.h.

Referenced by renderPolygon(), and startRender().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines