QGIS API Documentation  2.9.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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
 
- 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 const QgsExpressiondataDefinedProperty (const QString &property) const
 
virtual QString dataDefinedPropertyString (const QString &property) const
 
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. More...
 
virtual QColor fillColor () const
 Get fill color. More...
 
bool hasDataDefinedProperties () const
 
bool isLocked () const
 
virtual QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
 
virtual QColor outlineColor () const
 Get outline color. More...
 
QgsPaintEffect * paintEffect () const
 Returns the current paint effect for the layer. More...
 
virtual void removeDataDefinedProperties ()
 
virtual void removeDataDefinedProperty (const QString &property)
 
int renderingPass () const
 
virtual void setDataDefinedProperty (const QString &property, const QString &expressionString)
 
virtual void setFillColor (const QColor &color)
 Set fill color. More...
 
void setLocked (bool locked)
 
virtual void setOutlineColor (const QColor &color)
 Set outline color. More...
 
void setPaintEffect (QgsPaintEffect *effect)
 Sets the current paint effect for the layer. More...
 
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, QgsExpression * > mDataDefinedProperties
 
bool mLocked
 
QgsPaintEffect * mPaintEffect
 
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. More...
 
- Protected Member Functions inherited from QgsSymbolLayerV2
 QgsSymbolLayerV2 (QgsSymbolV2::SymbolType type, bool locked=false)
 
void copyDataDefinedProperties (QgsSymbolLayerV2 *destLayer) const
 Copies data defined properties of this layer to another symbol layer. More...
 
void copyPaintEffect (QgsSymbolLayerV2 *destLayer) const
 Copies paint effect of this layer to another symbol layer. More...
 
virtual QgsExpressionexpression (const QString &property) const
 
virtual void prepareExpressions (const QgsFields *fields, double scale=-1.0)
 
void saveDataDefinedProperties (QgsStringMap &stringMap) const
 Saves data defined properties to string map. More...
 
- 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 1048 of file qgsfillsymbollayerv2.h.

Constructor & Destructor Documentation

QgsCentroidFillSymbolLayerV2::QgsCentroidFillSymbolLayerV2 ( )

Definition at line 3363 of file qgsfillsymbollayerv2.cpp.

QgsCentroidFillSymbolLayerV2::~QgsCentroidFillSymbolLayerV2 ( )

Definition at line 3368 of file qgsfillsymbollayerv2.cpp.

Member Function Documentation

QgsSymbolLayerV2 * QgsCentroidFillSymbolLayerV2::clone ( ) const
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3420 of file qgsfillsymbollayerv2.cpp.

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

Definition at line 3373 of file qgsfillsymbollayerv2.cpp.

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

Definition at line 3439 of file qgsfillsymbollayerv2.cpp.

QString QgsCentroidFillSymbolLayerV2::layerType ( ) const
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3383 of file qgsfillsymbollayerv2.cpp.

QgsMapUnitScale QgsCentroidFillSymbolLayerV2::mapUnitScale ( ) const
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3513 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3496 of file qgsfillsymbollayerv2.cpp.

bool QgsCentroidFillSymbolLayerV2::pointOnSurface ( ) const
inline

Definition at line 1089 of file qgsfillsymbollayerv2.h.

QgsStringMap QgsCentroidFillSymbolLayerV2::properties ( ) const
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3413 of file qgsfillsymbollayerv2.cpp.

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

Implements QgsFillSymbolLayerV2.

Definition at line 3405 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3388 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::setMapUnitScale ( const QgsMapUnitScale scale)
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3505 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3488 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::setPointOnSurface ( bool  pointOnSurface)
inline

Definition at line 1088 of file qgsfillsymbollayerv2.h.

bool QgsCentroidFillSymbolLayerV2::setSubSymbol ( QgsSymbolV2 symbol)
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3462 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::startRender ( QgsSymbolV2RenderContext context)
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3394 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::stopRender ( QgsSymbolV2RenderContext context)
overridevirtual

Implements QgsSymbolLayerV2.

Definition at line 3400 of file qgsfillsymbollayerv2.cpp.

QgsSymbolV2 * QgsCentroidFillSymbolLayerV2::subSymbol ( )
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3457 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3431 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3476 of file qgsfillsymbollayerv2.cpp.

Member Data Documentation

QgsMarkerSymbolV2* QgsCentroidFillSymbolLayerV2::mMarker
protected

Definition at line 1092 of file qgsfillsymbollayerv2.h.

bool QgsCentroidFillSymbolLayerV2::mPointOnSurface
protected

Definition at line 1093 of file qgsfillsymbollayerv2.h.


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