QGIS API Documentation  master-6227475
QgsSimpleLineSymbolLayerV2 Class Reference

#include <qgslinesymbollayerv2.h>

+ Inheritance diagram for QgsSimpleLineSymbolLayerV2:
+ Collaboration diagram for QgsSimpleLineSymbolLayerV2:

List of all members.

Public Member Functions

 QgsSimpleLineSymbolLayerV2 (QColor color=DEFAULT_SIMPLELINE_COLOR, double width=DEFAULT_SIMPLELINE_WIDTH, Qt::PenStyle penStyle=DEFAULT_SIMPLELINE_PENSTYLE)
QgsSymbolLayerV2clone () const
QgsSymbolV2::OutputUnit customDashPatternUnit () const
QVector< qreal > customDashVector () const
QString layerType () const
double offset () const
QgsSymbolV2::OutputUnit offsetUnit () const
QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
QgsSymbolV2::OutputUnit outputUnit () const
Qt::PenCapStyle penCapStyle () const
Qt::PenJoinStyle penJoinStyle () const
Qt::PenStyle penStyle () const
QgsStringMap properties () const
void renderPolyline (const QPolygonF &points, QgsSymbolV2RenderContext &context)
void setCustomDashPatternUnit (QgsSymbolV2::OutputUnit unit)
void setCustomDashVector (const QVector< qreal > &vector)
void setOffset (double offset)
void setOffsetUnit (QgsSymbolV2::OutputUnit unit)
void setOutputUnit (QgsSymbolV2::OutputUnit unit)
void setPenCapStyle (Qt::PenCapStyle style)
void setPenJoinStyle (Qt::PenJoinStyle style)
void setPenStyle (Qt::PenStyle style)
void setUseCustomDashPattern (bool b)
void startRender (QgsSymbolV2RenderContext &context)
void stopRender (QgsSymbolV2RenderContext &context)
void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
bool useCustomDashPattern () const

Static Public Member Functions

static QgsSymbolLayerV2create (const QgsStringMap &properties=QgsStringMap())
static QgsSymbolLayerV2createFromSld (QDomElement &element)

Protected Attributes

QgsSymbolV2::OutputUnit mCustomDashPatternUnit
QVector< qreal > mCustomDashVector
 Vector with an even number of entries for the.
double mOffset
QgsSymbolV2::OutputUnit mOffsetUnit
QPen mPen
Qt::PenCapStyle mPenCapStyle
Qt::PenJoinStyle mPenJoinStyle
Qt::PenStyle mPenStyle
QPen mSelPen
bool mUseCustomDashPattern

Private Member Functions

void applyDataDefinedSymbology (QgsSymbolV2RenderContext &context, QPen &pen, QPen &selPen, double &offset)

Detailed Description

Definition at line 33 of file qgslinesymbollayerv2.h.


Constructor & Destructor Documentation


Member Function Documentation

QString QgsSimpleLineSymbolLayerV2::layerType ( ) const [virtual]

Implements QgsSymbolLayerV2.

Definition at line 113 of file qgslinesymbollayerv2.cpp.

QString QgsSimpleLineSymbolLayerV2::ogrFeatureStyle ( double  mmScaleFactor,
double  mapUnitScaleFactor 
) const [virtual]
Qt::PenCapStyle QgsSimpleLineSymbolLayerV2::penCapStyle ( ) const [inline]
Qt::PenJoinStyle QgsSimpleLineSymbolLayerV2::penJoinStyle ( ) const [inline]
void QgsSimpleLineSymbolLayerV2::setPenCapStyle ( Qt::PenCapStyle  style) [inline]
void QgsSimpleLineSymbolLayerV2::setPenJoinStyle ( Qt::PenJoinStyle  style) [inline]
void QgsSimpleLineSymbolLayerV2::setPenStyle ( Qt::PenStyle  style) [inline]

Implements QgsSymbolLayerV2.

Definition at line 156 of file qgslinesymbollayerv2.cpp.


Member Data Documentation

Vector with an even number of entries for the.

Definition at line 106 of file qgslinesymbollayerv2.h.

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

Qt::PenCapStyle QgsSimpleLineSymbolLayerV2::mPenCapStyle [protected]

Definition at line 95 of file qgslinesymbollayerv2.h.

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

Qt::PenJoinStyle QgsSimpleLineSymbolLayerV2::mPenJoinStyle [protected]

Definition at line 94 of file qgslinesymbollayerv2.h.

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

Qt::PenStyle QgsSimpleLineSymbolLayerV2::mPenStyle [protected]

Definition at line 93 of file qgslinesymbollayerv2.h.

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

Definition at line 97 of file qgslinesymbollayerv2.h.

Referenced by renderPolyline(), 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