QGIS API Documentation  master-3f58142
QgsEllipseSymbolLayerV2 Class Reference

A symbol layer for rendering objects with major and minor axis (e.g. More...

#include <qgsellipsesymbollayerv2.h>

+ Inheritance diagram for QgsEllipseSymbolLayerV2:
+ Collaboration diagram for QgsEllipseSymbolLayerV2:

List of all members.

Public Member Functions

 QgsEllipseSymbolLayerV2 ()
 ~QgsEllipseSymbolLayerV2 ()
QgsSymbolLayerV2clone () const
QColor fillColor () const
QString layerType () const
QColor outlineColor () const
double outlineWidth () const
QgsSymbolV2::OutputUnit outlineWidthUnit () const
QgsSymbolV2::OutputUnit outputUnit () const
QgsStringMap properties () const
void renderPoint (const QPointF &point, QgsSymbolV2RenderContext &context)
void setFillColor (const QColor &c)
void setOutlineColor (const QColor &c)
void setOutlineWidth (double w)
void setOutlineWidthUnit (QgsSymbolV2::OutputUnit unit)
void setOutputUnit (QgsSymbolV2::OutputUnit unit)
void setSymbolHeight (double h)
void setSymbolHeightUnit (QgsSymbolV2::OutputUnit unit)
void setSymbolName (const QString &name)
void setSymbolWidth (double w)
void setSymbolWidthUnit (QgsSymbolV2::OutputUnit unit)
void startRender (QgsSymbolV2RenderContext &context)
void stopRender (QgsSymbolV2RenderContext &context)
double symbolHeight () const
QgsSymbolV2::OutputUnit symbolHeightUnit () const
QString symbolName () const
double symbolWidth () const
QgsSymbolV2::OutputUnit symbolWidthUnit () const
void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
void writeSldMarker (QDomDocument &doc, QDomElement &element, QgsStringMap props) const

Static Public Member Functions

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

Private Member Functions

bool hasDataDefinedProperty () const
 True if this symbol layer uses a data defined property.
void preparePath (const QString &symbolName, QgsSymbolV2RenderContext &context, const QgsFeature *f=0)
 Setup mPainterPath.

Private Attributes

QBrush mBrush
QColor mFillColor
QColor mOutlineColor
double mOutlineWidth
QgsSymbolV2::OutputUnit mOutlineWidthUnit
QPainterPath mPainterPath
QPen mPen
double mSymbolHeight
QgsSymbolV2::OutputUnit mSymbolHeightUnit
QString mSymbolName
double mSymbolWidth
QgsSymbolV2::OutputUnit mSymbolWidthUnit

Detailed Description

A symbol layer for rendering objects with major and minor axis (e.g.

ellipse, rectangle )

Definition at line 24 of file qgsellipsesymbollayerv2.h.


Constructor & Destructor Documentation


Member Function Documentation

Implements QgsSymbolLayerV2.

Definition at line 257 of file qgsellipsesymbollayerv2.cpp.

References create(), and properties().

True if this symbol layer uses a data defined property.

Definition at line 392 of file qgsellipsesymbollayerv2.cpp.

References QgsSymbolLayerV2::dataDefinedProperty().

Referenced by startRender().

QString QgsEllipseSymbolLayerV2::layerType ( ) const [virtual]

Implements QgsSymbolLayerV2.

Definition at line 236 of file qgsellipsesymbollayerv2.cpp.

QColor QgsEllipseSymbolLayerV2::outlineColor ( ) const [inline]
double QgsEllipseSymbolLayerV2::outlineWidth ( ) const [inline]
void QgsEllipseSymbolLayerV2::preparePath ( const QString &  symbolName,
QgsSymbolV2RenderContext context,
const QgsFeature f = 0 
) [private]

Implements QgsSymbolLayerV2.

Definition at line 253 of file qgsellipsesymbollayerv2.cpp.

double QgsEllipseSymbolLayerV2::symbolHeight ( ) const [inline]
double QgsEllipseSymbolLayerV2::symbolWidth ( ) const [inline]
void QgsEllipseSymbolLayerV2::toSld ( QDomDocument &  doc,
QDomElement &  element,
QgsStringMap  props 
) const [virtual]

Member Data Documentation

Definition at line 87 of file qgsellipsesymbollayerv2.h.

Referenced by QgsEllipseSymbolLayerV2(), renderPoint(), and startRender().

Definition at line 81 of file qgsellipsesymbollayerv2.h.

Referenced by properties(), startRender(), and writeSldMarker().

QPainterPath QgsEllipseSymbolLayerV2::mPainterPath [private]

Definition at line 84 of file qgsellipsesymbollayerv2.h.

Referenced by preparePath(), and renderPoint().

Definition at line 77 of file qgsellipsesymbollayerv2.h.

Referenced by preparePath(), properties(), and writeSldMarker().

Definition at line 75 of file qgsellipsesymbollayerv2.h.

Referenced by preparePath(), properties(), and writeSldMarker().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines