QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
QgsMarkerSymbolLayerV2 Class Reference

#include <qgssymbollayerv2.h>

Inheritance diagram for QgsMarkerSymbolLayerV2:
Inheritance graph
[legend]

Public Types

enum  HorizontalAnchorPoint { Left, HCenter, Right }
enum  VerticalAnchorPoint { Top, VCenter, Bottom }

Public Member Functions

double angle () const
void drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size) override
HorizontalAnchorPoint horizontalAnchorPoint () const
QgsMapUnitScale mapUnitScale () const override
QPointF offset ()
const QgsMapUnitScaleoffsetMapUnitScale () const
QgsSymbolV2::OutputUnit offsetUnit () const
QgsSymbolV2::OutputUnit outputUnit () const override
virtual void renderPoint (const QPointF &point, QgsSymbolV2RenderContext &context)=0
QgsSymbolV2::ScaleMethod scaleMethod () const
void setAngle (double angle)
void setHorizontalAnchorPoint (HorizontalAnchorPoint h)
void setMapUnitScale (const QgsMapUnitScale &scale) override
void setOffset (QPointF offset)
void setOffsetMapUnitScale (const QgsMapUnitScale &scale)
void setOffsetUnit (QgsSymbolV2::OutputUnit unit)
void setOutputUnit (QgsSymbolV2::OutputUnit unit) override
void setScaleMethod (QgsSymbolV2::ScaleMethod scaleMethod)
void setSize (double size)
void setSizeMapUnitScale (const QgsMapUnitScale &scale)
void setSizeUnit (QgsSymbolV2::OutputUnit unit)
void setVerticalAnchorPoint (VerticalAnchorPoint v)
double size () const
const QgsMapUnitScalesizeMapUnitScale () const
QgsSymbolV2::OutputUnit sizeUnit () const
void startRender (QgsSymbolV2RenderContext &context) override
virtual void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const override
VerticalAnchorPoint verticalAnchorPoint () const
virtual void writeSldMarker (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
- Public Member Functions inherited from QgsSymbolLayerV2
virtual ~QgsSymbolLayerV2 ()
virtual QgsSymbolLayerV2clone () const =0
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.
virtual QColor fillColor () const
 Get fill color.
bool hasDataDefinedProperties () const
bool isLocked () const
virtual QString layerType () const =0
virtual QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
virtual QColor outlineColor () const
 Get outline color.
virtual QgsStringMap properties () const =0
virtual void removeDataDefinedProperties ()
virtual void removeDataDefinedProperty (const QString &property)
int renderingPass () const
virtual void setColor (const QColor &color)
virtual void setDataDefinedProperty (const QString &property, const QString &expressionString)
virtual void setFillColor (const QColor &color)
 Set fill color.
void setLocked (bool locked)
virtual void setOutlineColor (const QColor &color)
 Set outline color.
void setRenderingPass (int renderingPass)
virtual bool setSubSymbol (QgsSymbolV2 *symbol)
virtual void stopRender (QgsSymbolV2RenderContext &context)=0
virtual QgsSymbolV2subSymbol ()
QgsSymbolV2::SymbolType type () const
virtual QSet< QString > usedAttributes () 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

Protected Member Functions

 QgsMarkerSymbolLayerV2 (bool locked=false)
void markerOffset (const QgsSymbolV2RenderContext &context, double &offsetX, double &offsetY) const
void markerOffset (const QgsSymbolV2RenderContext &context, double width, double height, double &offsetX, double &offsetY) const
void markerOffset (const QgsSymbolV2RenderContext &context, double width, double height, QgsSymbolV2::OutputUnit widthUnit, QgsSymbolV2::OutputUnit heightUnit, double &offsetX, double &offsetY, const QgsMapUnitScale &widthMapUnitScale, const QgsMapUnitScale &heightMapUnitScale) const
- 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.
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.

Static Protected Member Functions

static QPointF _rotatedOffset (const QPointF &offset, double angle)

Protected Attributes

double mAngle
HorizontalAnchorPoint mHorizontalAnchorPoint
QPointF mOffset
QgsMapUnitScale mOffsetMapUnitScale
QgsSymbolV2::OutputUnit mOffsetUnit
QgsSymbolV2::ScaleMethod mScaleMethod
double mSize
QgsMapUnitScale mSizeMapUnitScale
QgsSymbolV2::OutputUnit mSizeUnit
VerticalAnchorPoint mVerticalAnchorPoint
- Protected Attributes inherited from QgsSymbolLayerV2
QColor mColor
QMap< QString, QgsExpression * > mDataDefinedProperties
bool mLocked
int mRenderingPass
QgsSymbolV2::SymbolType mType

Additional Inherited Members

- 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 161 of file qgssymbollayerv2.h.

Member Enumeration Documentation

Enumerator:
Left 
HCenter 
Right 

Definition at line 165 of file qgssymbollayerv2.h.

Enumerator:
Top 
VCenter 
Bottom 

Definition at line 172 of file qgssymbollayerv2.h.

Constructor & Destructor Documentation

QgsMarkerSymbolLayerV2::QgsMarkerSymbolLayerV2 ( bool  locked = false)
protected

Definition at line 213 of file qgssymbollayerv2.cpp.

Member Function Documentation

QPointF QgsMarkerSymbolLayerV2::_rotatedOffset ( const QPointF &  offset,
double  angle 
)
staticprotected

Definition at line 324 of file qgssymbollayerv2.cpp.

double QgsMarkerSymbolLayerV2::angle ( void  ) const
inline

Definition at line 186 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::drawPreviewIcon ( QgsSymbolV2RenderContext context,
QSize  size 
)
overridevirtual

Implements QgsSymbolLayerV2.

Reimplemented in QgsVectorFieldSymbolLayer.

Definition at line 251 of file qgssymbollayerv2.cpp.

HorizontalAnchorPoint QgsMarkerSymbolLayerV2::horizontalAnchorPoint ( ) const
inline

Definition at line 221 of file qgssymbollayerv2.h.

QgsMapUnitScale QgsMarkerSymbolLayerV2::mapUnitScale ( ) const
overridevirtual
void QgsMarkerSymbolLayerV2::markerOffset ( const QgsSymbolV2RenderContext context,
double &  offsetX,
double &  offsetY 
) const
protected

Definition at line 258 of file qgssymbollayerv2.cpp.

void QgsMarkerSymbolLayerV2::markerOffset ( const QgsSymbolV2RenderContext context,
double  width,
double  height,
double &  offsetX,
double &  offsetY 
) const
protected

Definition at line 263 of file qgssymbollayerv2.cpp.

void QgsMarkerSymbolLayerV2::markerOffset ( const QgsSymbolV2RenderContext context,
double  width,
double  height,
QgsSymbolV2::OutputUnit  widthUnit,
QgsSymbolV2::OutputUnit  heightUnit,
double &  offsetX,
double &  offsetY,
const QgsMapUnitScale widthMapUnitScale,
const QgsMapUnitScale heightMapUnitScale 
) const
protected
Note
available in python bindings as markerOffset2

Definition at line 268 of file qgssymbollayerv2.cpp.

QPointF QgsMarkerSymbolLayerV2::offset ( )
inline

Definition at line 195 of file qgssymbollayerv2.h.

const QgsMapUnitScale& QgsMarkerSymbolLayerV2::offsetMapUnitScale ( ) const
inline

Definition at line 206 of file qgssymbollayerv2.h.

QgsSymbolV2::OutputUnit QgsMarkerSymbolLayerV2::offsetUnit ( ) const
inline

Definition at line 203 of file qgssymbollayerv2.h.

QgsSymbolV2::OutputUnit QgsMarkerSymbolLayerV2::outputUnit ( ) const
overridevirtual
virtual void QgsMarkerSymbolLayerV2::renderPoint ( const QPointF &  point,
QgsSymbolV2RenderContext context 
)
pure virtual
QgsSymbolV2::ScaleMethod QgsMarkerSymbolLayerV2::scaleMethod ( ) const
inline

Definition at line 192 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setAngle ( double  angle)
inline

Definition at line 185 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setHorizontalAnchorPoint ( HorizontalAnchorPoint  h)
inline

Definition at line 220 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setMapUnitScale ( const QgsMapUnitScale scale)
overridevirtual
void QgsMarkerSymbolLayerV2::setOffset ( QPointF  offset)
inline

Definition at line 194 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setOffsetMapUnitScale ( const QgsMapUnitScale scale)
inline

Definition at line 205 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setOffsetUnit ( QgsSymbolV2::OutputUnit  unit)
inline

Definition at line 202 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setOutputUnit ( QgsSymbolV2::OutputUnit  unit)
overridevirtual
void QgsMarkerSymbolLayerV2::setScaleMethod ( QgsSymbolV2::ScaleMethod  scaleMethod)
inline

Definition at line 191 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setSize ( double  size)
inline

Definition at line 188 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setSizeMapUnitScale ( const QgsMapUnitScale scale)
inline

Definition at line 211 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setSizeUnit ( QgsSymbolV2::OutputUnit  unit)
inline

Definition at line 208 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::setVerticalAnchorPoint ( VerticalAnchorPoint  v)
inline

Definition at line 223 of file qgssymbollayerv2.h.

double QgsMarkerSymbolLayerV2::size ( void  ) const
inline

Definition at line 189 of file qgssymbollayerv2.h.

const QgsMapUnitScale& QgsMarkerSymbolLayerV2::sizeMapUnitScale ( ) const
inline

Definition at line 212 of file qgssymbollayerv2.h.

QgsSymbolV2::OutputUnit QgsMarkerSymbolLayerV2::sizeUnit ( ) const
inline

Definition at line 209 of file qgssymbollayerv2.h.

void QgsMarkerSymbolLayerV2::startRender ( QgsSymbolV2RenderContext context)
overridevirtual
void QgsMarkerSymbolLayerV2::toSld ( QDomDocument &  doc,
QDomElement &  element,
QgsStringMap  props 
) const
overridevirtual

Reimplemented from QgsSymbolLayerV2.

Reimplemented in QgsVectorFieldSymbolLayer, and QgsEllipseSymbolLayerV2.

Definition at line 493 of file qgssymbollayerv2.cpp.

VerticalAnchorPoint QgsMarkerSymbolLayerV2::verticalAnchorPoint ( ) const
inline

Definition at line 224 of file qgssymbollayerv2.h.

virtual void QgsMarkerSymbolLayerV2::writeSldMarker ( QDomDocument &  doc,
QDomElement &  element,
QgsStringMap  props 
) const
inlinevirtual

Member Data Documentation

double QgsMarkerSymbolLayerV2::mAngle
protected

Definition at line 242 of file qgssymbollayerv2.h.

HorizontalAnchorPoint QgsMarkerSymbolLayerV2::mHorizontalAnchorPoint
protected

Definition at line 250 of file qgssymbollayerv2.h.

QPointF QgsMarkerSymbolLayerV2::mOffset
protected

Definition at line 246 of file qgssymbollayerv2.h.

QgsMapUnitScale QgsMarkerSymbolLayerV2::mOffsetMapUnitScale
protected

Definition at line 248 of file qgssymbollayerv2.h.

QgsSymbolV2::OutputUnit QgsMarkerSymbolLayerV2::mOffsetUnit
protected

Definition at line 247 of file qgssymbollayerv2.h.

QgsSymbolV2::ScaleMethod QgsMarkerSymbolLayerV2::mScaleMethod
protected

Definition at line 249 of file qgssymbollayerv2.h.

double QgsMarkerSymbolLayerV2::mSize
protected

Definition at line 243 of file qgssymbollayerv2.h.

QgsMapUnitScale QgsMarkerSymbolLayerV2::mSizeMapUnitScale
protected

Definition at line 245 of file qgssymbollayerv2.h.

QgsSymbolV2::OutputUnit QgsMarkerSymbolLayerV2::mSizeUnit
protected

Definition at line 244 of file qgssymbollayerv2.h.

VerticalAnchorPoint QgsMarkerSymbolLayerV2::mVerticalAnchorPoint
protected

Definition at line 251 of file qgssymbollayerv2.h.


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