QGIS API Documentation  2.0.1-Dufour
 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 | Private Member Functions | List of all members
QgsPointPatternFillSymbolLayer Class Reference

#include <qgsfillsymbollayerv2.h>

Inheritance diagram for QgsPointPatternFillSymbolLayer:
Inheritance graph
[legend]
Collaboration diagram for QgsPointPatternFillSymbolLayer:
Collaboration 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 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 setDistanceYUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit distanceYUnit () const
void setDisplacementXUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit displacementXUnit () const
void setDisplacementYUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit displacementYUnit () const
void setOutputUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit outputUnit () 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
- 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 void setColor (const QColor &color)
virtual QColor color () const
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 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 ()

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
double mDistanceY
QgsSymbolV2::OutputUnit mDistanceYUnit
double mDisplacementX
QgsSymbolV2::OutputUnit mDisplacementXUnit
double mDisplacementY
QgsSymbolV2::OutputUnit mDisplacementYUnit
- Protected Attributes inherited from QgsImageFillSymbolLayer
QBrush mBrush
double mNextAngle
double mOutlineWidth
 Outline width.
QgsSymbolV2::OutputUnit mOutlineWidthUnit
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

Private Member Functions

void applyPattern (const QgsSymbolV2RenderContext &context, QBrush &brush, double distanceX, double distanceY, double displacementX, double displacementY)

Additional Inherited Members

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

Detailed Description

Definition at line 282 of file qgsfillsymbollayerv2.h.

Constructor & Destructor Documentation

QgsPointPatternFillSymbolLayer::QgsPointPatternFillSymbolLayer ( )

Definition at line 1300 of file qgsfillsymbollayerv2.cpp.

References mDisplacementX, mDisplacementY, mDistanceX, mDistanceY, and setSubSymbol().

Referenced by create().

QgsPointPatternFillSymbolLayer::~QgsPointPatternFillSymbolLayer ( )

Definition at line 1312 of file qgsfillsymbollayerv2.cpp.

Member Function Documentation

void QgsPointPatternFillSymbolLayer::applyDataDefinedSettings ( const QgsSymbolV2RenderContext context)
protectedvirtual
void QgsPointPatternFillSymbolLayer::applyPattern ( const QgsSymbolV2RenderContext context,
QBrush &  brush,
double  distanceX,
double  distanceY,
double  displacementX,
double  displacementY 
)
private
QgsSymbolLayerV2 * QgsPointPatternFillSymbolLayer::clone ( ) const
virtual
QgsSymbolLayerV2 * QgsPointPatternFillSymbolLayer::create ( const QgsStringMap properties = QgsStringMap())
static
QgsSymbolLayerV2 * QgsPointPatternFillSymbolLayer::createFromSld ( QDomElement &  element)
static
double QgsPointPatternFillSymbolLayer::displacementX ( ) const
inline

Definition at line 310 of file qgsfillsymbollayerv2.h.

Referenced by applyDataDefinedSettings().

QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::displacementXUnit ( ) const
inline

Definition at line 326 of file qgsfillsymbollayerv2.h.

double QgsPointPatternFillSymbolLayer::displacementY ( ) const
inline

Definition at line 313 of file qgsfillsymbollayerv2.h.

Referenced by applyDataDefinedSettings().

QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::displacementYUnit ( ) const
inline

Definition at line 329 of file qgsfillsymbollayerv2.h.

double QgsPointPatternFillSymbolLayer::distanceX ( ) const
inline

Definition at line 304 of file qgsfillsymbollayerv2.h.

Referenced by applyDataDefinedSettings().

QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::distanceXUnit ( ) const
inline

Definition at line 320 of file qgsfillsymbollayerv2.h.

double QgsPointPatternFillSymbolLayer::distanceY ( ) const
inline

Definition at line 307 of file qgsfillsymbollayerv2.h.

Referenced by applyDataDefinedSettings().

QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::distanceYUnit ( ) const
inline

Definition at line 323 of file qgsfillsymbollayerv2.h.

QString QgsPointPatternFillSymbolLayer::layerType ( ) const
virtual

Implements QgsSymbolLayerV2.

Definition at line 1391 of file qgsfillsymbollayerv2.cpp.

QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::outputUnit ( ) const
virtual
QgsStringMap QgsPointPatternFillSymbolLayer::properties ( ) const
virtual
void QgsPointPatternFillSymbolLayer::setDisplacementX ( double  d)
inline

Definition at line 311 of file qgsfillsymbollayerv2.h.

Referenced by create().

void QgsPointPatternFillSymbolLayer::setDisplacementXUnit ( QgsSymbolV2::OutputUnit  unit)
inline

Definition at line 325 of file qgsfillsymbollayerv2.h.

Referenced by create().

void QgsPointPatternFillSymbolLayer::setDisplacementY ( double  d)
inline

Definition at line 314 of file qgsfillsymbollayerv2.h.

Referenced by create().

void QgsPointPatternFillSymbolLayer::setDisplacementYUnit ( QgsSymbolV2::OutputUnit  unit)
inline

Definition at line 328 of file qgsfillsymbollayerv2.h.

Referenced by create().

void QgsPointPatternFillSymbolLayer::setDistanceX ( double  d)
inline

Definition at line 305 of file qgsfillsymbollayerv2.h.

Referenced by create().

void QgsPointPatternFillSymbolLayer::setDistanceXUnit ( QgsSymbolV2::OutputUnit  unit)
inline

Definition at line 319 of file qgsfillsymbollayerv2.h.

Referenced by create().

void QgsPointPatternFillSymbolLayer::setDistanceY ( double  d)
inline

Definition at line 308 of file qgsfillsymbollayerv2.h.

Referenced by create().

void QgsPointPatternFillSymbolLayer::setDistanceYUnit ( QgsSymbolV2::OutputUnit  unit)
inline

Definition at line 322 of file qgsfillsymbollayerv2.h.

Referenced by create().

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 1316 of file qgsfillsymbollayerv2.cpp.

References mDisplacementXUnit, mDisplacementYUnit, mDistanceXUnit, and mDistanceYUnit.

bool QgsPointPatternFillSymbolLayer::setSubSymbol ( QgsSymbolV2 symbol)
virtual

Reimplemented from QgsImageFillSymbolLayer.

Definition at line 1550 of file qgsfillsymbollayerv2.cpp.

References QgsSymbolV2::Marker, mMarkerSymbol, and QgsSymbolV2::type().

Referenced by clone(), and QgsPointPatternFillSymbolLayer().

void QgsPointPatternFillSymbolLayer::startRender ( QgsSymbolV2RenderContext context)
virtual
void QgsPointPatternFillSymbolLayer::stopRender ( QgsSymbolV2RenderContext context)
virtual
virtual QgsSymbolV2* QgsPointPatternFillSymbolLayer::subSymbol ( )
inlinevirtual

Reimplemented from QgsImageFillSymbolLayer.

Definition at line 317 of file qgsfillsymbollayerv2.h.

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

Member Data Documentation

double QgsPointPatternFillSymbolLayer::mDisplacementX
protected
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::mDisplacementXUnit
protected

Definition at line 341 of file qgsfillsymbollayerv2.h.

Referenced by applyPattern(), outputUnit(), properties(), and setOutputUnit().

double QgsPointPatternFillSymbolLayer::mDisplacementY
protected
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::mDisplacementYUnit
protected

Definition at line 343 of file qgsfillsymbollayerv2.h.

Referenced by applyPattern(), outputUnit(), properties(), and setOutputUnit().

double QgsPointPatternFillSymbolLayer::mDistanceX
protected
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::mDistanceXUnit
protected

Definition at line 337 of file qgsfillsymbollayerv2.h.

Referenced by applyPattern(), outputUnit(), properties(), and setOutputUnit().

double QgsPointPatternFillSymbolLayer::mDistanceY
protected
QgsSymbolV2::OutputUnit QgsPointPatternFillSymbolLayer::mDistanceYUnit
protected

Definition at line 339 of file qgsfillsymbollayerv2.h.

Referenced by applyPattern(), outputUnit(), properties(), and setOutputUnit().

QgsMarkerSymbolV2* QgsPointPatternFillSymbolLayer::mMarkerSymbol
protected

Definition at line 335 of file qgsfillsymbollayerv2.h.

Referenced by applyPattern(), clone(), setSubSymbol(), and toSld().


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