QGIS API Documentation  master-6164ace
QgsLinePatternFillSymbolLayer Class Reference

#include <qgsfillsymbollayerv2.h>

+ Inheritance diagram for QgsLinePatternFillSymbolLayer:
+ Collaboration diagram for QgsLinePatternFillSymbolLayer:

List of all members.

Public Member Functions

 QgsLinePatternFillSymbolLayer ()
 ~QgsLinePatternFillSymbolLayer ()
QgsSymbolLayerV2clone () const
QColor color () const
double distance () const
QgsSymbolV2::OutputUnit distanceUnit () const
QString layerType () const
double lineAngle () const
double lineWidth () const
QgsSymbolV2::OutputUnit lineWidthUnit () const
double offset () const
QgsSymbolV2::OutputUnit offsetUnit () const
QString ogrFeatureStyleWidth (double widthScaleFactor) const
QgsSymbolV2::OutputUnit outputUnit () const
QgsStringMap properties () const
void setColor (const QColor &c)
void setDistance (double d)
void setDistanceUnit (QgsSymbolV2::OutputUnit unit)
void setLineAngle (double a)
void setLineWidth (double w)
void setLineWidthUnit (QgsSymbolV2::OutputUnit unit)
void setOffset (double 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 Member Functions

void applyDataDefinedSettings (const QgsSymbolV2RenderContext &context)

Protected Attributes

QColor mColor
double mDistance
 Distance (in mm or map units) between lines.
QgsSymbolV2::OutputUnit mDistanceUnit
double mLineAngle
 Vector line angle in degrees (0 = horizontal, counterclockwise)
double mLineWidth
 Line width (in mm or map units)
QgsSymbolV2::OutputUnit mLineWidthUnit
double mOffset
 Offset perpendicular to line direction.
QgsSymbolV2::OutputUnit mOffsetUnit

Private Member Functions

void applyPattern (const QgsSymbolV2RenderContext &context, QBrush &brush, double lineAngle, double distance, double lineWidth, const QColor &color)
 Applies the svg pattern to the brush.

Detailed Description

Definition at line 213 of file qgsfillsymbollayerv2.h.


Constructor & Destructor Documentation


Member Function Documentation

QColor QgsLinePatternFillSymbolLayer::color ( void  ) const [inline, virtual]
QString QgsLinePatternFillSymbolLayer::layerType ( ) const [virtual]

Implements QgsSymbolLayerV2.

Definition at line 953 of file qgsfillsymbollayerv2.cpp.

QString QgsLinePatternFillSymbolLayer::ogrFeatureStyleWidth ( double  widthScaleFactor) const

Definition at line 1176 of file qgsfillsymbollayerv2.cpp.

References mColor, mDistance, mLineAngle, and mLineWidth.

Reimplemented from QgsSymbolLayerV2.

Definition at line 861 of file qgsfillsymbollayerv2.cpp.

References mDistanceUnit, mLineWidthUnit, and mOffsetUnit.

Implements QgsSymbolLayerV2.

Definition at line 1095 of file qgsfillsymbollayerv2.cpp.


Member Data Documentation

Distance (in mm or map units) between lines.

Definition at line 262 of file qgsfillsymbollayerv2.h.

Referenced by applyDataDefinedSettings(), ogrFeatureStyleWidth(), properties(), startRender(), and toSld().

Vector line angle in degrees (0 = horizontal, counterclockwise)

Definition at line 269 of file qgsfillsymbollayerv2.h.

Referenced by applyDataDefinedSettings(), ogrFeatureStyleWidth(), properties(), startRender(), and toSld().

Line width (in mm or map units)

Definition at line 265 of file qgsfillsymbollayerv2.h.

Referenced by applyDataDefinedSettings(), ogrFeatureStyleWidth(), properties(), startRender(), and toSld().

Offset perpendicular to line direction.

Definition at line 271 of file qgsfillsymbollayerv2.h.

Referenced by applyPattern(), properties(), and toSld().


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