QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
QgsSimpleLineSymbolLayerV2 Class Reference

#include <qgslinesymbollayerv2.h>

Inheritance diagram for QgsSimpleLineSymbolLayerV2:
Inheritance graph
[legend]

Public Member Functions

 QgsSimpleLineSymbolLayerV2 (QColor color=DEFAULT_SIMPLELINE_COLOR, double width=DEFAULT_SIMPLELINE_WIDTH, Qt::PenStyle penStyle=DEFAULT_SIMPLELINE_PENSTYLE)
QString layerType () const
void startRender (QgsSymbolV2RenderContext &context)
void stopRender (QgsSymbolV2RenderContext &context)
void renderPolyline (const QPolygonF &points, QgsSymbolV2RenderContext &context)
void renderPolygonOutline (const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context)
QgsStringMap properties () const
QgsSymbolLayerV2clone () const
void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
void setOutputUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit outputUnit () const
void setMapUnitScale (const QgsMapUnitScale &scale)
QgsMapUnitScale mapUnitScale () const
double estimateMaxBleed () const
 Returns the estimated maximum distance which the layer style will bleed outside the drawn shape.
Qt::PenStyle penStyle () const
void setPenStyle (Qt::PenStyle style)
Qt::PenJoinStyle penJoinStyle () const
void setPenJoinStyle (Qt::PenJoinStyle style)
Qt::PenCapStyle penCapStyle () const
void setPenCapStyle (Qt::PenCapStyle style)
double offset () const
void setOffset (double offset)
void setOffsetUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit offsetUnit () const
void setOffsetMapUnitScale (const QgsMapUnitScale &scale)
const QgsMapUnitScaleoffsetMapUnitScale () const
bool useCustomDashPattern () const
void setUseCustomDashPattern (bool b)
void setCustomDashPatternUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit customDashPatternUnit () const
const QgsMapUnitScalecustomDashPatternMapUnitScale () const
void setCustomDashPatternMapUnitScale (const QgsMapUnitScale &scale)
QVector< qreal > customDashVector () const
void setCustomDashVector (const QVector< qreal > &vector)
bool drawInsidePolygon () const
void setDrawInsidePolygon (bool drawInsidePolygon)
QVector< qreal > dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) const
Qt::PenStyle dxfPenStyle () const
double dxfWidth (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const
QColor dxfColor (const QgsSymbolV2RenderContext &context) const
- Public Member Functions inherited from QgsLineSymbolLayerV2
virtual void setWidth (double width)
virtual double width () const
void setWidthUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit widthUnit () const
void setWidthMapUnitScale (const QgsMapUnitScale &scale)
const QgsMapUnitScalewidthMapUnitScale () const
void drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size)
- Public Member Functions inherited from QgsSymbolLayerV2
virtual QColor color () const
virtual void setColor (const QColor &color)
virtual void setOutlineColor (const QColor &color)
 Set outline color.
virtual QColor outlineColor () const
 Get outline color.
virtual void setFillColor (const QColor &color)
 Set fill color.
virtual QColor fillColor () const
 Get fill color.
virtual ~QgsSymbolLayerV2 ()
virtual QgsSymbolV2subSymbol ()
virtual bool setSubSymbol (QgsSymbolV2 *symbol)
QgsSymbolV2::SymbolType type () const
void setLocked (bool locked)
bool isLocked () const
void setRenderingPass (int renderingPass)
int renderingPass () const
virtual QSet< QString > usedAttributes () const
virtual const QgsExpressiondataDefinedProperty (const QString &property) const
virtual QString dataDefinedPropertyString (const QString &property) const
virtual void setDataDefinedProperty (const QString &property, const QString &expressionString)
virtual void removeDataDefinedProperty (const QString &property)
virtual void removeDataDefinedProperties ()
bool hasDataDefinedProperties () const
virtual bool writeDxf (QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, const QgsSymbolV2RenderContext *context, const QgsFeature *f, const QPointF &shift=QPointF(0.0, 0.0)) const
virtual QColor dxfBrushColor (const QgsSymbolV2RenderContext &context) const
virtual Qt::BrushStyle dxfBrushStyle () const

Static Public Member Functions

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

Protected Attributes

Qt::PenStyle mPenStyle
Qt::PenJoinStyle mPenJoinStyle
Qt::PenCapStyle mPenCapStyle
QPen mPen
QPen mSelPen
double mOffset
QgsSymbolV2::OutputUnit mOffsetUnit
QgsMapUnitScale mOffsetMapUnitScale
bool mUseCustomDashPattern
QgsSymbolV2::OutputUnit mCustomDashPatternUnit
QgsMapUnitScale mCustomDashPatternMapUnitScale
QVector< qreal > mCustomDashVector
 Vector with an even number of entries for the.
