QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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]
Collaboration diagram for QgsMarkerSymbolLayerV2:
Collaboration graph
[legend]

Public Member Functions

virtual void renderPoint (const QPointF &point, QgsSymbolV2RenderContext &context)=0
void drawPreviewIcon (QgsSymbolV2RenderContext &context, QSize size)
void setAngle (double angle)
double angle () const
void setSize (double size)
double size () const
void setScaleMethod (QgsSymbolV2::ScaleMethod scaleMethod)
QgsSymbolV2::ScaleMethod scaleMethod () const
void setOffset (QPointF offset)
QPointF offset ()
virtual void toSld (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
virtual void writeSldMarker (QDomDocument &doc, QDomElement &element, QgsStringMap props) const
void setOffsetUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit offsetUnit () const
void setSizeUnit (QgsSymbolV2::OutputUnit unit)
QgsSymbolV2::OutputUnit sizeUnit () const
virtual void setOutputUnit (QgsSymbolV2::OutputUnit unit)
virtual QgsSymbolV2::OutputUnit outputUnit () const
- Public Member Functions inherited from QgsSymbolLayerV2
virtual void setColor (const QColor &color)
virtual QColor color () const
virtual ~QgsSymbolLayerV2 ()
virtual QString layerType () const =0
virtual void startRender (QgsSymbolV2RenderContext &context)=0
virtual void stopRender (QgsSymbolV2RenderContext &context)=0
virtual QgsSymbolLayerV2clone () const =0
virtual QString ogrFeatureStyle (double mmScaleFactor, double mapUnitScaleFactor) const
virtual QgsStringMap properties () const =0
virtual QgsSymbolV2subSymbol ()
virtual bool setSubSymbol (QgsSymbolV2 *symbol)
QgsSymbolV2::SymbolType type () const
void setLocked (bool locked)
bool isLocked () const
void setRenderingPass (int renderingPass)
int renderingPass () const
virtual QSet< QString > usedAttributes () const
virtual const QgsExpressiondataDefinedProperty (const QString &property) const
virtual QString dataDefinedPropertyString (const QString &property) const
virtual void setDataDefinedProperty (const QString &property, const QString &expressionString)
virtual void removeDataDefinedProperty (const QString &property)
virtual void removeDataDefinedProperties ()

Protected Member Functions

 QgsMarkerSymbolLayerV2 (bool locked=false)
void markerOffset (QgsSymbolV2RenderContext &context, double &offsetX, double &offsetY)
- Protected Member Functions inherited from QgsSymbolLayerV2
 QgsSymbolLayerV2 (QgsSymbolV2::SymbolType type, bool locked=false)
virtual void prepareExpressions (const QgsVectorLayer *vl)
virtual QgsExpressionexpression (const QString &property)
void saveDataDefinedProperties (QgsStringMap &stringMap) const
 Saves data defined properties to string map.
void copyDataDefinedProperties (QgsSymbolLayerV2 *destLayer) const
 Copies data defined properties of this layer to another symbol layer.

Static Protected Member Functions

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

Protected Attributes

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

Additional Inherited Members

- Static Protected Attributes inherited from QgsSymbolLayerV2
static const bool selectionIsOpaque = true
static const bool selectFillBorder = false
static const bool selectFillStyle = false

Detailed Description

Definition at line 121 of file qgssymbollayerv2.h.

Constructor & Destructor Documentation

QgsMarkerSymbolLayerV2::QgsMarkerSymbolLayerV2 ( bool  locked = false)
protected

Definition at line 150 of file qgssymbollayerv2.cpp.

Member Function Documentation

QPointF QgsMarkerSymbolLayerV2::_rotatedOffset ( const QPointF &  offset,
double  angle 
)
staticprotected
double QgsMarkerSymbolLayerV2::angle ( void  ) const
inline
void QgsMarkerSymbolLayerV2::drawPreviewIcon ( QgsSymbolV2RenderContext context,
QSize  size 
)
virtual
void QgsMarkerSymbolLayerV2::markerOffset ( QgsSymbolV2RenderContext context,
double &  offsetX,
double &  offsetY 
)
protected
QPointF QgsMarkerSymbolLayerV2::offset ( )
inline
QgsSymbolV2::OutputUnit QgsMarkerSymbolLayerV2::offsetUnit ( ) const
inline

Definition at line 146 of file qgssymbollayerv2.h.

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

Reimplemented from QgsSymbolLayerV2.

Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsEllipseSymbolLayerV2.

Definition at line 202 of file qgssymbollayerv2.cpp.

References QgsSymbolV2::Mixed, mOffsetUnit, and mSizeUnit.

virtual void QgsMarkerSymbolLayerV2::renderPoint ( const QPointF &  point,
QgsSymbolV2RenderContext context 
)
pure virtual
QgsSymbolV2::ScaleMethod QgsMarkerSymbolLayerV2::scaleMethod ( ) const
inline
void QgsMarkerSymbolLayerV2::setAngle ( double  angle)
inline
void QgsMarkerSymbolLayerV2::setOffset ( QPointF  offset)
inline
void QgsMarkerSymbolLayerV2::setOffsetUnit ( QgsSymbolV2::OutputUnit  unit)
inline
void QgsMarkerSymbolLayerV2::setOutputUnit ( QgsSymbolV2::OutputUnit  unit)
virtual

Reimplemented from QgsSymbolLayerV2.

Reimplemented in QgsSvgMarkerSymbolLayerV2, QgsVectorFieldSymbolLayer, and QgsEllipseSymbolLayerV2.

Definition at line 172 of file qgssymbollayerv2.cpp.

References mOffsetUnit, and mSizeUnit.

void QgsMarkerSymbolLayerV2::setScaleMethod ( QgsSymbolV2::ScaleMethod  scaleMethod)
inline

Definition at line 134 of file qgssymbollayerv2.h.

Referenced by QgsMarkerSymbolV2::setScaleMethod().

void QgsMarkerSymbolLayerV2::setSize ( double  size)
inline

Definition at line 131 of file qgssymbollayerv2.h.

References size.

Referenced by QgsMarkerSymbolV2::setSize().

void QgsMarkerSymbolLayerV2::setSizeUnit ( QgsSymbolV2::OutputUnit  unit)
inline
double QgsMarkerSymbolLayerV2::size ( void  ) const
inline
QgsSymbolV2::OutputUnit QgsMarkerSymbolLayerV2::sizeUnit ( ) const
inline

Definition at line 149 of file qgssymbollayerv2.h.

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

Member Data Documentation

double QgsMarkerSymbolLayerV2::mAngle
protected
QPointF QgsMarkerSymbolLayerV2::mOffset
protected
QgsSymbolV2::OutputUnit QgsMarkerSymbolLayerV2::mOffsetUnit
protected
QgsSymbolV2::ScaleMethod QgsMarkerSymbolLayerV2::mScaleMethod
protected
double QgsMarkerSymbolLayerV2::mSize
protected
QgsSymbolV2::OutputUnit QgsMarkerSymbolLayerV2::mSizeUnit
protected

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