QGIS API Documentation  2.9.0-Master
 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
QgsCentroidFillSymbolLayerV2 Class Reference

#include <qgsfillsymbollayerv2.h>

Inheritance diagram for QgsCentroidFillSymbolLayerV2:
Inheritance graph
[legend]

Public Member Functions

 QgsCentroidFillSymbolLayerV2 ()
 ~QgsCentroidFillSymbolLayerV2 ()
QgsSymbolLayerV2clone () const override
QString layerType () const override
QgsMapUnitScale mapUnitScale () const override
QgsSymbolV2::OutputUnit outputUnit () const override
bool pointOnSurface () const
QgsStringMap properties () const override
void renderPolygon (const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context) override
void setColor (const QColor &color) override
void setMapUnitScale (const QgsMapUnitScale &scale) override
void setOutputUnit (QgsSymbolV2::OutputUnit unit) override
void setPointOnSurface (bool pointOnSurface)
bool setSubSymbol (QgsSymbolV2 *symbol) override
void startRender (QgsSymbolV2RenderContext &context) override
void stopRender (QgsSymbolV2RenderContext &context) override
QgsSymbolV2subSymbol () override
void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const override
virtual QSet< QString > usedAttributes () const override
 Returns the set of attributes referenced by the layer.
- Public Member Functions inherited from QgsFillSymbolLayerV2
double angle () const
void drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size) override
void setAngle (double angle)
- Public Member Functions inherited from QgsSymbolLayerV2
virtual ~QgsSymbolLayerV2 ()
virtual QColor color () const
virtual Q_DECL_DEPRECATED
const QgsExpression
dataDefinedProperty (const QString &property) const
 Returns a data defined expression for a property, if set.
virtual Q_DECL_DEPRECATED QString dataDefinedPropertyString (const QString &property) const
 Returns a data defined expression for a property, if set.
virtual QColor dxfBrushColor (const QgsSymbolV2RenderContext &context) const
virtual Qt::BrushStyle dxfBrushStyle () const
virtual QColor dxfColor (const QgsSymbolV2RenderContext &context) const
virtual QVector< qreal > dxfCustomDashPattern (QgsSymbolV2::OutputUnit &unit) const
virtual double dxfOffset (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const
virtual Qt::PenStyle dxfPenStyle () const
virtual double dxfWidth (const QgsDxfExport &e, const QgsSymbolV2RenderContext &context) const
virtual double estimateMaxBleed () const
 Returns the estimated maximum distance which the layer style will bleed outside the drawn shape.
virtual QVariant evaluateDataDefinedProperty (const QString &property, const QgsFeature *feature, const QVariant &defaultVal=QVariant(), bool *ok=0) const
 Evaluates the matching data defined property and returns the calculated value.
virtual QColor fillColor () const
 Get fill color.
virtual QgsDataDefinedgetDataDefinedProperty (const QString &property) const
 Returns the data defined property corresponding to the specified property key.
virtual bool hasDataDefinedProperties () const
 Checks whether the layer has any associated data defined properties.
virtual bool hasDataDefinedProperty (const QString &property) const
 Checks whether the layer has a matching data defined property and if that property is currently actived.
bool isLocked () const
virtual QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
virtual QColor outlineColor () const
 Get outline color.
QgsPaintEffectpaintEffect () const
 Returns the current paint effect for the layer.
virtual void removeDataDefinedProperties ()
 Removes all data defined properties from the layer and deletes associated objects.
virtual void removeDataDefinedProperty (const QString &property)
 Removes a data defined property from the layer.
int renderingPass () const
virtual Q_DECL_DEPRECATED void setDataDefinedProperty (const QString &property, const QString &expressionString)
 Sets a data defined expression for a property.
virtual void setDataDefinedProperty (const QString &property, QgsDataDefined *dataDefined)
 Sets a data defined property for the layer.
virtual void setFillColor (const QColor &color)
 Set fill color.
void setLocked (bool locked)
virtual void setOutlineColor (const QColor &color)
 Set outline color.
void setPaintEffect (QgsPaintEffect *effect)
 Sets the current paint effect for the layer.
void setRenderingPass (int renderingPass)
QgsSymbolV2::SymbolType type () 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

Static Public Member Functions

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

Protected Attributes

QgsMarkerSymbolV2mMarker
bool mPointOnSurface
- Protected Attributes inherited from QgsFillSymbolLayerV2
double mAngle
- Protected Attributes inherited from QgsSymbolLayerV2
QColor mColor
QMap< QString, QgsDataDefined * > mDataDefinedProperties
QgsFields mFields
bool mLocked
QgsPaintEffectmPaintEffect
int mRenderingPass
QgsSymbolV2::SymbolType mType

Additional Inherited Members

- Protected Member Functions inherited from QgsFillSymbolLayerV2
 QgsFillSymbolLayerV2 (bool locked=false)
void _renderPolygon (QPainter *p, const QPolygonF &points, const QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context)
 Default method to render polygon.
- Static Protected Attributes inherited from QgsSymbolLayerV2
static const bool selectFillBorder = false
static const bool selectFillStyle = false
static const bool selectionIsOpaque = true

Detailed Description

Definition at line 1050 of file qgsfillsymbollayerv2.h.

Constructor & Destructor Documentation

QgsCentroidFillSymbolLayerV2::QgsCentroidFillSymbolLayerV2 ( )

Definition at line 3302 of file qgsfillsymbollayerv2.cpp.

QgsCentroidFillSymbolLayerV2::~QgsCentroidFillSymbolLayerV2 ( )

Definition at line 3307 of file qgsfillsymbollayerv2.cpp.

Member Function Documentation

QgsSymbolLayerV2 * QgsCentroidFillSymbolLayerV2::clone ( ) const
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3359 of file qgsfillsymbollayerv2.cpp.

QgsSymbolLayerV2 * QgsCentroidFillSymbolLayerV2::create ( const QgsStringMap properties = QgsStringMap())
static

Definition at line 3312 of file qgsfillsymbollayerv2.cpp.

QgsSymbolLayerV2 * QgsCentroidFillSymbolLayerV2::createFromSld ( QDomElement &  element)
static

Definition at line 3378 of file qgsfillsymbollayerv2.cpp.

QString QgsCentroidFillSymbolLayerV2::layerType ( ) const
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3322 of file qgsfillsymbollayerv2.cpp.

QgsMapUnitScale QgsCentroidFillSymbolLayerV2::mapUnitScale ( ) const
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3452 of file qgsfillsymbollayerv2.cpp.

QgsSymbolV2::OutputUnit QgsCentroidFillSymbolLayerV2::outputUnit ( ) const
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3435 of file qgsfillsymbollayerv2.cpp.

bool QgsCentroidFillSymbolLayerV2::pointOnSurface ( ) const
inline

Definition at line 1091 of file qgsfillsymbollayerv2.h.

QgsStringMap QgsCentroidFillSymbolLayerV2::properties ( ) const
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3352 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::renderPolygon ( const QPolygonF &  points,
QList< QPolygonF > *  rings,
QgsSymbolV2RenderContext context 
)
overridevirtual

Implements QgsFillSymbolLayerV2.

Definition at line 3344 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::setColor ( const QColor &  color)
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3327 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::setMapUnitScale ( const QgsMapUnitScale scale)
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3444 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::setOutputUnit ( QgsSymbolV2::OutputUnit  unit)
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3427 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::setPointOnSurface ( bool  pointOnSurface)
inline

Definition at line 1090 of file qgsfillsymbollayerv2.h.

bool QgsCentroidFillSymbolLayerV2::setSubSymbol ( QgsSymbolV2 symbol)
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3401 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::startRender ( QgsSymbolV2RenderContext context)
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3333 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::stopRender ( QgsSymbolV2RenderContext context)
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3339 of file qgsfillsymbollayerv2.cpp.

QgsSymbolV2 * QgsCentroidFillSymbolLayerV2::subSymbol ( )
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3396 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::toSld ( QDomDocument &  doc,
QDomElement &  element,
QgsStringMap  props 
) const
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3370 of file qgsfillsymbollayerv2.cpp.

QSet< QString > QgsCentroidFillSymbolLayerV2::usedAttributes ( ) const
overridevirtual

Returns the set of attributes referenced by the layer.

This includes attributes required by any data defined properties associated with the layer.

Reimplemented from QgsSymbolLayerV2.

Definition at line 3415 of file qgsfillsymbollayerv2.cpp.

Member Data Documentation

QgsMarkerSymbolV2* QgsCentroidFillSymbolLayerV2::mMarker
protected

Definition at line 1094 of file qgsfillsymbollayerv2.h.

bool QgsCentroidFillSymbolLayerV2::mPointOnSurface
protected

Definition at line 1095 of file qgsfillsymbollayerv2.h.


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