bool mDrawInsidePolygon
- Protected Attributes inherited from QgsLineSymbolLayerV2
double mWidth
QgsSymbolV2::OutputUnit mWidthUnit
QgsMapUnitScale mWidthMapUnitScale
- Protected Attributes inherited from QgsSymbolLayerV2
QgsSymbolV2::SymbolType mType
bool mLocked
QColor mColor
int mRenderingPass
QMap< QString, QgsExpression * > mDataDefinedProperties

Additional Inherited Members

- Protected Member Functions inherited from QgsLineSymbolLayerV2
 QgsLineSymbolLayerV2 (bool locked=false)
- Static Protected Attributes inherited from QgsSymbolLayerV2
static const bool selectionIsOpaque = true
static const bool selectFillBorder = false
static const bool selectFillStyle = false

Constructor & Destructor Documentation

QgsSimpleLineSymbolLayerV2::QgsSimpleLineSymbolLayerV2 ( QColor  color = DEFAULT_SIMPLELINE_COLOR,
double  width = DEFAULT_SIMPLELINE_WIDTH,
Qt::PenStyle  penStyle = DEFAULT_SIMPLELINE_PENSTYLE 
)

Member Function Documentation

QgsSymbolLayerV2 * QgsSimpleLineSymbolLayerV2::clone ( ) const
virtual

Implements QgsSymbolLayerV2.

QgsSymbolLayerV2 * QgsSimpleLineSymbolLayerV2::create ( const QgsStringMap properties = QgsStringMap())
static
QgsSymbolLayerV2 * QgsSimpleLineSymbolLayerV2::createFromSld ( QDomElement &  element)
static
const QgsMapUnitScale& QgsSimpleLineSymbolLayerV2::customDashPatternMapUnitScale ( ) const
inline
QgsSymbolV2::OutputUnit QgsSimpleLineSymbolLayerV2::customDashPatternUnit ( ) const
inline
QVector<qreal> QgsSimpleLineSymbolLayerV2::customDashVector ( ) const
inline
bool QgsSimpleLineSymbolLayerV2::drawInsidePolygon ( ) const
inline
QColor QgsSimpleLineSymbolLayerV2::dxfColor ( const QgsSymbolV2RenderContext context) const
virtual

Reimplemented from QgsSymbolLayerV2.

QVector< qreal > QgsSimpleLineSymbolLayerV2::dxfCustomDashPattern ( QgsSymbolV2::OutputUnit unit) const
virtual

Reimplemented from QgsSymbolLayerV2.

Qt::PenStyle QgsSimpleLineSymbolLayerV2::dxfPenStyle ( ) const
virtual

Reimplemented from QgsSymbolLayerV2.

double QgsSimpleLineSymbolLayerV2::dxfWidth ( const QgsDxfExport e,
const QgsSymbolV2RenderContext context 
) const
virtual

Reimplemented from QgsLineSymbolLayerV2.

double QgsSimpleLineSymbolLayerV2::estimateMaxBleed ( ) const
virtual

Returns the estimated maximum distance which the layer style will bleed outside the drawn shape.

Eg, polygons drawn with an outline will draw half the width of the outline outside of the polygon. This amount is estimated, since it may be affected by data defined symbology rules.

Reimplemented from QgsSymbolLayerV2.

QString QgsSimpleLineSymbolLayerV2::layerType ( ) const
virtual

Implements QgsSymbolLayerV2.

QgsMapUnitScale QgsSimpleLineSymbolLayerV2::mapUnitScale ( ) const
virtual

Reimplemented from QgsLineSymbolLayerV2.

double QgsSimpleLineSymbolLayerV2::offset ( ) const
inline
const QgsMapUnitScale& QgsSimpleLineSymbolLayerV2::offsetMapUnitScale ( ) const
inline
QgsSymbolV2::OutputUnit QgsSimpleLineSymbolLayerV2::offsetUnit ( ) const
inline
QString QgsSimpleLineSymbolLayerV2::ogrFeatureStyle ( double  mmScaleFactor,
double  mapUnitScaleFactor 
) const
virtual

Reimplemented from QgsSymbolLayerV2.

QgsSymbolV2::OutputUnit QgsSimpleLineSymbolLayerV2::outputUnit ( ) const
virtual

Reimplemented from QgsLineSymbolLayerV2.

Qt::PenCapStyle QgsSimpleLineSymbolLayerV2::penCapStyle ( ) const
inline
Qt::PenJoinStyle QgsSimpleLineSymbolLayerV2::penJoinStyle ( ) const
inline
Qt::PenStyle QgsSimpleLineSymbolLayerV2::penStyle ( ) const
inline
QgsStringMap QgsSimpleLineSymbolLayerV2::properties ( ) const
virtual

Implements QgsSymbolLayerV2.

void QgsSimpleLineSymbolLayerV2::renderPolygonOutline ( const QPolygonF &  points,
QList< QPolygonF > *  rings,
QgsSymbolV2RenderContext context 
)
virtual

Reimplemented from QgsLineSymbolLayerV2.

void QgsSimpleLineSymbolLayerV2::renderPolyline ( const QPolygonF &  points,
QgsSymbolV2RenderContext context 
)
virtual

Implements QgsLineSymbolLayerV2.

void QgsSimpleLineSymbolLayerV2::setCustomDashPatternMapUnitScale ( const QgsMapUnitScale scale)
inline
void QgsSimpleLineSymbolLayerV2::setCustomDashPatternUnit ( QgsSymbolV2::OutputUnit  unit)
inline
void QgsSimpleLineSymbolLayerV2::setCustomDashVector ( const QVector< qreal > &  vector)
inline
void QgsSimpleLineSymbolLayerV2::setDrawInsidePolygon ( bool  drawInsidePolygon)
inline
void QgsSimpleLineSymbolLayerV2::setMapUnitScale ( const QgsMapUnitScale scale)
virtual

Reimplemented from QgsLineSymbolLayerV2.

void QgsSimpleLineSymbolLayerV2::setOffset ( double  offset)
inline
void QgsSimpleLineSymbolLayerV2::setOffsetMapUnitScale ( const QgsMapUnitScale scale)
inline
void QgsSimpleLineSymbolLayerV2::setOffsetUnit ( QgsSymbolV2::OutputUnit  unit)
inline
void QgsSimpleLineSymbolLayerV2::setOutputUnit ( QgsSymbolV2::OutputUnit  unit)
virtual

Reimplemented from QgsLineSymbolLayerV2.

void QgsSimpleLineSymbolLayerV2::setPenCapStyle ( Qt::PenCapStyle  style)
inline
void QgsSimpleLineSymbolLayerV2::setPenJoinStyle ( Qt::PenJoinStyle  style)
inline
void QgsSimpleLineSymbolLayerV2::setPenStyle ( Qt::PenStyle  style)
inline
void QgsSimpleLineSymbolLayerV2::setUseCustomDashPattern ( bool  b)
inline
void QgsSimpleLineSymbolLayerV2::startRender ( QgsSymbolV2RenderContext context)
virtual

Implements QgsSymbolLayerV2.

void QgsSimpleLineSymbolLayerV2::stopRender ( QgsSymbolV2RenderContext context)
virtual

Implements QgsSymbolLayerV2.

void QgsSimpleLineSymbolLayerV2::toSld ( QDomDocument &  doc,
QDomElement &  element,
QgsStringMap  props 
) const
virtual

Reimplemented from QgsSymbolLayerV2.

bool QgsSimpleLineSymbolLayerV2::useCustomDashPattern ( ) const
inline

Member Data Documentation

QgsMapUnitScale QgsSimpleLineSymbolLayerV2::mCustomDashPatternMapUnitScale
protected
QgsSymbolV2::OutputUnit QgsSimpleLineSymbolLayerV2::mCustomDashPatternUnit
protected
QVector<qreal> QgsSimpleLineSymbolLayerV2::mCustomDashVector
protected

Vector with an even number of entries for the.

bool QgsSimpleLineSymbolLayerV2::mDrawInsidePolygon
protected
double QgsSimpleLineSymbolLayerV2::mOffset
protected
QgsMapUnitScale QgsSimpleLineSymbolLayerV2::mOffsetMapUnitScale
protected
QgsSymbolV2::OutputUnit QgsSimpleLineSymbolLayerV2::mOffsetUnit
protected
QPen QgsSimpleLineSymbolLayerV2::mPen
protected
Qt::PenCapStyle QgsSimpleLineSymbolLayerV2::mPenCapStyle
protected
Qt::PenJoinStyle QgsSimpleLineSymbolLayerV2::mPenJoinStyle
protected
Qt::PenStyle QgsSimpleLineSymbolLayerV2::mPenStyle
protected
QPen QgsSimpleLineSymbolLayerV2::mSelPen
protected
bool QgsSimpleLineSymbolLayerV2::mUseCustomDashPattern
protected

The documentation for this class was generated from the following files: