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

#include <qgsfillsymbollayerv2.h>

Inheritance diagram for QgsPointPatternFillSymbolLayer:
Inheritance graph
[legend]

Public Member Functions

 QgsPointPatternFillSymbolLayer ()
 ~QgsPointPatternFillSymbolLayer ()
QString layerType () const
void startRender (QgsSymbolV2RenderContext &context)
void stopRender (QgsSymbolV2RenderContext &context)
QgsStringMap properties () const
QgsSymbolLayerV2clone () const
void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
double estimateMaxBleed () const
 Returns the estimated maximum distance which the layer style will bleed outside the drawn shape.
double distanceX () const
void setDistanceX (double d)
double distanceY () const
void setDistanceY (double d)
double displacementX () const
void setDisplacementX (double d)
double displacementY () const
void setDisplacementY (double d)
bool setSubSymbol (QgsSymbolV2 *symbol)
virtual QgsSymbolV2subSymbol ()
void setDistanceXUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit distanceXUnit () const
void setDistanceXMapUnitScale (const QgsMapUnitScale &scale)
const QgsMapUnitScaledistanceXMapUnitScale () const
void setDistanceYUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit distanceYUnit () const
void setDistanceYMapUnitScale (const QgsMapUnitScale &scale)
const QgsMapUnitScaledistanceYMapUnitScale () const
void setDisplacementXUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit displacementXUnit () const
void setDisplacementXMapUnitScale (const QgsMapUnitScale &scale)
const QgsMapUnitScaledisplacementXMapUnitScale () const
void setDisplacementYUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit displacementYUnit () const
void setDisplacementYMapUnitScale (const QgsMapUnitScale &scale)
const QgsMapUnitScaledisplacementYMapUnitScale () const
void setOutputUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit outputUnit () const
void setMapUnitScale (const QgsMapUnitScale &scale)
QgsMapUnitScale mapUnitScale () const
virtual QSet< QString > usedAttributes () const
- Public Member Functions inherited from QgsImageFillSymbolLayer
 QgsImageFillSymbolLayer ()
virtual ~QgsImageFillSymbolLayer ()
void renderPolygon (const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context)
void setOutlineWidthUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit outlineWidthUnit () const
void setOutlineWidthMapUnitScale (const QgsMapUnitScale &scale)
const QgsMapUnitScaleoutlineWidthMapUnitScale () const
virtual double dxfWidth (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const
virtual QColor dxfColor (const QgsSymbolV2RenderContext &context) const
virtual Qt::PenStyle dxfPenStyle () const
- Public Member Functions inherited from QgsFillSymbolLayerV2
void drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size)
void setAngle (double angle)
double angle () const
- 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 QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
QgsSymbolV2::SymbolType type () const
void setLocked (bool locked)
bool isLocked () const
void setRenderingPass (int renderingPass)
int renderingPass () 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 QVector< qreal > dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) 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

QgsMarkerSymbolV2mMarkerSymbol
double mDistanceX
QgsSymbolV2::OutputUnit mDistanceXUnit
QgsMapUnitScale mDistanceXMapUnitScale
double mDistanceY
QgsSymbolV2::OutputUnit mDistanceYUnit
QgsMapUnitScale mDistanceYMapUnitScale
double mDisplacementX
QgsSymbolV2::OutputUnit mDisplacementXUnit
QgsMapUnitScale mDisplacementXMapUnitScale
double mDisplacementY
QgsSymbolV2::OutputUnit mDisplacementYUnit
QgsMapUnitScale mDisplacementYMapUnitScale
- Protected Attributes inherited from QgsImageFillSymbolLayer
QBrush mBrush
double mNextAngle
double mOutlineWidth
 Outline width.
QgsSymbolV2::OutputUnit mOutlineWidthUnit
QgsMapUnitScale mOutlineWidthMapUnitScale
QgsLineSymbolV2mOutline
 Custom outline.
- Protected Attributes inherited from QgsFillSymbolLayerV2
double mAngle
- Protected Attributes inherited from QgsSymbolLayerV2
QgsSymbolV2::SymbolType mType
bool mLocked
QColor mColor
int mRenderingPass
QMap< QString, QgsExpression * > mDataDefinedProperties

Additional Inherited Members

- Static Protected Attributes inherited from QgsSymbolLayerV2
static const bool selectionIsOpaque = true
static const bool selectFillBorder = false
static const bool selectFillStyle = false

Constructor & Destructor Documentation

QgsPointPatternFillSymbolLayer::QgsPointPatternFillSymbolLayer ( )
QgsPointPatternFillSymbolLayer::~QgsPointPatternFillSymbolLayer ( )

Member Function Documentation

void QgsPointPatternFillSymbolLayer::applyDataDefinedSettings ( const QgsSymbolV2RenderContext context)
protectedvirtual

Reimplemented from QgsImageFillSymbolLayer.

QgsSymbolLayerV2 * QgsPointPatternFillSymbolLayer::clone ( ) const
virtual

Implements QgsSymbolLayerV2.

QgsSymbolLayerV2 * QgsPointPatternFillSymbolLayer::create ( const QgsStringMap properties = QgsStringMap())
static
QgsSymbolLayerV2 * QgsPointPatternFillSymbolLayer::createFromSld ( QDomElement &  element)
static
double QgsPointPatternFillSymbolLayer::displacementX ( ) const
inline
const QgsMapUnitScale& QgsPointPatternFillSymbolLayer::displacementXMapUnitScale ( ) const
inline
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::displacementXUnit ( ) const
inline
double QgsPointPatternFillSymbolLayer::displacementY ( ) const
inline
const QgsMapUnitScale& QgsPointPatternFillSymbolLayer::displacementYMapUnitScale ( ) const
inline
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::displacementYUnit ( ) const
inline
double QgsPointPatternFillSymbolLayer::distanceX ( ) const
inline
const QgsMapUnitScale& QgsPointPatternFillSymbolLayer::distanceXMapUnitScale ( ) const
inline
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::distanceXUnit ( ) const
inline
double QgsPointPatternFillSymbolLayer::distanceY ( ) const
inline
const QgsMapUnitScale& QgsPointPatternFillSymbolLayer::distanceYMapUnitScale ( ) const
inline
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::distanceYUnit ( ) const
inline
double QgsPointPatternFillSymbolLayer::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 QgsImageFillSymbolLayer.

QString QgsPointPatternFillSymbolLayer::layerType ( ) const
virtual

Implements QgsSymbolLayerV2.

QgsMapUnitScale QgsPointPatternFillSymbolLayer::mapUnitScale ( ) const
virtual

Reimplemented from QgsImageFillSymbolLayer.

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

Reimplemented from QgsImageFillSymbolLayer.

QgsStringMap QgsPointPatternFillSymbolLayer::properties ( ) const
virtual

Implements QgsSymbolLayerV2.

void QgsPointPatternFillSymbolLayer::setDisplacementX ( double  d)
inline
void QgsPointPatternFillSymbolLayer::setDisplacementXMapUnitScale ( const QgsMapUnitScale scale)
inline
void QgsPointPatternFillSymbolLayer::setDisplacementXUnit ( QgsSymbolV2::OutputUnit  unit)
inline
void QgsPointPatternFillSymbolLayer::setDisplacementY ( double  d)
inline
void QgsPointPatternFillSymbolLayer::setDisplacementYMapUnitScale ( const QgsMapUnitScale scale)
inline
void QgsPointPatternFillSymbolLayer::setDisplacementYUnit ( QgsSymbolV2::OutputUnit  unit)
inline
void QgsPointPatternFillSymbolLayer::setDistanceX ( double  d)
inline
void QgsPointPatternFillSymbolLayer::setDistanceXMapUnitScale ( const QgsMapUnitScale scale)
inline
void QgsPointPatternFillSymbolLayer::setDistanceXUnit ( QgsSymbolV2::OutputUnit  unit)
inline
void QgsPointPatternFillSymbolLayer::setDistanceY ( double  d)
inline
void QgsPointPatternFillSymbolLayer::setDistanceYMapUnitScale ( const QgsMapUnitScale scale)
inline
void QgsPointPatternFillSymbolLayer::setDistanceYUnit ( QgsSymbolV2::OutputUnit  unit)
inline
void QgsPointPatternFillSymbolLayer::setMapUnitScale ( const QgsMapUnitScale scale)
virtual

Reimplemented from QgsImageFillSymbolLayer.

void QgsPointPatternFillSymbolLayer::setOutputUnit ( QgsSymbolV2::OutputUnit  unit)
virtual

Reimplemented from QgsImageFillSymbolLayer.

bool QgsPointPatternFillSymbolLayer::setSubSymbol ( QgsSymbolV2 symbol)
virtual

Reimplemented from QgsImageFillSymbolLayer.

void QgsPointPatternFillSymbolLayer::startRender ( QgsSymbolV2RenderContext context)
virtual

Implements QgsSymbolLayerV2.

void QgsPointPatternFillSymbolLayer::stopRender ( QgsSymbolV2RenderContext context)
virtual

Implements QgsSymbolLayerV2.

virtual QgsSymbolV2* QgsPointPatternFillSymbolLayer::subSymbol ( )
inlinevirtual

Reimplemented from QgsImageFillSymbolLayer.

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

Reimplemented from QgsSymbolLayerV2.

QSet< QString > QgsPointPatternFillSymbolLayer::usedAttributes ( ) const
virtual

Reimplemented from QgsSymbolLayerV2.

Member Data Documentation

double QgsPointPatternFillSymbolLayer::mDisplacementX
protected
QgsMapUnitScale QgsPointPatternFillSymbolLayer::mDisplacementXMapUnitScale
protected
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::mDisplacementXUnit
protected
double QgsPointPatternFillSymbolLayer::mDisplacementY
protected
QgsMapUnitScale QgsPointPatternFillSymbolLayer::mDisplacementYMapUnitScale
protected
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::mDisplacementYUnit
protected
double QgsPointPatternFillSymbolLayer::mDistanceX
protected
QgsMapUnitScale QgsPointPatternFillSymbolLayer::mDistanceXMapUnitScale
protected
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::mDistanceXUnit
protected
double QgsPointPatternFillSymbolLayer::mDistanceY
protected
QgsMapUnitScale QgsPointPatternFillSymbolLayer::mDistanceYMapUnitScale
protected
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::mDistanceYUnit
protected
QgsMarkerSymbolV2* QgsPointPatternFillSymbolLayer::mMarkerSymbol
protected

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