QGIS API Documentation  2.7.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
 
QString layerType () const
 
QgsMapUnitScale mapUnitScale () const
 
QgsSymbolV2::OutputUnit outputUnit () const
 
bool pointOnSurface () const
 
QgsStringMap properties () const
 
void renderPolygon (const QPolygonF &points, QList< QPolygonF > *rings, QgsSymbolV2RenderContext &context)
 
void setColor (const QColor &color)
 
void setMapUnitScale (const QgsMapUnitScale &scale)
 
void setOutputUnit (QgsSymbolV2::OutputUnit unit)
 
void setPointOnSurface (bool pointOnSurface)
 
bool setSubSymbol (QgsSymbolV2 *symbol)
 
void startRender (QgsSymbolV2RenderContext &context)
 
void stopRender (QgsSymbolV2RenderContext &context)
 
QgsSymbolV2subSymbol ()
 
void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
 
virtual QSet< QString > usedAttributes () const
 
- Public Member Functions inherited from QgsFillSymbolLayerV2
double angle () const
 
void drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size)
 
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 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...
 
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 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
 
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...
 
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 1053 of file qgsfillsymbollayerv2.h.

Constructor & Destructor Documentation

QgsCentroidFillSymbolLayerV2::QgsCentroidFillSymbolLayerV2 ( )

Definition at line 3289 of file qgsfillsymbollayerv2.cpp.

QgsCentroidFillSymbolLayerV2::~QgsCentroidFillSymbolLayerV2 ( )

Definition at line 3294 of file qgsfillsymbollayerv2.cpp.

Member Function Documentation

QgsSymbolLayerV2 * QgsCentroidFillSymbolLayerV2::clone ( ) const
virtual

Implements QgsSymbolLayerV2.

Definition at line 3346 of file qgsfillsymbollayerv2.cpp.

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

Definition at line 3299 of file qgsfillsymbollayerv2.cpp.

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

Definition at line 3364 of file qgsfillsymbollayerv2.cpp.

QString QgsCentroidFillSymbolLayerV2::layerType ( ) const
virtual

Implements QgsSymbolLayerV2.

Definition at line 3309 of file qgsfillsymbollayerv2.cpp.

QgsMapUnitScale QgsCentroidFillSymbolLayerV2::mapUnitScale ( ) const
virtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3438 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3421 of file qgsfillsymbollayerv2.cpp.

bool QgsCentroidFillSymbolLayerV2::pointOnSurface ( ) const
inline

Definition at line 1094 of file qgsfillsymbollayerv2.h.

QgsStringMap QgsCentroidFillSymbolLayerV2::properties ( ) const
virtual

Implements QgsSymbolLayerV2.

Definition at line 3339 of file qgsfillsymbollayerv2.cpp.

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

Implements QgsFillSymbolLayerV2.

Definition at line 3331 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3314 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::setMapUnitScale ( const QgsMapUnitScale scale)
virtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3430 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3413 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::setPointOnSurface ( bool  pointOnSurface)
inline

Definition at line 1093 of file qgsfillsymbollayerv2.h.

bool QgsCentroidFillSymbolLayerV2::setSubSymbol ( QgsSymbolV2 symbol)
virtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3387 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::startRender ( QgsSymbolV2RenderContext context)
virtual

Implements QgsSymbolLayerV2.

Definition at line 3320 of file qgsfillsymbollayerv2.cpp.

void QgsCentroidFillSymbolLayerV2::stopRender ( QgsSymbolV2RenderContext context)
virtual

Implements QgsSymbolLayerV2.

Definition at line 3326 of file qgsfillsymbollayerv2.cpp.

QgsSymbolV2 * QgsCentroidFillSymbolLayerV2::subSymbol ( )
virtual

Reimplemented from QgsSymbolLayerV2.

Definition at line 3382 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3356 of file qgsfillsymbollayerv2.cpp.

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

Reimplemented from QgsSymbolLayerV2.

Definition at line 3401 of file qgsfillsymbollayerv2.cpp.

Member Data Documentation

QgsMarkerSymbolV2* QgsCentroidFillSymbolLayerV2::mMarker
protected

Definition at line 1097 of file qgsfillsymbollayerv2.h.

bool QgsCentroidFillSymbolLayerV2::mPointOnSurface
protected

Definition at line 1098 of file qgsfillsymbollayerv2.h.


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